benchmark-4.tex /size: 1088 b    last modification: 2020-07-01 14:35
1\setupbodyfont[dejavu]
2
3\starttext
4
5\dontcomplain
6
7\startluacode
8    if jit then
9        jit.on()
10        jit.off()
11    end
12\stopluacode
13
14\startluacode
15    statistics.starttiming()
16\stopluacode
17
18\startbuffer
19    \margintext{test} test test
20
21    \startitemize[a]
22        \startitem test \stopitem
23        \startitem test \stopitem
24        \startitem test \stopitem
25        \startitem test \stopitem
26    \stopitemize
27
28    \startxtable
29        \startxrow
30            \startxcell test \stopxcell
31            \startxcell test \stopxcell
32            \startxcell test \stopxcell
33        \stopxrow
34        \startxrow
35            \startxcell test \stopxcell
36            \startxcell test \stopxcell
37            \startxcell test \stopxcell
38        \stopxrow
39    \stopxtable
40\stopbuffer
41
42\dorecurse {25} {
43    \startchapter[title=Test #1]
44        \dorecurse {25} {
45            \startsection[title=Test #1]
46                \getbuffer
47            \stopsection
48        }
49    \stopchapter
50}
51
52\page
53
54\startluacode
55    statistics.stoptiming()
56    context(statistics.elapsedtime())
57\stopluacode
58
59\stoptext
60
61