Skip to content

Commit 448af09

Browse files
committed
Adding some output
1 parent 03a2079 commit 448af09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/scala/org/ward/Benchmark.scala

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ object Benchmark {
5252
b.saveAsTextFile(outputTempPath)
5353
}
5454

55+
log.info("\nABenchmark: Pass " + i " Aggregate Throughput : " + (nFiles * fSize.toLong)/(timeW/1000.toFloat) + " Bytes per second")
56+
5557
totalTimeW += timeW
5658

5759
fs.delete(new Path(outputTempPath), true)
@@ -61,9 +63,9 @@ object Benchmark {
6163
//make sure dir is empty
6264
fs.delete(new Path(outputTempPath), true)
6365

64-
log.info("\nBenchmark: Total volume : " + (repeat * nFiles.toLong * fSize) + " Bytes")
66+
log.info("\n\nBenchmark: Total volume : " + (repeat * nFiles.toLong * fSize) + " Bytes")
6567
log.info("\nBenchmark: Total write time : " + (totalTimeW/1000.toFloat) + " s")
66-
log.info("\nABenchmark: Aggregate Throughput : " + (repeat * nFiles * fSize.toLong)/(totalTimeW/1000.toFloat) + " Bytes per second")
68+
log.info("\nABenchmark: Aggregate Throughput : " + (repeat * nFiles * fSize.toLong)/(totalTimeW/1000.toFloat) + " Bytes per second\n")
6769

6870
}
6971
}

0 commit comments

Comments
 (0)