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