Skip to content

Instantly share code, notes, and snippets.

@pcdv
Last active December 28, 2015 16:18
Show Gist options
  • Save pcdv/7527557 to your computer and use it in GitHub Desktop.
Save pcdv/7527557 to your computer and use it in GitHub Desktop.
Jocket benchmark / Raspberry Pi
STANDARD SOCKET
pi@raspberrypi ~/jocket $ ./run-bench.sh -Dtcp=true
Java ServerSocket listening on 3333
Warming up : 50000 reps, pause between reps: 0ns... done in 18206ms
Running test : 300000 reps, pause between reps: 0ns... done in 100855ms
Dumping results in /tmp/Socket
1.0% ( 297000) : 309.99 (us)
10.0% ( 270000) : 312.99 (us)
50.0% ( 150000) : 317.99 (us)
99.0% ( 3000) : 480.98 (us)
99.9% ( 300) : 715.98 (us)
99.99% ( 31) : 4860.83 (us)
99.999% ( 3) : 6600.77 (us)
99.9999% ( 1) : 9786.66 (us)
JOCKET
pi@raspberrypi ~/jocket $ ./run-bench.sh
Jocket listening on 3333
Warming up : 50000 reps, pause between reps: 0ns... done in 4576ms
Running test : 300000 reps, pause between reps: 0ns... done in 19305ms
Dumping results in /tmp/Jocket
1.0% ( 297000) : 51.00 (us)
10.0% ( 270000) : 54.00 (us)
50.0% ( 150000) : 57.00 (us)
99.0% ( 3000) : 114.00 (us)
99.9% ( 300) : 312.99 (us)
99.99% ( 31) : 387.99 (us)
99.999% ( 3) : 547.98 (us)
99.9999% ( 1) : 2091.93 (us)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment