diff options
Diffstat (limited to 'doc/context/sources/general/manuals/hybrid/benchmark-1.tex')
-rw-r--r-- | doc/context/sources/general/manuals/hybrid/benchmark-1.tex | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/context/sources/general/manuals/hybrid/benchmark-1.tex b/doc/context/sources/general/manuals/hybrid/benchmark-1.tex new file mode 100644 index 000000000..adb89dbc7 --- /dev/null +++ b/doc/context/sources/general/manuals/hybrid/benchmark-1.tex @@ -0,0 +1,39 @@ +\setupbodyfont[dejavu] + +\starttext + +\dontcomplain + +\startluacode + if jit then + jit.on() + jit.off() + end +\stopluacode + +\startluacode + statistics.starttiming() +\stopluacode + +\dorecurse {10} { + \dorecurse{1000} { + \dontleavehmode + \startMPcode + for i=1,100 : + draw + fullcircle scaled 10pt + withpen pencircle xscaled 2 yscaled 4 rotated 20 ; + endfor ; + \stopMPcode + \enspace + } + \page +} + +\startluacode + statistics.stoptiming() + context(statistics.elapsedtime()) +\stopluacode + +\stoptext + |