freebsd-nq/contrib/expat/tests/benchmark
Coleman Kane 220ed979de Virgin import (trimmed) of eXpat v2.0.1. Discussed and tested with
sam and phk who are the two consumers of this library. If there is
any other fallout, email me and I will take care of it.

Approved by: sam, phk
2008-05-08 13:51:16 +00:00
..
benchmark.c Virgin import (trimmed) of eXpat v2.0.1. Discussed and tested with 2008-05-08 13:51:16 +00:00
benchmark.dsp Virgin import (trimmed) of eXpat v2.0.1. Discussed and tested with 2008-05-08 13:51:16 +00:00
benchmark.dsw Virgin import (trimmed) of eXpat v2.0.1. Discussed and tested with 2008-05-08 13:51:16 +00:00
README.txt Virgin import (trimmed) of eXpat v2.0.1. Discussed and tested with 2008-05-08 13:51:16 +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.