diff options
Diffstat (limited to 'lodepng_benchmark.cpp')
-rw-r--r-- | lodepng_benchmark.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lodepng_benchmark.cpp b/lodepng_benchmark.cpp index 791ced0..66de123 100644 --- a/lodepng_benchmark.cpp +++ b/lodepng_benchmark.cpp @@ -499,10 +499,10 @@ int main(int argc, char *argv[]) } } - std::cout << "Total decoding time: " << total_dec_time/NUM_DECODE << "s" << std::endl; - std::cout << "Total encoding time: " << total_enc_time << "s" << std::endl; - std::cout << "Total input size : " << total_in_size << std::endl; - std::cout << "Total encoded size: " << total_enc_size << std::endl; + std::cout << "Total decoding time: " << total_dec_time/NUM_DECODE << "s (" << ((total_in_size/1024.0/1024.0)/(total_dec_time/NUM_DECODE)) << " MB/s)" << std::endl; + std::cout << "Total encoding time: " << total_enc_time << "s (" << ((total_in_size/1024.0/1024.0)/(total_enc_time)) << " MB/s)" << std::endl; + std::cout << "Total uncompressed size : " << total_in_size << std::endl; + std::cout << "Total encoded size: " << total_enc_size << " (" << (100.0 * total_enc_size / total_in_size) << "%)" << std::endl; if(verbose) std::cout << "benchmark done" << std::endl; } |