Skip to content

Instantly share code, notes, and snippets.

@mcuadros mcuadros/gist:9551290
Last active Aug 29, 2015

Embed
What would you like to do?
Mongofill Insert Benchmarks

MongoDB native driver 1.4.5 - PHP 5.5.9-1+sury.org~precise+1

Mongofill\Benchmarks\BsonEvent
    Method Name           Iterations    Average Time      Ops/second
    -------------------  ------------  --------------    -------------
    simpleEncode       : [10,000    ] [0.0000005092382] [1,963,717.40250]
    simpleNestedEncode : [10,000    ] [0.0000507833719] [19,691.48487]
    complexEncode      : [10,000    ] [0.0000015980959] [625,744.67768]
    complexNestedEncode: [10,000    ] [0.0001292291880] [7,738.18992]
    simpleDecode       : [10,000    ] [0.0000009249926] [1,081,089.77498]
    simpleNestedDecode : [10,000    ] [0.0000906438828] [11,032.18408]
    complexDecode      : [10,000    ] [0.0000026097059] [383,184.93683]
    complexNestedDecode: [10,000    ] [0.0003904742241] [2,560.98851]


Mongofill\Benchmarks\DeletingEvent
    Method Name      Iterations    Average Time      Ops/second
    --------------  ------------  --------------    -------------
    simpleDocument: [1,000     ] [0.0019288046360] [518.45583]


Mongofill\Benchmarks\FindingEvent
    Method Name             Iterations    Average Time      Ops/second
    ---------------------  ------------  --------------    -------------
    simpleDocument       : [100       ] [0.0021095418930] [474.03657]
    simpleNestedDocument : [100       ] [0.0465396142006] [21.48707]
    complexDocument      : [100       ] [0.0025423288345] [393.34015]
    complexNestedDocument: [100       ] [0.0907471823692] [11.01963]


Mongofill\Benchmarks\InsertingEvent
    Method Name             Iterations    Average Time      Ops/second
    ---------------------  ------------  --------------    -------------
    simpleDocument       : [1,000     ] [0.0001736767292] [5,757.82377]
    simpleDocumentW0     : [1,000     ] [0.0000176751614] [56,576.56977]
    simpleNestedDocument : [1,000     ] [0.0005794484615] [1,725.77902]
    complexDocument      : [1,000     ] [0.0001861116886] [5,373.11766]
    complexNestedDocument: [1,000     ] [0.0010204646587] [979.94574]


Mongofill\Benchmarks\UpdatingEvent
    Method Name             Iterations    Average Time      Ops/second
    ---------------------  ------------  --------------    -------------
    simpleDocument       : [1,000     ] [0.0001537206173] [6,505.30825]
    simpleNestedDocument : [1,000     ] [0.0006038835049] [1,655.94853]
    complexDocument      : [1,000     ] [0.0002437036037] [4,103.34515]
    complexNestedDocument: [1,000     ] [0.0011002671719] [908.87016]

Mongofill ae5c155 + BSON-HNI 0.0.1 - HipHop VM 2.5.0-dev+2014.03.18

Mongofill\Benchmarks\BsonEvent
    Method Name           Iterations    Average Time      Ops/second
    -------------------  ------------  --------------    -------------
    simpleEncode       : [10,000    ] [0.0000015502691] [645,049.29025]
    simpleNestedEncode : [10,000    ] [0.0001614139108] [6,195.25301]
    complexEncode      : [10,000    ] [0.0000033607245] [297,554.89185]
    complexNestedEncode: [10,000    ] [0.0003092895561] [3,233.21625]
    simpleDecode       : [10,000    ] [0.0000014449120] [692,083.69085]
    simpleNestedDecode : [10,000    ] [0.0001243273756] [8,043.28099]
    complexDecode      : [10,000    ] [0.0000061186076] [163,435.87925]
    complexNestedDecode: [10,000    ] [0.0005215806097] [1,917.24922]


Mongofill\Benchmarks\DeletingEvent
    Method Name      Iterations    Average Time      Ops/second
    --------------  ------------  --------------    -------------
    simpleDocument: [1,000     ] [0.0019765897137] [505.92190]


