kingluo / lua-resty-ffi

lua-resty-ffi provides an efficient and generic API to do hybrid programming in openresty/envoy with mainstream languages (Go, Python, Java, Rust, Nodejs, etc.).
BSD 3-Clause "New" or "Revised" License
102 stars 11 forks source link

A benchmark between lua-resty--ffi plugin and MOSN go plugin on Envoy #3

Closed Hectorsong closed 9 months ago

Hectorsong commented 9 months ago

Hi, have you ever done a benchmark test between lua-resty--ffi go plugin and MOSN go plugin on Envoy, and I don't know which extension method to choose.

kingluo commented 9 months ago

@Hectorsong Yes, maybe my post is helpful for you: http://luajit.io/posts/envoy-async-http-filter-lua-resty-ffi-vs-golang/

lua-resty-ffi has almost the same performance as go filters. In that article, I only provided the simplest demonstration. If you have further questions about the details, welcome to share them here, thank you!

Hectorsong commented 9 months ago

Appreciate it.