- 2009 Macbook Pro
- 2.26 GHz Core 2 Duo
- 4GB DDR3 (1067 MHz)
- Redis v2.2.4
- Node.JS v0.4.7
Summary of results
ab -n 10000 -c 10= 1949 r/sab -n 10000 -c 20= 1908 r/s
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| use GuzzleHttp\Client; | |
| $dataPayload = $this->requestHelper->buildFrom() | |
| // construct a new client | |
| $client = new Client([ | |
| // Base URI is used with relative requests | |
| 'base_uri' => 'http://api.splio.cn', | |
| // You can set any number of default request options. | |
| 'timeout' => 2.0, |
| DATE=2015-05-20;for ((a=1;a<=10;a++)) ;do NEXT_DATE=$(date +%Y-%m-%d -d "$DATE + $a day");echo $NEXT_DATE; done; |
Summary of results
ab -n 10000 -c 10 = 1949 r/sab -n 10000 -c 20 = 1908 r/s| user nginx; | |
| worker_processes 1; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| use epoll; | |
| } |
| # wget -O install_python.sh https://gist.github.com/raw/777001/install_python.sh | |
| # chmod +x install_python.sh | |
| # ./install_python.sh | |
| #!/bin/sh | |
| echo "******************************************" | |
| echo "Configure Centos box with a recent version" | |
| echo "of Python. " | |
| echo " - jgumbley 12/jan/11" |
| ini_set('display_errors', 1); | |
| error_reporting(E_ALL); |