https://github.com/alekseyl1992/aerospike_clients_benchmark
Comparison of two stacks: tornado + sync aerospike client VS nodejs + async aerospike client
https://github.com/alekseyl1992/aerospike_clients_benchmark
aerospike nodejs python tornado
Last synced: 3 months ago
JSON representation
Comparison of two stacks: tornado + sync aerospike client VS nodejs + async aerospike client
- Host: GitHub
- URL: https://github.com/alekseyl1992/aerospike_clients_benchmark
- Owner: alekseyl1992
- Created: 2017-02-09T19:04:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T19:19:26.000Z (over 8 years ago)
- Last Synced: 2025-01-24T20:30:35.364Z (5 months ago)
- Topics: aerospike, nodejs, python, tornado
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prepare
* Install python 3.4 or above
* Install NodeJS 6 or above
* Install Aerospike
* Fill DB with random data
* python fill_db.py
* Create index:
* `CREATE INDEX expiresindex ON test.sessions (expires) NUMERIC`
* Install benchmarking tool, ex: weighttp# Tornado + sync client
* `cd torn`
* `pip install -r requirements.txt`
* `python main.py`
* `weighttp -n 10000 -t 4 -c 4 127.0.0.1:8080`## Results
```
finished in 6 sec, 916 millisec and 121 microsec, 1445 req/s, 294 kbyte/s
requests: 10000 total, 10000 started, 10000 done, 10000 succeeded, 0 failed, 0 errored
status codes: 10000 2xx, 0 3xx, 0 4xx, 0 5xx
traffic: 2089108 bytes total, 1950000 bytes http, 139108 bytes data
```# NodeJS + async client
* `cd node`
* `npm install`
* `nodejs main.js`
* `weighttp -n 10000 -t 4 -c 4 127.0.0.1:8081`## Results
```
finished in 3 sec, 295 millisec and 444 microsec, 3034 req/s, 616 kbyte/s
requests: 10000 total, 10000 started, 10000 done, 10000 succeeded, 0 failed, 0 errored
status codes: 10000 2xx, 0 3xx, 0 4xx, 0 5xx
traffic: 2079079 bytes total, 1940000 bytes http, 139079 bytes data
```