Red Rozenglass on Nostr: Did some silly overhead benchmarks, mostly with Apache (v2.4.62, with mod_mpm_event), ...
Did some silly overhead benchmarks, mostly with Apache (v2.4.62, with mod_mpm_event), but some Node.js (v18.20.6) and NGINX (v1.26.3) stuff is provided for reference. Tested direct serving of files from disk, as a baseline, compared to CGI, FastCGI, SSI, writing a custom Apache module, Node.js reverse-proxied, and plain Node.js without SSL bypassing Apache entirely, and finally, serving plain files off of disk with NGINX default configurations. In all cases I served a JSON string of around 4KiB in size, pre-serialized. All done on a 2vCPU cloud KVM VM, Slackware, with 4GiB of memory, over the internet, with 75ms to 80ms in ping latency.
The results, and my thoughts, for the curious:
https://dreamscape.link/benchmarks/apache.htmlPublished at
2025-03-24 16:06:33Event JSON
{
"id": "cf47e1c4613fa1eafb14cd7ada711ea4251bf729c2f5e6e0b756742ff17fd4bf",
"pubkey": "ec9f49eafea9211a5d3c911adc0938d8ead1de1e299634b4ce3c38b681489b8a",
"created_at": 1742832393,
"kind": 1,
"tags": [
[
"proxy",
"https://fedi.dreamscape.link/rozenglass/p/1742832393.832564",
"activitypub"
]
],
"content": "Did some silly overhead benchmarks, mostly with Apache (v2.4.62, with mod_mpm_event), but some Node.js (v18.20.6) and NGINX (v1.26.3) stuff is provided for reference. Tested direct serving of files from disk, as a baseline, compared to CGI, FastCGI, SSI, writing a custom Apache module, Node.js reverse-proxied, and plain Node.js without SSL bypassing Apache entirely, and finally, serving plain files off of disk with NGINX default configurations. In all cases I served a JSON string of around 4KiB in size, pre-serialized. All done on a 2vCPU cloud KVM VM, Slackware, with 4GiB of memory, over the internet, with 75ms to 80ms in ping latency.\n\nThe results, and my thoughts, for the curious: https://dreamscape.link/benchmarks/apache.html\n\n",
"sig": "22f536da33b6f2e29e0268d85fe060b792c9b4148f3ce34a75dc8adc0d323a2b252bf9c1218f2575fc33ebcb5de34d0bc9540c24d4c914a74d18fb67a4e2ead0"
}