Lua5.2 一些性能测评
摘要:
1. luaL_newstate测试 1 #include<time.h> 2 3 #include<iostream> 4 using namespace std; 5 6 #include<lua.hpp> 7 8 int main() 9 {10 clock_t time_start = clock();11 12 for(int i =0;i<100000;++i)13 {14 lua_State *l = luaL_newstate();15 }16 17 clock_t time_end = clock();18 ... 阅读全文