xref: /PHP-5.5/sapi/isapi/stresstest/notes.txt (revision f4983c0d)
1This stress test program is for debugging threading issues with the ISAPI
2module.
3
42 ways to use it:
5
61: test any php script file on multiple threads
72: run the php test scripts bundled with the source code
8
9
10
11GLOBAL SETTINGS
12===============
13
14If you need to set special environement variables, in addition to your
15regular environment, create a file that contains them, one setting per line:
16
17MY_ENV_VAR=XXXXXXXX
18
19This can be used to simulate ISAPI environment variables if need be.
20
21By default, stress test uses 10 threads.  To change this, change the define
22NUM_THREADS in stresstest.cpp.
23
24
25
261: Test any php script file on multiple threads
27===============================================
28
29Create a file that contains a list of php script files, one per line.  If
30you need to provide input, place the GET data, or Query String, after the
31filename.  File contents would look like:
32
33e:\inetpub\pages\index.php
34e:\inetpub\pages\info.php
35e:\inetpub\pages\test.php a=1&b=2
36
37Run: stresstest L files.txt
38
39
40
412: Run the php test scripts bundled with the source code
42========================================================
43
44supply the path to the parent of the "tests" directory (expect a couple
45long pauses for a couple of the larger tests)
46
47Run: stresstest T c:\php5-source
48
49
50
51TODO:
52
53* Make more options configurable: number of threads, iterations, etc.
54* Improve stdout output to make it more useful
55* Implement support for SKIPIF
56* Improve speed of CompareFile function (too slow on big files).
57