Skip to content

Instantly share code, notes, and snippets.

@lestrrat
lestrrat / perl-go-stf-benchmark.md
Created December 10, 2013 04:55
Simple benchmark against STF Distribute Object Storage written in Perl and in Go

STF Distribute Object Storage (perl vs go)

This is a VERY limited benchmark. Take with a grain of salt. (go-stf-server)[https://github.com/stf-storage/go-stf-server] is still in half baked state, but can connect to the same database as the more mature (perl version)[https://github.com/stf-storage/stf], and handle GET requests.

And since the go version is still half-baked, this benchmark is for GET only.

Basic benchmark strategy

The original STF dispatcher PSGI application is running behind nginx reverse proxy on the same host, which handles the reproxying via X-Reproxy-URL. In this benchmark, I'm just sending GET requests directly to port 5000 (PSGI), and port 8080 (go) on the localhost via ab: