]> gitweb.factorcode.org Git - factor.git/commitdiff
New UI panes benchmark to highlight recent perforammance regression there
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 3 Sep 2008 11:34:40 +0000 (06:34 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 3 Sep 2008 11:34:40 +0000 (06:34 -0500)
basis/ui/gadgets/panes/panes-tests.factor
extra/benchmark/ui-panes/ui-panes.factor [new file with mode: 0644]

index 64a72fe523c32080307a1072d7c83ee0f1300cea..109c0a14618123391300f436f7a8d3d550ec0778 100755 (executable)
@@ -12,7 +12,7 @@ IN: ui.gadgets.panes.tests
 [ ] [ #children "num-children" set ] unit-test
 
 [ ] [
-    "pane" get <pane-stream> [ 10000 [ . ] each ] with-output-stream*
+    "pane" get <pane-stream> [ 100 [ . ] each ] with-output-stream*
 ] unit-test
 
 [ t ] [ #children "num-children" get = ] unit-test
diff --git a/extra/benchmark/ui-panes/ui-panes.factor b/extra/benchmark/ui-panes/ui-panes.factor
new file mode 100644 (file)
index 0000000..6fdbdae
--- /dev/null
@@ -0,0 +1,7 @@
+USING: ui.gadgets.panes prettyprint io sequences ;
+IN: benchmark.ui-panes
+
+: ui-pane-benchmark ( -- )
+    <pane> <pane-stream> [ 10000 [ . ] each ] with-output-stream* ;
+
+MAIN: ui-pane-benchmark