mirror of
https://github.com/georgyo/ifconfig.io.git
synced 2025-09-14 08:04:28 +00:00
2a0edbd5e5cd9636cc9d2dd7e5ae1b48cda47566
ifconfig.io
Inspired by ifconfig.me, but designed for pure speed. A single server can do 18,000 requests per seconds while only consuming 50megs of ram.
I used the gin framework as it does several things to ensure that there are no memory allocations on each request, keeping the GC happy and preventing unnessary allocations.
Tested to handle 10,000 clients doing 90,000 requests persecond on modest hardware with an average response time of 42ms. Easily servicing over 5 million requests in a minute. (Updated June, 2022)
Languages
HTML
46.4%
Go
33.7%
Nix
16.7%
Dockerfile
3.2%