1.1 --- a/benchmarks/sieve/src/test/java/org/apidesign/benchmark/sieve/SieveTest.java Sun Jan 24 12:08:45 2016 +0100
1.2 +++ b/benchmarks/sieve/src/test/java/org/apidesign/benchmark/sieve/SieveTest.java Mon Jan 25 06:40:40 2016 +0100
1.3 @@ -45,6 +45,16 @@
1.4 log("oneThousand in " + took + " ms");
1.5 return res;
1.6 }
1.7 +
1.8 + @Compare(scripting = false)
1.9 + public int fiveThousand() throws IOException {
1.10 + SieveTest sieve = new SieveTest();
1.11 + int now = time();
1.12 + int res = sieve.compute(5000);
1.13 + int took = time() - now;
1.14 + log("oneThousand in " + took + " ms");
1.15 + return res;
1.16 + }
1.17
1.18 @Factory
1.19 public static Object[] create() {
1.20 @@ -54,5 +64,6 @@
1.21 @JavaScriptBody(args = { "msg" }, body = "if (typeof console !== 'undefined') console.log(msg);")
1.22 @Override
1.23 protected void log(String msg) {
1.24 + System.err.println(msg);
1.25 }
1.26 }