/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk

« back to all changes in this revision

Viewing changes to runbench.compile

  • Committer: Suren A. Chilingaryan
  • Date: 2009-02-16 09:27:17 UTC
  • Revision ID: csa@dside.dyndns.org-20090216092717-wipyvaaw2srxhgns
Initial import

Show diffs side-by-side

added added

removed removed

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