#!/bin/bash

run_benchmark () {
    guix shell ceres-solver-benchmarks -- $1 | tee $1-untuned
    guix shell --tune ceres-solver-benchmarks -- $1 | tee $1-tuned
}

run_benchmark autodiff_benchmarks
run_benchmark schur_eliminator_benchmark
run_benchmark small_blas_gemm_benchmark
run_benchmark small_blas_gemv_benchmark
