Skip to content

What does performance benchmarks do? #1795

Answered by notaphplover
GarfieldJiang asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @GarfieldJiang, benchmarks are available here.

Get service in singleton scope does that: resolves the same singleton scoped binding multiple times.

Does inversify increase its performance on this kind of first-time resolving of singletons compared to 6.x versions

It should, but that's not reflected in the benchmarks. I don't expect a big boost in that case. The only advantages 7.x has in that scenario are better internal data structures. This means some internal binding searches are now indexed and way less objects are used. In low execution time flows it means the GC takes less time to allocate and free resolve related objects. A better use of the GC is relevent in these flows and …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GarfieldJiang
Comment options

Answer selected by GarfieldJiang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants