SAXBench

Japanese | English
Ryosuke Nanba<rna at horobi.com>
$Id: index-en.html,v 1.3 2001/07/22 06:44:25 nanba Exp $

What's New

Abstract

SAXBench is a benchmark program for event-driven XML parser. It's derived from SAXCount/SAX2Count, the sample program of Xerces-J.

SAXBench supports API such as SAX1, SAX2, JAXP1.1, TinyXML, Lark. It's easy to write driver to support other SAX-like API.

Download

VERSIONFILE CHANGES
1.0 SAXBench-1_0.zip [54KB]

Requirement

JDK 1.1 or higher. Perl for runSAXBench.pl.

Usage

java sax.SAXBench [options] filenames...

Options:

-p name
Specify SAX parser class by name.
-d name
Specify parser driver class by name.
-n / -N
Turn on/off namespace [default=on]
-v / -V
Turn on/off validation [default=off]
-w N
Warmup the parser N times before timing.
-r N
Repeat timing N times.
-h
Show help screen.

You can specify one of the following drivers with -d option:

output example:

> java sax.SAXBench -d sax.JAXPDriver -w 2 -r 5 SAXBench.xml
warmup: 1356 ms
warmup: 174 ms
parse: 49 ms
parse: 72 ms
parse: 57 ms
parse: 195 ms
parse: 74 ms
avg. = 89 ms
mem. = 174304 bytes

mem. indicates approximate value of static memory usage of the parser and its library.

run with runSAXBench.pl

For convenience, runSAXBench.pl perl script is available.

You need to change following variables in this script.

runSAXBench.pl [-name parser] [-J "java options"] [SAXBench options] filenames...

parser is one of the following names.

Bugs etc.

ToDo


UP