=t={1} set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=t[1] end return get_tick_count()-t0800
=local t={1} local j set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=t[1] end return get_tick_count()-t0310
=set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=bitnot(1) end return get_tick_count()-t01090
con 27> =local bn=bitnot local j set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=bn(1) end return get_tick_count()-t0780
=local t={1} local j set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=t[1] end return get_tick_count()-t0620
=local t={1} local j set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=t[1] end return get_tick_count()-t0370
=set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do end return get_tick_count() - t0120
=local f=function() end set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do f() end return get_tick_count() - t0670
r={}funcs={'nop','fdiv','fmul','fadd','fmov','idiv','imul','iadd','imov'}set_yield(-1,-1)for _,n in ipairs(funcs) do local f=_G['test_'..n] t0=get_tick_count() for i=0,100000 do f() end r[n] = get_tick_count()-t0 sleep(50) end return r
nop=480fmov=480fmul=520fdiv=510fadd=520imov=480iadd=480imul=480idiv=500
fadd=540fmul=540fdiv=880iadd=480imul=480idiv=560
fadd=550fmul=540fdiv=880iadd=480imul=480idiv=520
fadd=540fdiv=880fmul=540iadd=480imul=480idiv=610
=local a=1700000 local b=3 local z set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do z=a+b end return get_tick_count() - t0240=local a=1700000 local b=3 local z set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do z=a*b end return get_tick_count() - t0240=local a=1700000 local b=3 local z set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do z=a/b end return get_tick_count() - t0360
=t={1} set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=t[1] end return get_tick_count()-t01:return:360
=local t={1} local j set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=t[1] end return get_tick_count()-t02:return:130
=set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=bitnot(1) end return get_tick_count()-t03:return:520
=local bn=bitnot local j set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=bn(1) end return get_tick_count()-t04:return:390
=set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do end return get_tick_count() - t05:return:40
=local f=function() end set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do f() end return get_tick_count() - t06:return:300
=local a=1700000 local b=3 local z set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do z=a+b end return get_tick_count() - t07:return:100
=local a=1700000 local b=3 local z set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do z=a*b end return get_tick_count() - t09:return:100
=local a=1700000 local b=3 local z set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do z=a/b end return get_tick_count() - t010:return:110
op A540(2) ixus95(4) ixus140(4) D10(4) sx50(5) G7X(6)Table, Globals 580 800 500 360Table, locals 620 220 310 310 190 130Function, globals 770 1090 680 520Function, locals 540 780 470 390Empty loop 70 120 60 40Empty function 450 670 390 300Addition 150 240 130 100Multiplication 150 240 130 100Division 270 360 240 110
=t={1} set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=t[1] end return get_tick_count()-t0
=local t={1} local j set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=t[1] end return get_tick_count()-t0
=set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=bitnot(1) end return get_tick_count()-t0
=local bn=bitnot local j set_yield(-1,-1) t0=get_tick_count() for i=1,100000 do j=bn(1) end return get_tick_count()-t0
=set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do end return get_tick_count() - t0
=local f=function() end set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do f() end return get_tick_count() - t0
=local a=1700000 local b=3 local z set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do z=a+b end return get_tick_count() - t0
=local a=1700000 local b=3 local z set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do z=a*b end return get_tick_count() - t0
=local a=1700000 local b=3 local z set_yield(-1,-1) t0=get_tick_count() for i=0,100000 do z=a/b end return get_tick_count() - t0
Started by Barney Fife « 1 2 » General Chat
Started by SticK « 1 2 ... 46 47 » RAW Shooting and Processing
Started by philmoz Hotwire! Hardware Mods, Accessories and Insights
Started by reyalp « 1 2 ... 7 8 » General Discussion and Assistance
Started by andrew.stephens.754365 General Help and Assistance on using CHDK stable releases