Files
hakmem/verify_top.sh

8 lines
560 B
Bash
Raw Normal View History

#!/bin/bash
echo "Verification runs for Hot_2048 (top performer):"
for i in 1 2 3 4 5; do
echo -n "Run $i: "
result=$(HAKMEM_TINY_UNIFIED_C0=64 HAKMEM_TINY_UNIFIED_C1=64 HAKMEM_TINY_UNIFIED_C2=2048 HAKMEM_TINY_UNIFIED_C3=2048 HAKMEM_TINY_UNIFIED_C4=64 HAKMEM_TINY_UNIFIED_C5=64 HAKMEM_TINY_UNIFIED_C6=64 HAKMEM_TINY_UNIFIED_C7=64 HAKMEM_TINY_UNIFIED_CACHE=1 ./out/release/bench_random_mixed_hakmem 100000 256 42 2>&1 | grep "Throughput" | grep -oP '\d+(?=\s+operations)')
echo "scale=2; $result / 1000000" | bc | xargs printf "%.2f M ops/s\n"
done