Skip to content

Commit

Permalink
Fix logic in ByteBuffer benchmark test that was reporting Infinity as…
Browse files Browse the repository at this point in the history
… compression ratio
  • Loading branch information
anelson committed Oct 8, 2016
1 parent 9ee034a commit 478d360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/scala/Perf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ZstdPerfSpec extends FlatSpec {
inputBuffer.rewind()
val compressedBuffer = Zstd.compress(inputBuffer, level)
nsc += System.nanoTime - start_c
compressedSize = compressedBuffer.position()
compressedSize = compressedBuffer.limit()
val start_d = System.nanoTime
outputBuffer.clear()
val size = Zstd.decompress(outputBuffer, compressedBuffer)
Expand Down

0 comments on commit 478d360

Please sign in to comment.