benchmarks: README file having run recommendations
authorAntoine Musso <hashar@free.fr>
Thu, 30 May 2013 07:38:48 +0000 (09:38 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 26 Jun 2013 11:55:57 +0000 (11:55 +0000)
In a wikitech thread about benchmarking, Tim Starling has been running
benchmarks using CPU binding and raised priority. This patch copy paste
Tim recommendations so we do not forget about them.

Change-Id: Ic6f2803c005f70a2f0400f28fafc3c8d209e0667

maintenance/benchmarks/README [new file with mode: 0644]

diff --git a/maintenance/benchmarks/README b/maintenance/benchmarks/README
new file mode 100644 (file)
index 0000000..c021abd
--- /dev/null
@@ -0,0 +1,7 @@
+This directory hold several benchmarking scripts used as a proof of speed
+or to track PHP performances over time.
+
+To get somehow accurate result, you might want to bound the PHP process
+to a specific CPU with `taskset` and raise its priority with `nice`. Example:
+
+ $ taskset 1 nice -n-10 php bench_wfIsWindows.php