summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HACKING.md1
-rwxr-xr-xbenchmark7
2 files changed, 8 insertions, 0 deletions
diff --git a/HACKING.md b/HACKING.md
index 8783b0e..a21b577 100644
--- a/HACKING.md
+++ b/HACKING.md
@@ -5,6 +5,7 @@ Here's the gist:
/out/ : where the generated output goes
Makefile : invoke /bin/ as appropriate
git-setup : set up git hooks (see below)
+ benchmark : see which files take longer to generate
The web server should serve the union of /src/ and /out/.
diff --git a/benchmark b/benchmark
new file mode 100755
index 0000000..b06c621
--- /dev/null
+++ b/benchmark
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+rm -rf out
+thing='start up'
+{ make -j1; echo done;}|ts -i '%.s'|sed 's/ .* / /' |while read -r time newthing; do
+ echo $time $thing
+ thing=$newthing
+done | sort -n