Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 lua 脚本 test.lua,它在执行lua test.lua时执行并按预期为我提供输出,它在编译时使用 lua 5.3
lua test.lua
但是当我通过 wrk(http 性能测试基准 brew 工具)执行相同的 test.lua 时,它达到了 lua 5.1(我的系统中没有)而不是 5.3
并且没有任何 wrk 配置试图达到 lua 5.1 。我不确定为什么它的行为不同并命中不同版本的 lua
对这种混乱的提示将不胜感激。
从 LuaJIT 网站,这里:
LuaJIT 与 Lua 5.1 API 兼容
wrk 使用 LuaJIT,如此处所述。