benchmark-1.tex /size: 624 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\dorecurse {10} {
19    \dorecurse{1000} {
20        \dontleavehmode
21        \startMPcode
22            for i=1,100 :
23                draw
24                    fullcircle scaled 10pt
25                    withpen pencircle xscaled 2 yscaled 4 rotated 20 ;
26            endfor ;
27        \stopMPcode
28        \enspace
29    }
30    \page
31}
32
33\startluacode
34    statistics.stoptiming()
35    context(statistics.elapsedtime())
36\stopluacode
37
38\stoptext
39
40