Skip to content

Instantly share code, notes, and snippets.

@durran
Created February 16, 2012 10:59
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save durran/1844063 to your computer and use it in GitHub Desktop.
Save durran/1844063 to your computer and use it in GitHub Desktop.
First run perf numbers, Moped.
##################################################################
# ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]
# 10gen: mongo-1.5.2
# bson-1.5.2 (BSON::BSON_C)
##################################################################
user system total real
10gen: insert 10,000 blank documents 0.670000 0.060000 0.730000 ( 0.744400)
10gen: insert 10,000 blank documents safe mode 1.200000 0.140000 1.340000 ( 1.800714)
10gen: insert 1,000 normal documents 0.090000 0.010000 0.100000 ( 0.091035)
10gen: query 1,000 normal documents (100x) 1.780000 0.240000 2.020000 ( 2.743184)
10gen: insert 1,000 large documents 0.150000 0.010000 0.160000 ( 0.168708)
10gen: query 1,000 large documents (100x) 3.610000 0.690000 4.300000 ( 5.329637)
moped: insert 10,000 blank documents 0.550000 0.100000 0.650000 ( 0.655766)
moped: insert 10,000 blank documents safe mode 0.580000 0.100000 0.680000 ( 0.688874)
moped: insert 1,000 normal documents 0.060000 0.010000 0.070000 ( 0.068050)
moped: query 1,000 normal documents (100x) 1.200000 0.020000 1.220000 ( 1.942211)
moped: insert 1,000 large documents 0.070000 0.020000 0.090000 ( 0.091178)
moped: query 1,000 large documents (100x) 1.860000 0.370000 2.230000 ( 3.317113)
################################################################
# ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
# 10gen: mongo-1.5.2
# bson-1.5.2 (BSON::BSON_C)
################################################################
10gen: insert 10,000 blank documents 0.610000 0.060000 0.670000 ( 0.675646)
10gen: insert 10,000 blank documents safe mode 1.110000 0.150000 1.260000 ( 1.696191)
10gen: insert 1,000 normal documents 0.080000 0.000000 0.080000 ( 0.085291)
10gen: query 1,000 normal documents (100x) 1.570000 0.250000 1.820000 ( 2.530425)
10gen: insert 1,000 large documents 0.140000 0.010000 0.150000 ( 0.156316)
10gen: query 1,000 large documents (100x) 2.920000 0.720000 3.640000 ( 4.674187)
moped: insert 10,000 blank documents 0.560000 0.090000 0.650000 ( 0.656828)
moped: insert 10,000 blank documents safe mode 0.600000 0.100000 0.700000 ( 0.707812)
moped: insert 1,000 normal documents 0.070000 0.010000 0.080000 ( 0.074227)
moped: query 1,000 normal documents (100x) 1.250000 0.020000 1.270000 ( 1.985552)
moped: insert 1,000 large documents 0.070000 0.010000 0.080000 ( 0.086023)
moped: query 1,000 large documents (100x) 1.310000 0.390000 1.700000 ( 2.753132)
##############################################################
# ruby 2.0.0dev (2012-01-25 trunk 34375) [x86_64-darwin11.2.0]
# 10gen: mongo-1.5.2
# bson-1.5.2 (BSON::BSON_C)
##############################################################
10gen: insert 10,000 blank documents 0.630000 0.070000 0.700000 ( 0.704281)
10gen: insert 10,000 blank documents safe mode 1.150000 0.140000 1.290000 ( 1.733981)
10gen: insert 1,000 normal documents 0.080000 0.010000 0.090000 ( 0.091040)
10gen: query 1,000 normal documents (100x) 1.700000 0.250000 1.950000 ( 2.678919)
10gen: insert 1,000 large documents 0.150000 0.010000 0.160000 ( 0.168455)
10gen: query 1,000 large documents (100x) 3.240000 0.680000 3.920000 ( 4.951100)
moped: insert 10,000 blank documents 0.600000 0.100000 0.700000 ( 0.704986)
moped: insert 10,000 blank documents safe mode 0.670000 0.100000 0.770000 ( 0.776745)
moped: insert 1,000 normal documents 0.080000 0.010000 0.090000 ( 0.087204)
moped: query 1,000 normal documents (100x) 1.530000 0.010000 1.540000 ( 2.274560)
moped: insert 1,000 large documents 0.070000 0.020000 0.090000 ( 0.091751)
moped: query 1,000 large documents (100x) 1.260000 0.410000 1.670000 ( 2.729086)
#############################################################################################################
# jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (OpenJDK 64-Bit Server VM 1.7.0-ea) [darwin-x86_64-java]
# 10gen: mongo-1.5.2
# bson-1.5.2 (BSON::BSON_JAVA)
#############################################################################################################
10gen: insert 10,000 blank documents 0.693000 0.000000 0.693000 ( 0.693000)
10gen: insert 10,000 blank documents safe mode 1.723000 0.000000 1.723000 ( 1.723000)
10gen: insert 1,000 normal documents 0.068000 0.000000 0.068000 ( 0.068000)
10gen: query 1,000 normal documents (100x) 2.315000 0.000000 2.315000 ( 2.315000)
10gen: insert 1,000 large documents 0.085000 0.000000 0.085000 ( 0.085000)
10gen: query 1,000 large documents (100x) 11.766000 0.000000 11.766000 ( 11.766000)
moped: insert 10,000 blank documents 0.747000 0.000000 0.747000 ( 0.747000)
moped: insert 10,000 blank documents safe mode 0.744000 0.000000 0.744000 ( 0.744000)
moped: insert 1,000 normal documents 0.089000 0.000000 0.089000 ( 0.089000)
moped: query 1,000 normal documents (100x) 1.271000 0.000000 1.271000 ( 1.271000)
moped: insert 1,000 large documents 0.092000 0.000000 0.092000 ( 0.092000)
moped: query 1,000 large documents (100x) 2.676000 0.000000 2.676000 ( 2.676000)
@fl00r
Copy link

fl00r commented Aug 12, 2013

I've benched it with Monga

benchmark

       user     system      total        real
Mongo: Inserting 10b document  2.490000   0.230000   2.720000 (  3.991544)
Mongo: Reading 10b documents  4.440000   0.470000   4.910000 (  5.038622)
Mongo: Inserting 100b document  1.830000   0.230000   2.060000 (  3.016511)
Mongo: Reading 100b documents  4.150000   0.500000   4.650000 (  4.803891)
Mongo: Inserting 1000b document  2.360000   0.240000   2.600000 (  3.834360)
Mongo: Reading 1000b documents  4.530000   0.610000   5.140000 (  5.381206)
Mongo: Inserting 10000b document  3.110000   0.280000   3.390000 (  5.384768)
Mongo: Reading 10000b documents  9.530000   1.360000  10.890000 ( 12.878358)
---------------
       user     system      total        real
Monga (blocking): Inserting 10b document  2.390000   0.190000   2.580000 (  3.866378)
Monga (blocking): Reading 10b documents  2.300000   0.010000   2.310000 (  2.437103)
Monga (blocking): Inserting 100b document  2.290000   0.150000   2.440000 (  3.649346)
Monga (blocking): Reading 100b documents  2.280000   0.030000   2.310000 (  2.469126)
Monga (blocking): Inserting 1000b document  2.300000   0.230000   2.530000 (  3.915265)
Monga (blocking): Reading 1000b documents  2.430000   0.210000   2.640000 (  2.873622)
Monga (blocking): Inserting 10000b document  2.340000   0.200000   2.540000 (  4.302775)
Monga (blocking): Reading 10000b documents  4.580000   1.940000   6.520000 (  8.517201)
---------------
       user     system      total        real
Moped: Inserting 10b document  2.450000   0.230000   2.680000 (  3.765002)
Moped: Reading 10b documents  2.250000   0.020000   2.270000 (  2.433213)
Moped: Inserting 100b document  2.320000   0.240000   2.560000 (  4.530482)
Moped: Reading 100b documents  2.370000   0.030000   2.400000 (  2.545167)
Moped: Inserting 1000b document  2.450000   0.240000   2.690000 (  3.857157)
Moped: Reading 1000b documents  2.500000   0.070000   2.570000 (  2.818083)
Moped: Inserting 10000b document  2.590000   0.260000   2.850000 (  5.071164)
Moped: Reading 10000b documents  6.520000   0.760000   7.280000 (  9.263439)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment