Skip to content

Commit

Permalink
Change terminology: per-request -> per-injector
Browse files Browse the repository at this point in the history
  • Loading branch information
poletti-marco committed Aug 6, 2017
1 parent f40e511 commit 972dec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ table of the "Per-injector time" (if you're using `NormalizedComponent`).
Note that in the 100 classes case, Fruit manages to be faster than raw new/delete when using `NormalizedComponent`. This
is thanks to Fruit's custom allocation strategy.

The above per-request results are impressively low considering that Fruit has to traverse the graph of dependencies
The above per-injector results are impressively low considering that Fruit has to traverse the graph of dependencies
while new/delete "just" have to find some empty spots in memory.

Side note: the super-linear increase observed in the per-request time for both new/delete and Fruit injection is due to
Side note: the super-linear increase observed in both new/delete and the Fruit the per-injector time is due to
CPU caches. Profiling the benchmark has shown a ~5% L1 instruction miss rate, due to the 1K constructors being called at
each request, that don't all fit in the L1 cache. Each edge of the dependency graph adds an O(1) cost.

Expand Down

0 comments on commit 972dec3

Please sign in to comment.