Skip to content

Commit 27f66b1

Browse files
committed
docs: adding a paragraph on forcing GC between runs
1 parent 47b3ba2 commit 27f66b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/Inconclusive.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ If you change the `minTime` up or down, that will alter the number of iterations
4141
results. You can also try increasing `minSamples` to get more samples. But also take this as a suggestion that your code
4242
may have a performance bug that is worth prioritizing.
4343

44+
Forcing GC in the teardown or setup methods between subsequent tests in a single Suite may help with some situations
45+
when reordering the tests results in differences in runtime, but for the more general case, you may need to review the
46+
code under test to make it 'play well' both with benchmarking and in production systems.
47+
4448
In production code, particularly where p9# values are used as a fitness test, it is sometimes better to chose the
4549
algorithm with more consistent runtime over the one with supposedly better average runtime. This can also be true where
4650
DDOS scenarios are possible - the attacker will always chose the worst, most assymetric request to send to your machine,

0 commit comments

Comments
 (0)