nixbench server benchmarking tool
For a VPS comparison site (coming soon-ish), I wanted a simple benchmarking tool. Initially I started with bench.sh from FreeVPS, but since it is written in bash, it's fairly difficult to extend (for me) and I wanted a few more things like machine readable output and Geekbench (which is currently broken).
So I wrote my own tool in Go. Features:
- Simple dd-like write speed test
- Geekbench with automatic score parsing
- Network speed test to locations all around the world
- Optional yaml output
Here is how its output looks:
nixbench 0.1 - github.com/jgillich/nixbench Host ---- OS : linux Platform : ubuntu 16.04 Virt : CPU : Intel(R) Xeon(R) CPU E5-26xx (Sandy Bridge) Cores : 2 Clock : 2099 Mhz Disk ---- 1. run : 291 MB/s 2. run : 310 MB/s 3. run : 459 MB/s 4. run : 422 MB/s 5. run : 351 MB/s Average : 367 MB/s Geekbench --------- Single-Core Score : 2061 Multi-Core Score : 3717 Result URL : https://browser.geekbench.com/v4/cpu/3666474 Net --- CDN : 477 Mbit/s Amsterdam, The Netherlands : 366 Mbit/s Dallas, USA : 96 Mbit/s Frankfurt, Germany : 142 Mbit/s Hong Kong, China : 29 Mbit/s London, United Kingdoms : 397 Mbit/s Melbourne, Australia : 41 Mbit/s Oslo, Norway : 237 Mbit/s Paris, France : 427 Mbit/s Querétaro Mexico : 72 Mbit/s San Jose, USA : 87 Mbit/s Sao Paulo, Brazil : 46 Mbit/s Seoul, Korea : 30 Mbit/s Singapore, Singapore : 38 Mbit/s Tokyo, Japan : 45 Mbit/s Toronto, Canada : 126 Mbit/s Washington, USA : 35 Mbit/s
Consider this a alpha version, I'm looking to improve it based on feedback. So I'm posting here, what features would you guys like to see?
Source and binary is available at: https://github.com/jgillich/nixbench/releases