summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/hybrid/benchmark-2.tex
blob: 4bf0974f17c29542f2dd047e6f2b52417e0b56d9 (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
29
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