Skip to content

Commit

Permalink
feat: add output size to benchmark script
Browse files Browse the repository at this point in the history
I have noticed that vips output tends to be bigger despite using the same quality settings. I believe this is caused
by vips preserving more details when performing operations, but decided to expose that difference in benchmark script
to allow making more informed decisions
  • Loading branch information
knarewski committed Dec 11, 2024
1 parent 742d289 commit 66f71a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/benchmark-full
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ module Morandi
stdout_str, _status = Open3.capture2e(*cmd)
result = parse_single_benchmark_result(stdout_str)
result.each { |key, value| stats[key] << value }
stats[:output_size_mb] << (File.size(output_image_path).to_f / 1024 / 1024).round(2)
end

stats.each do |key, entries|
Expand Down

0 comments on commit 66f71a4

Please sign in to comment.