Make Timings use less passes in its benchmark

Dieser Commit ist enthalten in:
Aikar 2016-02-23 21:31:01 -06:00 committet von Zach Brown
Ursprung dcad4c6ea7
Commit 0ba78fc192

Datei anzeigen

@ -1,11 +1,11 @@
From 445de7fb20febc456d819d052524c63393920b10 Mon Sep 17 00:00:00 2001
From b5e8582ab199f61b7dcdf2520e9a921907f4e35f Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Fri, 8 Jan 2016 23:12:28 -0600
Subject: [PATCH] Timings v2
diff --git a/pom.xml b/pom.xml
index a2dd938..2f8fcf9 100644
index d63151f..fe9d6d2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,6 +48,13 @@
@ -1501,7 +1501,7 @@ index 0000000..3dba3aa
+}
diff --git a/src/main/java/co/aikar/timings/TimingsExport.java b/src/main/java/co/aikar/timings/TimingsExport.java
new file mode 100644
index 0000000..dd78647
index 0000000..fe19ea0
--- /dev/null
+++ b/src/main/java/co/aikar/timings/TimingsExport.java
@@ -0,0 +1,373 @@
@ -1717,7 +1717,7 @@ index 0000000..dd78647
+
+ static long getCost() {
+ // Benchmark the users System.nanotime() for cost basis
+ int passes = 500000;
+ int passes = 100;
+ TimingHandler SAMPLER1 = Timings.ofSafe("Timings Sampler 1");
+ TimingHandler SAMPLER2 = Timings.ofSafe("Timings Sampler 2");
+ TimingHandler SAMPLER3 = Timings.ofSafe("Timings Sampler 3");
@ -3426,5 +3426,5 @@ index 8d98297..7e89b97 100644
- }
}
--
2.7.0
2.7.1