Skip to content

Instantly share code, notes, and snippets.

@simonklee
Created March 30, 2012 11:59
Show Gist options
  • Save simonklee/2251060 to your computer and use it in GitHub Desktop.
Save simonklee/2251060 to your computer and use it in GitHub Desktop.
bench
./redis-benchmark -c 1 -t set
====== SET ======
10000 requests completed in 1.25 seconds
1 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
8012.82 requests per second
./godis-bench -c 1 set
CONCURRENT: 1 SAMPLES: 4 REQUESTS: 10000
SET:
6299.71 op/sec real 1.5874s
6225.04 op/sec real 1.6064s
6243.01 op/sec real 1.6018s
6279.17 op/sec real 1.5926s
AVG 6261.60 op/sec real 1.5970s tot 6.3881s
/redis-benchmark -c 50 -n 20000 -t set
====== SET ======
20000 requests completed in 0.62 seconds
50 parallel clients
3 bytes payload
keep alive: 1
75.44% <= 1 milliseconds
98.75% <= 2 milliseconds
99.43% <= 3 milliseconds
99.87% <= 4 milliseconds
100.00% <= 4 milliseconds
32154.34 requests per second
./godis-bench -c 50 -n 20000 set
CONCURRENT: 50 SAMPLES: 4 REQUESTS: 20000
SET:
17615.34 op/sec real 1.1354s
17439.79 op/sec real 1.1468s
17627.68 op/sec real 1.1346s
17785.73 op/sec real 1.1245s
AVG 17616.28 op/sec real 1.1353s tot 4.5413s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment