From de543cff8637110f2a3f0e9477a31b4fc7a160ea Mon Sep 17 00:00:00 2001 From: Adam Pippin Date: Wed, 16 Sep 2020 13:25:14 -0700 Subject: [PATCH] Add quickstart to readme + clarify settings.ini dependency in results --- README.md | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8425998..7f4f3f0 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,61 @@ Two scripts: * Right now this only supports Postgres. It would be trivial to modify to use anything else supported by PHP's PDO. * It's very unscientific. Don't rely on this for anything more than a vague notion of how something is performing. * The results script loads the entire set of queries + timings into RAM to process them. If you run this too long and -generate too many results it will not be very performant or require a huge amount of RAM to actually generate the results. + generate too many results it will not be very performant or require a huge amount of RAM to actually generate the results. +* The results script uses the _current_ settings file when calculating QPS, figuring out which worker files to read, etc. + The settings.ini file should be kept alongside the results files if you plan on reprocessing them again later for any + reason. ## How do I use this? +``` +$ mkdir test-1 + +$ cd test-1 + +$ cat > settings.ini +workers=16 +duration=30 + +[db] +host=127.0.0.1 +port=5432 +username=postgres +password=postgres +database=my_database +^D + +$ cat > generator.php +