summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/hybrid/benchmark-3.tex
blob: 5d975912479be9259d4dcffa5452c86f51f3a9c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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