Mongofill\Benchmarks\FindingEvent
    Method Name             Iterations    Average Time      Ops/second
    ---------------------  ------------  --------------    -------------
    simpleDocument       : [100       ] [0.0034662390351] [288.49713]
    simpleNestedDocument : [100       ] [0.0322889691186] [30.97033]
    complexDocument      : [100       ] [0.0035040307648] [285.38563]
    complexNestedDocument: [100       ] [0.1234646770736] [8.09948]


Mongofill\Benchmarks\InsertingEvent
    Method Name             Iterations    Average Time      Ops/second
    ---------------------  ------------  --------------    -------------
    simpleDocument       : [1,000     ] [0.0002213335075] [4,518.06881]
    simpleDocumentW0     : [1,000     ] [0.0000244238381] [40,943.60656]
    simpleNestedDocument : [1,000     ] [0.0008891532574] [1,124.66553]
    complexDocument      : [1,000     ] [0.0002216444054] [4,511.73137]
    complexNestedDocument: [1,000     ] [0.0013491435283] [741.21100]


Mongofill\Benchmarks\UpdatingEvent
    Method Name             Iterations    Average Time      Ops/second
    ---------------------  ------------  --------------    -------------
    simpleDocument       : [1,000     ] [0.0002066271341] [4,839.63552]
    simpleNestedDocument : [1,000     ] [0.0008624134212] [1,159.53671]
    complexDocument      : [1,000     ] [0.0001995446716] [5,011.40927]
    complexNestedDocument: [1,000     ] [0.0013107500301] [762.92199]

Mongofill 1dc49f0 - HipHop VM 2.5.0-dev+2014.03.18

Mongofill\Benchmarks\BsonEvent
    Method Name           Iterations    Average Time      Ops/second
    -------------------  ------------  --------------    -------------
    simpleEncode       : [10,000    ] [0.0000042254449] [236,661.47561]
    simpleNestedEncode : [10,000    ] [0.0004522139866] [2,211.34252]
    complexEncode      : [10,000    ] [0.0000068679334] [145,604.21020]
    complexNestedEncode: [10,000    ] [0.0007081336143] [1,412.16290]
    simpleDecode       : [10,000    ] [0.0000075269462] [132,856.00707]
    simpleNestedDecode : [10,000    ] [0.0007195151453] [1,389.82483]
    complexDecode      : [10,000    ] [0.0000132304909] [75,582.98659]
    complexNestedDecode: [10,000    ] [0.0012911371453] [774.51107]


Mongofill\Benchmarks\DeletingEvent
    Method Name      Iterations    Average Time      Ops/second
    --------------  ------------  --------------    -------------
    simpleDocument: [1,000     ] [0.0015582726270] [641.73624]


Mongofill\Benchmarks\FindingEvent
    Method Name             Iterations    Average Time      Ops/second
    ---------------------  ------------  --------------    -------------
    simpleDocument       : [100       ] [0.0046346426807] [215.76637]
    simpleNestedDocument : [100       ] [0.1536094644270] [6.51002]
    complexDocument      : [100       ] [0.0044641567045] [224.00648]
    complexNestedDocument: [100       ] [0.2723985575807] [3.67109]


Mongofill\Benchmarks\InsertingEvent
    Method Name             Iterations    Average Time      Ops/second
    ---------------------  ------------  --------------    -------------
    simpleDocument       : [1,000     ] [0.0002240967790] [4,462.35784]
    simpleDocumentW0     : [1,000     ] [0.0000193791392] [51,601.87988]
    simpleNestedDocument : [1,000     ] [0.0015655718119] [638.74427]
    complexDocument      : [1,000     ] [0.0001937754187] [5,160.61337]
    complexNestedDocument: [1,000     ] [0.0022745380793] [439.64971]


Mongofill\Benchmarks\UpdatingEvent
    Method Name             Iterations    Average Time      Ops/second
    ---------------------  ------------  --------------    -------------
    simpleDocument       : [1,000     ] [0.0002339077036] [4,275.19061]
    simpleNestedDocument : [1,000     ] [0.0015296352173] [653.75065]
    complexDocument      : [1,000     ] [0.0001935715708] [5,166.04795]
    complexNestedDocument: [1,000     ] [0.0022602913769] [442.42084]

Server info:

Dell R210 II

  • CPU: 1x Intel® Xeon® E3 1230 v2
  • Memory: 16 GB DDR3 ECC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.