Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark / performance #79

Open
pocesar opened this issue Aug 22, 2013 · 3 comments
Open

Benchmark / performance #79

pocesar opened this issue Aug 22, 2013 · 3 comments
Milestone

Comments

@pocesar
Copy link

pocesar commented Aug 22, 2013

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?

@maritz
Copy link
Owner

maritz commented Aug 22, 2013

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.

@sam2x
Copy link
Collaborator

sam2x commented May 21, 2016

@pocesar any pointers how to accomplish this ?

@sam2x sam2x mentioned this issue Jul 4, 2016
19 tasks
@maritz maritz added this to the 1.0 milestone Jul 5, 2016
@sam2x
Copy link
Collaborator

sam2x commented May 27, 2017

let me know what you think about #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)

@maritz maritz modified the milestones: 2.0, 2.2 May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants