diff --git a/benchmarks/setup_m2u.bash b/benchmarks/setup_m2u.bash
new file mode 100644
index 0000000000000000000000000000000000000000..4daff8ae6fd6583e7ec7d0608d870518806d7e73
--- /dev/null
+++ b/benchmarks/setup_m2u.bash
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+set -euo pipefail
+
+WORKDIR=m2u
+M2U_URL="https://github.com/tguzik/m2u.git"
+
+if [[ -f "$WORKDIR/activate" ]]; then
+    echo "using cached jmeter"
+    exit 0
+fi
+
+echo "creating work directory"
+mkdir -p "$WORKDIR"
+
+pushd "$WORKDIR"
+
+    echo "downloading m2u"
+    git clone "$M2U_URL" --single-branch -b master .
+
+    echo "configuring m2u"
+    mvn 2>&1 >/dev/null
+
+    echo "M2U='java -jar $PWD/target/m2u.jar'" > activate
+
+popd