tests/benchmark: make benchmark cases... bigger
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iabd307b475f6568cff4d1ae6e5ae56ef6a6a6964
This commit is contained in:
parent
84cf5fdf68
commit
3347699a8c
3 changed files with 267 additions and 30 deletions
|
|
@ -83,7 +83,10 @@ run_benchmark() {
|
|||
src_size=$(stat -c%s "$file" 2>/dev/null || stat -f%z "$file" 2>/dev/null)
|
||||
local ir_size
|
||||
ir_size=$(stat -c%s /tmp/bench.nixir 2>/dev/null || stat -f%z /tmp/bench.nixir 2>/dev/null)
|
||||
local ratio=$((ir_size * 100 / src_size))
|
||||
local ratio=0
|
||||
if [[ "$src_size" -gt 0 ]]; then
|
||||
ratio=$((ir_size * 100 / src_size))
|
||||
fi
|
||||
echo -e " Source size: ${src_size}B"
|
||||
echo -e " IR bundle size: ${ir_size}B (${ratio}% of source)"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue