2001-01-15 14:55:30 +00:00
|
|
|
This stress test program is for debugging threading issues with the ISAPI
|
|
|
|
module.
|
2001-01-08 00:10:06 +00:00
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
2 ways to use it:
|
2001-01-15 00:29:49 +00:00
|
|
|
|
|
|
|
1: test any php script file on multiple threads
|
|
|
|
2: run the php test scripts bundled with the source code
|
2001-01-08 00:10:06 +00:00
|
|
|
|
2001-01-15 00:29:49 +00:00
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
|
2001-01-15 00:29:49 +00:00
|
|
|
GLOBAL SETTINGS
|
2001-01-15 14:55:30 +00:00
|
|
|
===============
|
2001-01-08 00:10:06 +00:00
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
If you need to set special environement variables, in addition to your
|
|
|
|
regular environment, create a file that contains them, one setting per line:
|
2001-01-08 00:10:06 +00:00
|
|
|
|
|
|
|
MY_ENV_VAR=XXXXXXXX
|
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
This can be used to simulate ISAPI environment variables if need be.
|
2001-01-08 00:10:06 +00:00
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
By default, stress test uses 10 threads. To change this, change the define
|
|
|
|
NUM_THREADS in stresstest.cpp.
|
2001-01-08 00:10:06 +00:00
|
|
|
|
2001-01-15 00:29:49 +00:00
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
|
|
|
|
1: Test any php script file on multiple threads
|
|
|
|
===============================================
|
|
|
|
|
|
|
|
Create a file that contains a list of php script files, one per line. If
|
|
|
|
you need to provide input, place the GET data, or Query String, after the
|
|
|
|
filename. File contents would look like:
|
2001-01-15 00:29:49 +00:00
|
|
|
|
|
|
|
e:\inetpub\pages\index.php
|
|
|
|
e:\inetpub\pages\info.php
|
|
|
|
e:\inetpub\pages\test.php a=1&b=2
|
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
Run: stresstest L files.txt
|
2001-01-15 00:29:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
2: Run the php test scripts bundled with the source code
|
|
|
|
========================================================
|
2001-01-15 00:29:49 +00:00
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
supply the path to the parent of the "tests" directory (expect a couple
|
|
|
|
long pauses for a couple of the larger tests)
|
2001-01-15 00:29:49 +00:00
|
|
|
|
2004-01-17 13:00:38 +00:00
|
|
|
Run: stresstest T c:\php5-source
|
2001-01-15 00:29:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
TODO:
|
2001-01-08 00:10:06 +00:00
|
|
|
|
2001-01-15 14:55:30 +00:00
|
|
|
* Make more options configurable: number of threads, iterations, etc.
|
|
|
|
* Improve stdout output to make it more useful
|
|
|
|
* Implement support for SKIPIF
|
|
|
|
* Improve speed of CompareFile function (too slow on big files).
|