GeezerVison is showing github.com — GitHub - Magicqy/lua_benchmark_for_unity
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
| | | |
| | | |
|
Repository files navigation
以github上的release版本为准
- slua-1.7.0
- tolua-1.0.8.591
- xlua-2.1.14
其中slua使用的是原生lua5.1,tolua使用的是luajit-2.1,xlua分为两个版本lua5.3和luajit2.1
unity版本2018.4.2f1,编译设置为il2cpp
测试例子修改自slua中的perf示例程序,启动程序后依次执行一次,测试结果单位为秒
| case |
test1 |
test2 |
test3 |
test4 |
test5 |
test6 |
| tolua |
0.754 |
0.820 |
5.257 |
4.302 |
1.160 |
1.254 |
| slua |
1.369 |
2.907 |
10.327 |
5.935 |
1.658 |
4.367 |
| xlua53 |
0.898 |
1.323 |
8.743 |
4.339 |
1.117 |
1.740 |
| xluajit |
0.471 |
0.742 |
3.891 |
4.014 |
1.046 |
0.794 |
| case |
test1 |
test2 |
test3 |
test4 |
test5 |
test6 |
| tolua |
0.273 |
0.306 |
1.205 |
1.309 |
0.391 |
0.375 |
| slua |
0.475 |
0.897 |
2.735 |
1.822 |
0.592 |
1.216 |
| xlua53 |
0.387 |
0.521 |
2.812 |
1.310 |
0.374 |
0.652 |
| xluajit |
0.203 |
0.305 |
1.166 |
1.193 |
0.373 |
0.217 |
| case |
test1 |
test2 |
test3 |
test4 |
test5 |
test6 |
| tolua |
0.163 |
0.232 |
1.113 |
1.897 |
0.498 |
0.366 |
| slua |
0.447 |
1.140 |
3.680 |
2.950 |
0.794 |
1.729 |
| xlua53 |
0.129 |
0.233 |
1.121 |
1.840 |
0.467 |
0.304 |
| xluajit |
0.103 |
0.208 |
0.824 |
1.706 |
0.442 |
0.178 |
| case |
test1 |
test2 |
test3 |
test4 |
test5 |
test6 |
| tolua |
0.131 |
0.163 |
0.691 |
0.633 |
0.196 |
0.213 |
| slua |
0.275 |
0.451 |
1.800 |
0.912 |
0.286 |
0.751 |
| xlua53 |
0.112 |
0.157 |
0.650 |
0.612 |
0.172 |
0.183 |
| xluajit |
0.103 |
0.147 |
0.485 |
0.583 |
0.186 |
0.101 |
测试结果(UnityEditor,PC-i7-3.0GHZ-CPU-16G-RAM-Win10-x64):
| case |
test1 |
test2 |
test3 |
test4 |
test5 |
test6 |
| tolua |
0.116 |
0.123 |
0.534 |
1.639 |
0.399 |
0.244 |
| slua |
0.766 |
0.942 |
2.059 |
3.655 |
1.079 |
0.831 |
| xlua53 |
0.126 |
0.177 |
1.211 |
1.608 |
0.391 |
0.346 |
| xluajit |
0.103 |
0.146 |
1.006 |
1.514 |
0.396 |
0.190 |
测试过程中发现5和6这两项测试用例每次执行的差异波动有些大,可能出现前后差出来50%的结果,不是很稳定
About
No description or website provided.
Topics
Resources
Stars
0 stars
Watchers
1 watching
Forks