Skip to content

Instantly share code, notes, and snippets.

@joshuaclayton
Created March 15, 2011 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuaclayton/870297 to your computer and use it in GitHub Desktop.
Save joshuaclayton/870297 to your computer and use it in GitHub Desktop.
Mongo ruby driver's benchmarks against faststep
Faststep -- Standard Benchmark
21-Mar-2011
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]
Latest Commit:
commit 9c7c1b7b882d984fbc2840ae6d434af4e5e71cd6
Author: Joshua Clayton <jclayton@thoughtbot.com>
Date: Sun Mar 20 21:02:55 2011 -0400
5000 documents or queries per trial. Batches of 100 on batch inserts.
Test (real) (real ops/s) (user) (user ops/s)
insert (small, no index)................ 0.21 23274 0.08 62500
insert (medium, no index)............... 0.20 25319 0.14 35714
insert (large, no index)................ 7.77 643 7.67 651
insert (small, index)................... 0.21 23586 0.08 62499
insert (medium, index).................. 0.27 18775 0.15 33333
insert (large, index)................... 8.10 617 7.85 636
insert batch (small, index)............. 0.03 167006 0.03 166666
insert batch (medium, index)............ 0.10 51881 0.10 50000
insert batch (large, index)............. 10.06 496 7.75 645
find_one (small, no index).............. 0.88 5660 0.26 19230
find_one (medium, no index)............. 0.91 5486 0.29 17241
find_one (large, no index).............. 1.40 3576 0.72 6944
find_one (small, no index).............. 0.89 5592 0.27 18518
find_one (medium, no index)............. 0.93 5382 0.30 16666
find_one (large, no index).............. 1.55 3231 0.77 6493
find_one (small, indexed)............... 0.88 5653 0.27 18518
find_one (medium, indexed).............. 0.92 5453 0.29 17241
find_one (large, indexed)............... 1.40 3580 0.71 7042
find (small, no index).................. 0.87 5731 0.25 20000
find (medium, no index)................. 0.92 5416 0.28 17857
find (large, no index).................. 1.40 3573 0.72 6944
find (small, indexed)................... 0.87 5766 0.25 20000
find (medium, indexed).................. 0.90 5526 0.28 17857
find (large, indexed)................... 1.39 3601 0.71 7042
find_range (small, indexed)............. 5.58 896 4.12 1213
find_range (medium, indexed)............ 7.88 634 6.28 796
find_range (large, indexed)............. 60.25 82 50.20 99
MongoDB Ruby Driver -- Standard Benchmark
15-Mar-2011
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]
Latest Commit:
commit 2690520afaab600c362ba2934528612abc5cf4a9
Author: Kyle Banker <kylebanker@gmail.com>
Date: Sat Mar 12 17:48:35 2011 -0500
5000 documents or queries per trial. Batches of 100 on batch inserts.
Test (real) (real ops/s) (user) (user ops/s)
insert (small, no index)................ 0.43 11699 0.32 15625
insert (medium, no index)............... 0.43 11639 0.38 13157
insert (large, no index)................ 9.96 502 9.86 507
insert (small, index)................... 0.36 13943 0.32 15624
insert (medium, index).................. 0.44 11442 0.39 12820
insert (large, index)................... 10.13 493 10.01 499
insert batch (small, index)............. 0.09 55468 0.09 55555
insert batch (medium, index)............ 0.17 29703 0.17 29411
insert batch (large, index)............. 9.42 530 9.28 538
find_one (small, no index).............. 1.21 4119 0.56 8928
find_one (medium, no index)............. 1.23 4064 0.58 8620
find_one (large, no index).............. 1.70 2946 1.01 4950
find_one (small, no index).............. 1.21 4131 0.56 8928
find_one (medium, no index)............. 1.24 4042 0.58 8620
find_one (large, no index).............. 1.69 2957 1.01 4950
find_one (small, indexed)............... 1.21 4122 0.57 8771
find_one (medium, indexed).............. 1.24 4024 0.59 8474
find_one (large, indexed)............... 1.70 2940 1.02 4901
find (small, no index).................. 1.15 4329 0.54 9259
find (medium, no index)................. 1.18 4236 0.57 8771
find (large, no index).................. 1.63 3066 1.00 5000
find (small, indexed)................... 1.15 4356 0.54 9259
find (medium, indexed).................. 1.20 4179 0.58 8620
find (large, indexed)................... 1.63 3062 1.00 5000
find_range (small, indexed)............. 11.62 430 8.40 595
find_range (medium, indexed)............ 15.25 327 10.80 462
find_range (large, indexed)............. 68.89 72 57.57 86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment