Permalink
Browse files

Add LZF comparison tests

  • Loading branch information...
cowtowncoder committed Nov 24, 2011
1 parent 8447a9f commit 8099cc0f103156bb657c56189e5e85ad29777e23
Showing with 107 additions and 15 deletions.
  1. +15 −9 .gitignore
  2. +35 −0 cfg/tests-lzf-compress.xml
  3. +35 −0 cfg/tests-lzf-uncompress.xml
  4. +3 −6 run-lzfs.sh → run-lzf-compress.sh
  5. +19 −0 run-lzf-uncompress.sh
View
@@ -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*
View
@@ -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>
@@ -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>
@@ -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 \
@@ -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!";
View
@@ -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.