Skip to content

Instantly share code, notes, and snippets.

@jonboulle
jonboulle / benchmark.sh
Last active February 9, 2018 16:49 — forked from peterjmit/benchmark.sh
Bash Benchmark Script (using time)
#!/bin/bash
# Benchmark runner
repeats=20
output_file='benchmark_results.csv'
command_to_run='echo 1'
run_tests() {
# --------------------------------------------------------------------------
# Benchmark loop