diff --git a/README.md b/README.md index f18a89433..1456c9106 100644 --- a/README.md +++ b/README.md @@ -11,75 +11,19 @@ MongoMallard is a fast ORM-like layer on top of PyMongo, based on MongoEngine. Benchmarks ---------- -Sample run on a 2.7 GHz Intel Core i5 running OS X 10.8.3 +Sample run on a Apple M3 Max running Sonoma 14.6.1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MongoEngine 0.8.2 (ede9fcf)MongoMallard (478062c)Speedup
Doc initialization52.494us25.195us2.08x
Doc getattr1.339us0.584us2.29x
Doc setattr3.064us2.550us1.20x
Doc to mongo49.415us26.497us1.86x
Load from SON61.475us4.510us13.63x
Save to database434.389us289.972us2.29x
Load from database558.178us480.690us1.16x
Save/delete big object to database98.838ms65.789ms1.50x
Serialize big object from database31.390ms20.265ms1.55x
Load big object from database41.159ms1.400ms29.40x
+| | MongoEngine | MongoMallard | Speedup | +|---|---|---|---| +| Doc initialization | 10.113us | 3.219us | 3.14x | +| Doc getattr | 0.086us | 0.086us | 1.00x | +| Doc setattr | 0.549us | 0.211us | 2.60x | +| Doc to mongo | 5.991us | 3.181us | 1.88x | +| Load from SON | 12.094us | 0.685us | 17.66x | +| Save to database | 259.094us | 218.945us | 1.18x | +| Load from database | 260.192us | 246.576us | 1.06x | +| Save/delete big object to database | 18.510ms | 8.925ms | 2.07x | +| Serialize big object from database | 4.058ms | 2.346ms | 1.73x | +| Load big object from database | 11.205ms | 0.655ms | 17.11x | See [tests/benchmark.py](https://github.com/elasticsales/mongoengine/blob/master/tests/benchmark.py) for source code.