From 9a1a9cd379fb71e792804a5d2c76ce125cac38bb Mon Sep 17 00:00:00 2001 From: Alexius Wadell Date: Wed, 7 Jun 2023 17:53:27 -0400 Subject: [PATCH] Add lolcow benchmark, mostly as a bogo-op metric --- benchmarks/lolcow/.gitignore | 1 + benchmarks/lolcow/install.sh | 6 ++++++ benchmarks/lolcow/run.sh | 6 ++++++ 3 files changed, 13 insertions(+) create mode 100644 benchmarks/lolcow/.gitignore create mode 100644 benchmarks/lolcow/install.sh create mode 100644 benchmarks/lolcow/run.sh diff --git a/benchmarks/lolcow/.gitignore b/benchmarks/lolcow/.gitignore new file mode 100644 index 0000000..6e91d7e --- /dev/null +++ b/benchmarks/lolcow/.gitignore @@ -0,0 +1 @@ +*.sif diff --git a/benchmarks/lolcow/install.sh b/benchmarks/lolcow/install.sh new file mode 100644 index 0000000..20ca8f4 --- /dev/null +++ b/benchmarks/lolcow/install.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +spack load apptainer || spack install apptainer && spack load apptainer +if [ ! -f lolcow_latest.sif ]; then + apptainer pull docker://godlovedc/lolcow +fi diff --git a/benchmarks/lolcow/run.sh b/benchmarks/lolcow/run.sh new file mode 100644 index 0000000..43af6e2 --- /dev/null +++ b/benchmarks/lolcow/run.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# How fast can we get 10 insightful quotes from a cow? +eval $(spack load --sh apptainer) +for i in {1..10}; do + apptainer run docker://godlovedc/lolcow +done