summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/hybrid/benchmark-4.tex
blob: 95c605c16bbf8bbf01bd29e4bab92cfe6cad544a (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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