简单写了个demo 基于cocos2dx mac模拟器测试
测试代码都是明码
print("lua start compute1")
local a = 1
for i=1,100000000,1 do
a = 1
end
print("lua start compute2")
lua下日志如下:
[2.0224] lua start compute1
[4.2614] lua start compute2
print("lua start compute1")
local a = 1
for i=1,100000000,1 do
a = 1
end
print("lua start compute2")