Skip to content

Commit

Permalink
Add LZF comparison tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Nov 24, 2011
1 parent 8447a9f commit 8099cc0
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 15 deletions.
24 changes: 15 additions & 9 deletions .gitignore
@@ -1,15 +1,21 @@
# build stuff, ant, eclipse
# use glob syntax.
syntax: glob
*.class
*~
*.bak
*.off
*.old
.DS_Store

# building
target

# Eclipse
.classpath
.project
.settings
build
eclipse
.idea
.idea/*

# IDEA
*.iml
*.ipr
*.iws
dist

# And japex outputs
reports*
35 changes: 35 additions & 0 deletions cfg/tests-lzf-compress.xml
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>

<testSuite name="Test suite for JVM compressors"
xmlns="http://www.sun.com/japex/testSuite"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<description><div xmlns=""><p>
Micro-benchmark for testing performance of compressors on JVM platform
</p></div></description>

<!-- Drivers -->
<xi:include href="drivers-lzf.xml" />

<!-- Test cases: name has to match with filename -->

<testCase name='C:bib' />
<testCase name='C:book1' />
<testCase name='C:book2' />
<testCase name='C:geo' />
<testCase name='C:news' />
<testCase name='C:obj1' />
<testCase name='C:obj2' />
<testCase name='C:paper1' />
<testCase name='C:paper2' />
<testCase name='C:paper3' />
<testCase name='C:paper4' />
<testCase name='C:paper5' />
<testCase name='C:paper6' />
<testCase name='C:pic' />
<testCase name='C:progc' />
<testCase name='C:progl' />
<testCase name='C:progp' />
<testCase name='C:trans' />

</testSuite>
35 changes: 35 additions & 0 deletions cfg/tests-lzf-uncompress.xml
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>

<testSuite name="Test suite for JVM compressors"
xmlns="http://www.sun.com/japex/testSuite"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<description><div xmlns=""><p>
Micro-benchmark for testing performance of compressors on JVM platform
</p></div></description>

<!-- Drivers -->
<xi:include href="drivers-lzf.xml" />

<!-- Test cases: name has to match with filename -->

<testCase name='U:bib' />
<testCase name='U:book1' />
<testCase name='U:book2' />
<testCase name='U:geo' />
<testCase name='U:news' />
<testCase name='U:obj1' />
<testCase name='U:obj2' />
<testCase name='U:paper1' />
<testCase name='U:paper2' />
<testCase name='U:paper3' />
<testCase name='U:paper4' />
<testCase name='U:paper5' />
<testCase name='U:paper6' />
<testCase name='U:pic' />
<testCase name='U:progc' />
<testCase name='U:progl' />
<testCase name='U:progp' />
<testCase name='U:trans' />

</testSuite>
9 changes: 3 additions & 6 deletions run-lzfs.sh → run-lzf-compress.sh
@@ -1,9 +1,6 @@
#!/bin/sh

echo "About to run compress test on Calgary corpus files"

# Since there are 18 input files
# group by 6 (9 gets bit too crowded)
echo "About to run uncompress test for LZF impls on Calgary corpus files"

java -server -cp lib/japex/\* \
-Xmx400M \
Expand All @@ -12,11 +9,11 @@ java -server -cp lib/japex/\* \
-Djapex.warmupTime=7 \
-Djapex.runTime=30 \
-Djapex.numberOfThreads=1 \
-Djapex.reportsDirectory=reports/lzfs \
-Djapex.reportsDirectory=reports/lzfs-compress \
-Djapex.plotGroupSize=6 \
-Djapex.inputDir="testdata/calgary" \
com.sun.japex.Japex \
tests-lzf.xml
cfg/tests-lzf-compress.xml

echo "Done!";

19 changes: 19 additions & 0 deletions run-lzf-uncompress.sh
@@ -0,0 +1,19 @@
#!/bin/sh

echo "About to run uncompress test for LZF impls on Calgary corpus files"

java -server -cp lib/japex/\* \
-Xmx400M \
-Djava.awt.headless=true \
-Djapex.runsPerDriver=1 \
-Djapex.warmupTime=7 \
-Djapex.runTime=30 \
-Djapex.numberOfThreads=1 \
-Djapex.reportsDirectory=reports/lzfs-uncompress \
-Djapex.plotGroupSize=6 \
-Djapex.inputDir="testdata/calgary" \
com.sun.japex.Japex \
cfg/tests-lzf-uncompress.xml

echo "Done!";

0 comments on commit 8099cc0

Please sign in to comment.