nohm icon indicating copy to clipboard operation
nohm copied to clipboard

Benchmark / performance

Open pocesar opened this issue 12 years ago • 3 comments

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?

pocesar avatar Aug 22 '13 20:08 pocesar

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.

maritz avatar Aug 22 '13 22:08 maritz

@pocesar any pointers how to accomplish this ?

sam2x avatar May 21 '16 13:05 sam2x

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)

sam2x avatar May 27 '17 17:05 sam2x