aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/run-in-parallel7
-rw-r--r--contrib/run-one5
2 files changed, 12 insertions, 0 deletions
diff --git a/contrib/run-in-parallel b/contrib/run-in-parallel
new file mode 100644
index 0000000..2ded83c
--- /dev/null
+++ b/contrib/run-in-parallel
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Make sure that the program is up to date.
+cargo build --release
+
+# Run the program in parallel and make sure the priority is low.
+seq 1 "$(nproc)" | xargs -P 0 -I _ sh -c "nice -n 19 ./target/release/wwb game._.bin | tee -ai output._.log" \ No newline at end of file
diff --git a/contrib/run-one b/contrib/run-one
new file mode 100644
index 0000000..f062638
--- /dev/null
+++ b/contrib/run-one
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cargo build --release
+
+nice -n 19 ./target/release/wwb game.bin | tee -ai output.log