benchmark files
All checks were successful
/ Build-Stuff (push) Successful in 5s

This commit is contained in:
Frederik Hertzum 2024-02-27 22:54:25 +01:00
parent 0171411d66
commit 75442b923a

9
benchmarks/benchmark.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
c++ -o file-reader file-reader.cpp -I../src -O3 -std=c++20
for A in 1000 2000 3000 4000 5000; do
for B in 1 2 3 4; do
time head -n $A words | ./file-reader
done
done