notes.txt 1.5 KB

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