nohm
nohm copied to clipboard
Benchmark / performance
How is the performance with this module? Would you mind if I create a benchmark test to add to this module, would you accept a pull request?
Oh, I'd love that. I never seriously benchmarked it myself. I'm not 100% sure how to actually create meaningful benchmarks for an ORM, though.
@pocesar any pointers how to accomplish this ?
let me know what you think about https://github.com/maritz/nohm/pull/110 improvements, etc.
Conclusion based on my result :
- 10k objects created in ~2.5sec, so 4000 nohm objects/sec.
- 20k objects updated in 1.6sec, so 12500 nohm objects/sec updated.
- Factory is ~1.10x faster than manual way to load/create an object
- Updating is slower than Reading (make sense)
- Updating is ~1.5x faster than Creating (it looks like a huge difference, saving update require the same step as creating in nohm, no ? In my update-test, loading the object is not taken in account)
- Unlinking is ~1.6x slower than Linking (not sure why)