remove obsolete class

This commit is contained in:
2017-03-20 19:02:01 +01:00
parent 7cf638400c
commit ee00ecb4b5
2 changed files with 5 additions and 24 deletions

View File

@@ -67,7 +67,7 @@ public class PerformanceDb implements AutoCloseable, CollectionUtils {
long count = 0;
try {
long start = System.nanoTime();
long start = System.currentTimeMillis();
while (true) {
final Optional<Entry> entryOptional = entries.next();
@@ -87,16 +87,11 @@ public class PerformanceDb implements AutoCloseable, CollectionUtils {
if (count % blocksize == 0) {
final long end = System.nanoTime();
final double duration = (end - start) / 1_000_000.0;
LOGGER.debug("inserting the last " + blocksize + " took " + duration + " ms; " + Stats.duration
+ "ms of " + Stats.count + " operations. total entries: " + count / 1_000_000.0
+ " million");
final long duration = end - start;
LOGGER.debug("inserting the last " + blocksize + " took " + duration + " ms; total entries: "
+ count / 1_000_000.0 + " million");
// System.out.println(entry);
start = System.nanoTime();
Stats.duration = 0.0;
Stats.count = 0;
start = System.currentTimeMillis();
}
if (count % blocksize == 0) {

View File

@@ -1,14 +0,0 @@
package org.lucares.performance.db;
public class Stats {
public static double duration = 0.0;
public static long count = 0;
{
final long s = System.nanoTime();
final long e = System.nanoTime();
Stats.duration += (e - s) / 1_000_000.0;
Stats.count++;
}
}