bzr branch
http://darksoft.org/webbzr/xmlbench/trunk
1
by Suren A. Chilingaryan
Initial import |
1 |
#!/bin/bash
|
2 |
#######################
|
|
3 |
# Benchmark set 1 #####
|
|
4 |
#######################
|
|
5 |
time=1 |
|
2
by Suren A. Chilingaryan
Intel, Tango, Phobos, and RapidXML parsers; Memory benchmark scripts |
6 |
export ENV="LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so" |
7 |
||
1
by Suren A. Chilingaryan
Initial import |
8 |
|
9 |
echo "******************** Parsing Benchmarks ********************" |
|
10 |
echo
|
|
11 |
cd parse
|
|
12 |
for name in xerces-dom xerces-sax |
|
13 |
do
|
|
14 |
if ( [ -x $name ] && [ -f $name ] ); then |
|
15 |
echo "--->Running <$name> benchmarks:" |
|
16 |
echo "-> xmark 16384" |
|
2
by Suren A. Chilingaryan
Intel, Tango, Phobos, and RapidXML parsers; Memory benchmark scripts |
17 |
eval $ENV ./$name `expr $time "*" 2` xmark 16384 |
1
by Suren A. Chilingaryan
Initial import |
18 |
fi
|
19 |
done
|
|
20 |
cd ..
|
|
21 |
||
22 |
echo
|
|
23 |
echo
|
|
24 |
echo "******************** Schema Validating Benchmarks ********************" |
|
25 |
echo
|
|
26 |
cd validate
|
|
27 |
for name in xerces-dom |
|
28 |
do
|
|
29 |
if ( [ -x $name ] && [ -f $name ] ); then |
|
30 |
echo "--->Running <$name> benchmarks:" |
|
31 |
echo "-> opcgen 50 ( 3.5KB )" |
|
2
by Suren A. Chilingaryan
Intel, Tango, Phobos, and RapidXML parsers; Memory benchmark scripts |
32 |
eval $ENV ./$name `expr $time "*" 100` opcgen 50 |
1
by Suren A. Chilingaryan
Initial import |
33 |
echo "-> opcgen 50k ( 3 MB ) - 4 times longer" |
2
by Suren A. Chilingaryan
Intel, Tango, Phobos, and RapidXML parsers; Memory benchmark scripts |
34 |
eval $ENV ./$name `expr $time "*" 10` opcgen 50000 |
1
by Suren A. Chilingaryan
Initial import |
35 |
fi
|
36 |
done
|
|
37 |
cd ..
|
|
38 |
||
39 |
echo
|
|
40 |
echo
|
|
41 |
echo "************* XSL Transformation Benchmarks ****************" |
|
42 |
echo
|
|
43 |
cd xsl
|
|
44 |
for name in xerces-dom |
|
45 |
do
|
|
46 |
if ( [ -x $name ] && [ -f $name ] ); then |
|
47 |
echo "--->Running <$name> benchmarks:" |
|
48 |
echo "-> xmlgen 4 KB" |
|
2
by Suren A. Chilingaryan
Intel, Tango, Phobos, and RapidXML parsers; Memory benchmark scripts |
49 |
eval $ENV ./$name `expr $time "*" 1000` xmlgen 4096 |
1
by Suren A. Chilingaryan
Initial import |
50 |
echo "-> ODT2HTML" |
2
by Suren A. Chilingaryan
Intel, Tango, Phobos, and RapidXML parsers; Memory benchmark scripts |
51 |
eval $ENV ./$name `expr $time "*" 2` ../xml.files/odt/content.xml ../xml.files/odt/export/xhtml/opendoc2xhtml.xsl 2>/dev/null |
1
by Suren A. Chilingaryan
Initial import |
52 |
fi
|
53 |
done
|
|
54 |
cd ..
|