4 ms·
LuaJit and PHP both use [DynASM](https://luajit.org/dynasm.html https://luajit.org/dynasm.html) as well.
by charrondev 3y ago
LuaJit and PHP both use [DynASM](https://luajit.org/dynasm.html https://luajit.org/dynasm.html) as well.
- binary132 3y agoTIL PHP uses dynasm, here I thought only LuaJIT did. Cool!
- charrondev 3y agoHere’s the RFC for reference https://wiki.php.net/rfc/jit https://wiki.php.net/rfc/jit It passed and landed in PHP 8.0.
- binary132 3y agoI’m surprised their benchmark only saw a 200% performance improvement. LuaJIT is way faster than Lua in many cases.
- charrondev 3y agoSo the PHP implementation was built into the opcache extension which already gives a massive speed up over purely interpreted PHP. If you benchmark JIT PHP vs PHP with no opcache you will see 500% speed up or more depending on the workload. Of course most PHP web servers tend to be pretty IO bound. The project I work on sees ~a 20% in best case response time which is quite nice.