Commit 3ceaa463 authored by Rui Chen's avatar Rui Chen

[Zxing] zxing works concurrently now, however, verify the result is a problem now

parent 31d98efe
Pipeline #3115 failed with stage
in 15 minutes and 41 seconds
......@@ -51,11 +51,11 @@
<property name="data" value="${resources-base}/dat"/>
<mkdir dir="${data}"/>
<copy todir="${data}" flatten="true">
<copy todir="${data}">
<fileset dir="${resources}" includes="**/*.png **/*.jpg"/>
</copy>
<!--totally 208 barcode, all from zxing-->
<!--totally 1225 barcode, all from zxing-->
<zip basedir="${resources-base}" includes="dat/**" destfile="${bm-dat}/${bm-name}.zip"/>
<delete dir="${data}"/>
......
......@@ -39,19 +39,9 @@ public class Zxing extends Benchmark{
@Override
public void iterate(String size){
try {
String zxingBarcorePath = args[0];
File f = new File(zxingBarcorePath);
// This part could be changed later. Current data set is from Zxing.
String[] barCodeFileNames = f.list();
// sorting as barCodeFileNames might have different orders for each OS
assert barCodeFileNames != null;
Arrays.sort(barCodeFileNames);
String barcode = args[0];
// Complete the path of each barcode
for (String barcode : barCodeFileNames)
this.method.invoke(null, (Object) new String[] {zxingBarcorePath + barcode});
this.method.invoke(null, (Object) new String[] {"--recursive", barcode});
} catch (Exception e){
e.printStackTrace();
}
......
......@@ -3,9 +3,7 @@ benchmark zxing
thread-model per_cpu
jars "javase-3.3.3-jar-with-dependencies.jar";
size default args "${SCRATCH}/dat/"
output
stdout digest 0xe6ddad80078430b1cac53ecc9151ade3c210da86;
size default args "${SCRATCH}/dat/";
description
short "multi-format 1D/2D barcode image processing library",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment