summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2012-12-22 13:03:02 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2012-12-22 13:03:02 (GMT)
commitfa05389f050004a14787cd7b4ebb6e0b54e0e4af (patch)
treea5a97597cd48971540598e92ac14f15cd2ea6ef5 /test/samples/uscxml
parent4b345063582d4ac89a68a053a27552a688e3a583 (diff)
downloaduscxml-fa05389f050004a14787cd7b4ebb6e0b54e0e4af.zip
uscxml-fa05389f050004a14787cd7b4ebb6e0b54e0e4af.tar.gz
uscxml-fa05389f050004a14787cd7b4ebb6e0b54e0e4af.tar.bz2
Got rid of xpath on critical path
Improves performance by a factor of 8!
Diffstat (limited to 'test/samples/uscxml')
-rw-r--r--test/samples/uscxml/test-performance.scxml16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/samples/uscxml/test-performance.scxml b/test/samples/uscxml/test-performance.scxml
new file mode 100644
index 0000000..4d2d4c4
--- /dev/null
+++ b/test/samples/uscxml/test-performance.scxml
@@ -0,0 +1,16 @@
+<scxml datamodel="ecmascript">
+ <datamodel>
+ <data id="iterations">10000</data>
+ </datamodel>
+ <state id="start">
+ <transition target="loop" />
+ </state>
+ <state id="loop">
+ <onentry>
+ <script>iterations--;</script>
+ </onentry>
+ <transition cond="iterations > 0" target="start" />
+ <transition cond="iterations == 0" target="final" />
+ </state>
+ <final id="final" />
+</scxml> \ No newline at end of file