Skip to content

Instantly share code, notes, and snippets.

@pmwkaa
Created February 28, 2014 16:42
Show Gist options
  • Save pmwkaa/9274421 to your computer and use it in GitHub Desktop.
Save pmwkaa/9274421 to your computer and use it in GitHub Desktop.
count = 20 million
key = u32
value = 100 ~ 120 per tuple
1.6 benchmark
-------------
space = box.schema.create_space('tweedledum', { id = 0 })
space:create_index('primary', { type = 'tree', parts = { 0, 'num'} })
select
------
.----------.---------------.---------------.---------------.
| type | minimal | average | maximum |
.----------.---------------.---------------.---------------.
| read/s | 348319 | 374545 | 378024 |
| write/s | 0 | 0 | 0 |
| req/s | 348319 | 374545 | 378024 |
| rtt/ms | 0.02646 | 0.02673 | 0.028944 |
'----------.---------------.---------------.---------------'
replace
-------
.----------.---------------.---------------.---------------.
| type | minimal | average | maximum |
.----------.---------------.---------------.---------------.
| read/s | 0 | 0 | 0 |
| write/s | 229911 | 241892 | 258002 |
| req/s | 229911 | 241892 | 258002 |
| rtt/ms | 0.03881 | 0.04148 | 0.043538 |
'----------.---------------.---------------.---------------'
1.5 benchmark
-------------
select
------
.----------.---------------.---------------.---------------.
| type | minimal | average | maximum |
.----------.---------------.---------------.---------------.
| read/s | 349798 | 358930 | 370566 |
| write/s | 0 | 0 | 0 |
| req/s | 349798 | 358930 | 370566 |
| rtt/ms | 0.02700 | 0.02788 | 0.028600 |
'----------.---------------.---------------.---------------'
replace
-------
.----------.---------------.---------------.---------------.
| type | minimal | average | maximum |
.----------.---------------.---------------.---------------.
| read/s | 0 | 0 | 0 |
| write/s | 347673 | 367535 | 379098 |
| req/s | 347673 | 367535 | 379098 |
| rtt/ms | 0.02639 | 0.02724 | 0.028781 |
'----------.---------------.---------------.---------------'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment