完全な保証はありませんが以下のベンチマークで何回かテストした限りではtest2()の方が
早いみたいですね。
#module
#uselib "winmm.dll"
#cfunc timeGetTime "timeGetTime"
#defcfunc test1
wait 1
s_time = timeGetTime()
repeat 1000000
if (a = 0) & (b = 0) & (c = 0) : dummy++
loop
return timeGetTime() - s_time
#defcfunc test2
wait 1
s_time = timeGetTime()
repeat 1000000
if a + b + c < 1 : dummy++
loop
return timeGetTime() - s_time
#global
mes "test1() の結果: " + test1()
mes "test2() の結果: " + test2()
mes "test2() の結果: " + test2()
mes "test1() の結果: " + test1()
stop
まあ、そんなに違わないですが。
(このベンチマーク自体が間違っていたりして?)