minix/external/mit/expat/dist/tests/benchmark
Lionel Sambuc 1230fdc108 external/mit/expat: Import
Change-Id: Ieb49357166b392956df6554a06fcae83c8fd519d
2014-11-10 14:43:28 +01:00
..
benchmark.c external/mit/expat: Import 2014-11-10 14:43:28 +01:00
benchmark.dsp external/mit/expat: Import 2014-11-10 14:43:28 +01:00
benchmark.dsw external/mit/expat: Import 2014-11-10 14:43:28 +01:00
README.txt external/mit/expat: Import 2014-11-10 14:43:28 +01:00

Use this benchmark command line utility as follows:

  benchmark [-n] <file name> <buffer size> <# iterations>

The command line arguments are:

  -n             ... optional; if supplied, namespace processing is turned on
  <file name>    ... name/path of test xml file
  <buffer size>  ... size of processing buffer;
                     the file is parsed in chunks of this size
  <# iterations> ... how often will the file be parsed

Returns:

  The time (in seconds) it takes to parse the test file,
  averaged over the number of iterations.