From 251d146c53c9269d28633549a2d822507effad03 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 13 Mar 2020 10:38:42 +0200 Subject: Add: simplistic stress test --- stress | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 stress (limited to 'stress') diff --git a/stress b/stress new file mode 100755 index 0000000..6ad04ae --- /dev/null +++ b/stress @@ -0,0 +1,23 @@ +#!/bin/sh + +set -eu + +NSCEN=1000 +NSTEP=100 + +ts() { + local start="$1" + local now="$(date +%s)" + echo "$now - $start" | bc +} + +start="$(ts 0)" + +./stressgen s "$NSCEN" "$NSTEP" +echo "generate: $(ts "$start")" + +cargo run -q --bin sp-docgen -- s.md -o s.pdf +echo "docgen: $(ts "$start")" + +cargo run -q --bin sp-codegen -- s.md -o test.py --run > /dev/null +echo "codegen: $(ts "$start")" -- cgit v1.2.1