Make Timings use less passes in its benchmark

This commit is contained in:
Aikar 2016-02-23 21:31:01 -06:00
parent 1bdbffaf84
commit 5fbb42de01

View File

@ -1717,7 +1717,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ +
+ static long getCost() { + static long getCost() {
+ // Benchmark the users System.nanotime() for cost basis + // Benchmark the users System.nanotime() for cost basis
+ int passes = 500000; + int passes = 100;
+ TimingHandler SAMPLER1 = Timings.ofSafe("Timings Sampler 1"); + TimingHandler SAMPLER1 = Timings.ofSafe("Timings Sampler 1");
+ TimingHandler SAMPLER2 = Timings.ofSafe("Timings Sampler 2"); + TimingHandler SAMPLER2 = Timings.ofSafe("Timings Sampler 2");
+ TimingHandler SAMPLER3 = Timings.ofSafe("Timings Sampler 3"); + TimingHandler SAMPLER3 = Timings.ofSafe("Timings Sampler 3");