Skip to content

Instantly share code, notes, and snippets.

@malanjp
Created March 10, 2014 11:32
Show Gist options
  • Save malanjp/9463411 to your computer and use it in GitHub Desktop.
Save malanjp/9463411 to your computer and use it in GitHub Desktop.
[~]$ sh bench.sh
count = 1
== mongo ==
insert count 100000
update = 23.48549485206604
insert = 23.634454011917114
== mysql ==
insert count 100000
every commit = 36.17432904243469
atomic = 10.844573974609375
---
count = 2
== mongo ==
insert count 100000
update = 30.408015966415405
insert = 24.364924907684326
== mysql ==
insert count 100000
every commit = 37.102280139923096
atomic = 11.046845197677612
---
count = 3
== mongo ==
insert count 100000
update = 24.23754906654358
insert = 24.64457082748413
== mysql ==
insert count 100000
every commit = 36.2168869972229
atomic = 11.308199882507324
---
count = 4
== mongo ==
insert count 100000
update = 24.067211151123047
insert = 24.329855918884277
== mysql ==
insert count 100000
every commit = 36.001657009124756
atomic = 10.95393180847168
---
count = 5
== mongo ==
insert count 100000
update = 23.920723915100098
insert = 23.88018798828125
== mysql ==
insert count 100000
every commit = 36.960997104644775
atomic = 11.442364931106567
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment