summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/hybrid/benchmark-3.tex
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-08-01 16:40:14 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-08-01 16:40:14 +0200
commit96f283b0d4f0259b7d7d1c64d1d078c519fc84a6 (patch)
treee9673071aa75f22fee32d701d05f1fdc443ce09c /doc/context/sources/general/manuals/hybrid/benchmark-3.tex
parentc44a9d2f89620e439f335029689e7f0dff9516b7 (diff)
downloadcontext-96f283b0d4f0259b7d7d1c64d1d078c519fc84a6.tar.gz
2016-08-01 14:21:00
Diffstat (limited to 'doc/context/sources/general/manuals/hybrid/benchmark-3.tex')
-rw-r--r--doc/context/sources/general/manuals/hybrid/benchmark-3.tex28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/context/sources/general/manuals/hybrid/benchmark-3.tex b/doc/context/sources/general/manuals/hybrid/benchmark-3.tex
new file mode 100644
index 000000000..5d9759124
--- /dev/null
+++ b/doc/context/sources/general/manuals/hybrid/benchmark-3.tex
@@ -0,0 +1,28 @@
+\setupbodyfont[dejavu]
+
+\starttext
+
+\dontcomplain
+
+\startluacode
+ if jit then
+ jit.on()
+ jit.off()
+ end
+\stopluacode
+
+\startluacode
+ statistics.starttiming()
+\stopluacode
+
+\dorecurse {1000} {
+ test \page
+}
+
+\startluacode
+ statistics.stoptiming()
+ context(statistics.elapsedtime())
+\stopluacode
+
+\stoptext
+