summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/hybrid/benchmark-4.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/context/sources/general/manuals/hybrid/benchmark-4.tex')
-rw-r--r--doc/context/sources/general/manuals/hybrid/benchmark-4.tex60
1 files changed, 60 insertions, 0 deletions
diff --git a/doc/context/sources/general/manuals/hybrid/benchmark-4.tex b/doc/context/sources/general/manuals/hybrid/benchmark-4.tex
new file mode 100644
index 000000000..95c605c16
--- /dev/null
+++ b/doc/context/sources/general/manuals/hybrid/benchmark-4.tex
@@ -0,0 +1,60 @@
+\setupbodyfont[dejavu]
+
+\starttext
+
+\dontcomplain
+
+\startluacode
+ if jit then
+ jit.on()
+ jit.off()
+ end
+\stopluacode
+
+\startluacode
+ statistics.starttiming()
+\stopluacode
+
+\startbuffer
+ \margintext{test} test test
+
+ \startitemize[a]
+ \startitem test \stopitem
+ \startitem test \stopitem
+ \startitem test \stopitem
+ \startitem test \stopitem
+ \stopitemize
+
+ \startxtable
+ \startxrow
+ \startxcell test \stopxcell
+ \startxcell test \stopxcell
+ \startxcell test \stopxcell
+ \stopxrow
+ \startxrow
+ \startxcell test \stopxcell
+ \startxcell test \stopxcell
+ \startxcell test \stopxcell
+ \stopxrow
+ \stopxtable
+\stopbuffer
+
+\dorecurse {25} {
+ \startchapter[title=Test #1]
+ \dorecurse {25} {
+ \startsection[title=Test #1]
+ \getbuffer
+ \stopsection
+ }
+ \stopchapter
+}
+
+\page
+
+\startluacode
+ statistics.stoptiming()
+ context(statistics.elapsedtime())
+\stopluacode
+
+\stoptext
+