lua-resty-iputils vs lua-libcidr-ffi performance
louishot opened this issue · 3 comments
Which one is better?
Maybe you could run some benchmarks and let us all know?
Maybe you could run some benchmarks and let us all know?
ya I can try it If No existing benchmark data
Maybe you could run some benchmarks and let us all know?
#4
I see "When I benchmarked the pure Lua implementations against libcidr-ffi, libcidr-ffi was quite a bit faster, particularly for IPv6 (sorry I don't have any numbers handy anymore). But I'll put a big caveat around this, since I was just hacking around with copying and pasting those existing Lua implementations and trying to make them work--I'm not sure if what I managed to implement was very optimized. A more optimized pure Lua approach might be possible. And while the performance difference in micro-benchmarks was noticeable, I'm not sure if it would really have that much of a real world impact."