summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/hybrid/benchmark-2.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/context/sources/general/manuals/hybrid/benchmark-2.tex')
-rw-r--r--doc/context/sources/general/manuals/hybrid/benchmark-2.tex30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/context/sources/general/manuals/hybrid/benchmark-2.tex b/doc/context/sources/general/manuals/hybrid/benchmark-2.tex
new file mode 100644
index 000000000..4bf0974f1
--- /dev/null
+++ b/doc/context/sources/general/manuals/hybrid/benchmark-2.tex
@@ -0,0 +1,30 @@
+\setupbodyfont[dejavu]
+
+\starttext
+
+\dontcomplain
+
+\startluacode
+ if jit then
+ jit.on()
+ jit.off()
+ end
+\stopluacode
+
+\startluacode
+ statistics.starttiming()
+\stopluacode
+
+\dorecurse {1000} {
+ {\bf \red \input tufte } \blank
+ {\it \green \input tufte } \blank
+ {\tf \blue \input tufte } \page
+}
+
+\startluacode
+ statistics.stoptiming()
+ context(statistics.elapsedtime())
+\stopluacode
+
+\stoptext
+