Lua-cURL / Lua-cURLv3

Lua binding to libcurl
MIT License
275 stars 63 forks source link

Overhead added by curl easy in Lua #176

Closed PrateekGoyal18 closed 2 years ago

PrateekGoyal18 commented 3 years ago

I am trying to call an API through curl easy in Lua and noting the response times, which come around 180-200ms on average. But when I try to inspect the Wireshark trace for the tcpdump while calling the API, the response time is ~22ms.

So, I wanted to know what is the amount of overhead added by curl easy in Lua, or has anyone ever faced this issue?

moteus commented 3 years ago

How did you measure Lua time? Did it count a time to load Lua script itself? It will be helpful if you provide a simple test for reproducing this.