libexpat/expat/tests/benchmark
Sebastian Pipping ac8a0e8f04 tests/benchmark: Resolve mistaken double close
From "man fdopen":
> The file descriptor is not dup'ed, and will be closed
> when the stream created by fdopen() is closed.
2025-03-15 01:38:13 +01:00
..
.gitignore Extend .gitignore 2017-08-11 23:25:00 +02:00
benchmark.c tests/benchmark: Resolve mistaken double close 2025-03-15 01:38:13 +01:00
Makefile.am Increase precision in existing MIT headers based on Git history 2021-05-02 19:53:29 +02:00
README.txt Small corrections. 2006-01-01 18:53:44 +00: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.@