]> rtime.felk.cvut.cz Git - frescor/demo.git/commitdiff
Add stress-cpu script
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 17 May 2010 13:31:41 +0000 (15:31 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 17 May 2010 13:31:41 +0000 (15:31 +0200)
build/stress-cpu [new file with mode: 0755]

diff --git a/build/stress-cpu b/build/stress-cpu
new file mode 100755 (executable)
index 0000000..36a3b37
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -x
+
+while true; do
+    if ! pidof -x setup; then
+       ./hackbench 5 thread;
+    else
+       sleep 0.1;
+    fi
+done