▲ | billywhizz 2 days ago | |
i can't see how these numbers can be anywhere near correct (nor the ones above). in JavaScript on an old Core i5 the overhead of a simple ffi call is on the order of 5 nanoseconds. on a recent x64/arm64 cpu it's more like 2 nanoseconds. you can verify this easily with Deno ffi which is pretty much optimal for JS runtimes. also, from everything i have seen and read, luajit should be even lower overhead than this. you really shouldn't be asking chatgpt questions like this imo. these are facts, that need to be proven, not just vibes. | ||
▲ | throwaway7783 a day ago | parent [-] | |
I agree. was just following the parents pattern, to make it work for me :) |