diff options
Diffstat (limited to 'Master/texmf-dist/doc/context/sources/general/manuals/about/about-jitting-jit-2013-06-04.lua')
-rw-r--r-- | Master/texmf-dist/doc/context/sources/general/manuals/about/about-jitting-jit-2013-06-04.lua | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/context/sources/general/manuals/about/about-jitting-jit-2013-06-04.lua b/Master/texmf-dist/doc/context/sources/general/manuals/about/about-jitting-jit-2013-06-04.lua new file mode 100644 index 00000000000..189f5244c09 --- /dev/null +++ b/Master/texmf-dist/doc/context/sources/general/manuals/about/about-jitting-jit-2013-06-04.lua @@ -0,0 +1,148 @@ +return { + { + ["off"]="0.399", + ["on"]="0.081", + }, + { + ["off"]="1.339", + ["on"]="0.081", + }, + { + ["off"]="4.527", + ["on"]="2.817", + }, + { + ["off"]="0.644", + ["on"]="0.640", + }, + { + ["off"]="3.032", + ["on"]="3.007", + }, + { + ["off"]="4.046", + ["on"]="4.977", + }, + ["local fc = font.current\ +\ +function font.current()\ + return fc()\ +end\ +\ +return function()\ + local a = 0\ + for i=1,10000 do\ + a = a + font.current()\ + end\ +end"]={ + ["off"]="1.998", + ["on"]="2.417", + }, + ["local function whatever(i)\ + return i\ +end\ +\ +return function()\ + local a = 0\ + for i=1,10000 do\ + a = a + whatever(i)\ + end\ +end"]={ + ["off"]="0.675", + ["on"]="0.041", + }, + ["local tostring, tonumber = tostring, tonumber\ +return function()\ + local a = 0\ + for i=1,1000 do\ + local a = a + tonumber(tostring(i))\ + end\ +end"]={ + ["off"]="4.762", + ["on"]="0.172", + }, + ["local tostring, tonumber = tostring, tonumber\ +return function()\ + local a = 0\ + for i=1,10000 do\ + local a = a + tonumber(tostring(i))\ + end\ +end"]={ + ["off"]="79.316", + ["on"]="5.640", + }, + ["return function()\ + local a = 0\ + for i=1,100 do\ + local a = a + tonumber(tostring(i))\ + end\ +end"]={ + ["off"]="0.703", + ["on"]="0.047", + }, + ["return function()\ + local a = 0\ + for i=1,1000 do\ + local a = a + tonumber(tostring(i))\ + end\ +end"]={ + ["off"]="4.786", + ["on"]="0.171", + }, + ["return function()\ + local a = 0\ + for i=1,10000 do\ + a = a + font.current()\ + end\ +end"]={ + ["off"]="1.417", + ["on"]="1.427", + }, + ["return function()\ + local a = 0\ + for i=1,10000 do\ + a = a + i\ + end\ +end"]={ + ["off"]="0.198", + ["on"]="0.041", + }, + ["return function()\ + local a = 0\ + for i=1,10000 do\ + a = a + math.sin(1/i)\ + end\ +end"]={ + ["off"]="2.206", + ["on"]="1.440", + }, + ["return function()\ + local a = 0\ + for i=1,10000 do\ + local a = a + tonumber(tostring(i))\ + end\ +end"]={ + ["off"]="79.456", + ["on"]="5.703", + }, + ["return function()\ + local a = 0\ + local p = (1-lpeg.P(\"5\"))^0 * lpeg.P(\"5\")\ + for i=1,100 do\ + local a = a + (tonumber(lpeg.match(p,tostring(i))) or 0)\ + end\ +end"]={ + ["off"]="0.859", + ["on"]="0.843", + }, + ["return function()\ + local a = 0\ + local p = (1-lpeg.P(\"5\"))^0 * lpeg.P(\"5\") + lpeg.Cc(0)\ + for i=1,100 do\ + local a = a + lpeg.match(p,tostring(i))\ + end\ +end"]={ + ["off"]="0.514", + ["on"]="0.516", + }, +}
\ No newline at end of file |