remove obsolete class
This commit is contained in:
@@ -67,7 +67,7 @@ public class PerformanceDb implements AutoCloseable, CollectionUtils {
|
|||||||
long count = 0;
|
long count = 0;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
long start = System.nanoTime();
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
final Optional<Entry> entryOptional = entries.next();
|
final Optional<Entry> entryOptional = entries.next();
|
||||||
@@ -87,16 +87,11 @@ public class PerformanceDb implements AutoCloseable, CollectionUtils {
|
|||||||
|
|
||||||
if (count % blocksize == 0) {
|
if (count % blocksize == 0) {
|
||||||
final long end = System.nanoTime();
|
final long end = System.nanoTime();
|
||||||
final double duration = (end - start) / 1_000_000.0;
|
final long duration = end - start;
|
||||||
LOGGER.debug("inserting the last " + blocksize + " took " + duration + " ms; " + Stats.duration
|
LOGGER.debug("inserting the last " + blocksize + " took " + duration + " ms; total entries: "
|
||||||
+ "ms of " + Stats.count + " operations. total entries: " + count / 1_000_000.0
|
+ count / 1_000_000.0 + " million");
|
||||||
+ " million");
|
|
||||||
|
|
||||||
// System.out.println(entry);
|
start = System.currentTimeMillis();
|
||||||
|
|
||||||
start = System.nanoTime();
|
|
||||||
Stats.duration = 0.0;
|
|
||||||
Stats.count = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count % blocksize == 0) {
|
if (count % blocksize == 0) {
|
||||||
|
|||||||
@@ -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++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user