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 +