OSDN Git Service

Another optimization in jfmglue.lua.
[luatex-ja/luatexja.git] / test / test05-speed.tex
1 %#! time luatex  "\count300=60\input test05-speed.tex"
2 \input luatexja-core.sty
3
4 \newcount\cnt\newcount\cnta
5 \cnt=0\output={\deadcycles=0\setbox2000=\box255}
6 \long\def\loop#1\repeat{\def\body{#1}\iterate}
7 \loop\ifnum\cnt<\count300 % <= this value
8   \cnta=0 \message{\the\cnt:}\par
9   {\loop\ifnum\cnta<500 あ.「い,うえお・か(き)く)(けこ\advance\cnta1\repeat}
10   \advance\cnt1
11 \repeat
12
13 \end
14
15 %     real time:
16 % 60:               19.765
17 % 50:               16.378
18 % 40: 17.453 14.234 12.996
19 % 30: 13.254 10.624  9.795
20 % 20:  8.771  7.097  6.735
21 % 10:  4.927  4.145  3.857
22 % env: C2D E7300, Mem 4GB, LuaTeX 0.71.0pre, Gentoo amd64 unstable