benchmarks/sieve/src/test/java/org/apidesign/benchmark/sieve/SieveTest.java
changeset 1860 4ce38f21f4cd
parent 1857 f1344425bcb1
     1.1 --- a/benchmarks/sieve/src/test/java/org/apidesign/benchmark/sieve/SieveTest.java	Mon Jan 25 06:40:40 2016 +0100
     1.2 +++ b/benchmarks/sieve/src/test/java/org/apidesign/benchmark/sieve/SieveTest.java	Tue Jan 26 04:36:23 2016 +0100
     1.3 @@ -36,7 +36,7 @@
     1.4          return (int) System.currentTimeMillis();
     1.5      }
     1.6  
     1.7 -    @Compare(scripting = false) 
     1.8 +    @Compare
     1.9      public int oneThousand() throws IOException {
    1.10          SieveTest sieve = new SieveTest();
    1.11          int now = time();
    1.12 @@ -46,7 +46,7 @@
    1.13          return res;
    1.14      }
    1.15  
    1.16 -    @Compare(scripting = false)
    1.17 +    @Compare(slowdown = 3.0)
    1.18      public int fiveThousand() throws IOException {
    1.19          SieveTest sieve = new SieveTest();
    1.20          int now = time();
    1.21 @@ -55,6 +55,16 @@
    1.22          log("oneThousand in " + took + " ms");
    1.23          return res;
    1.24      }
    1.25 +
    1.26 +    @Compare(slowdown = 3.0)
    1.27 +    public int tenThousand() throws IOException {
    1.28 +        SieveTest sieve = new SieveTest();
    1.29 +        int now = time();
    1.30 +        int res = sieve.compute(10000);
    1.31 +        int took = time() - now;
    1.32 +        log("oneThousand in " + took + " ms");
    1.33 +        return res;
    1.34 +    }
    1.35      
    1.36      @Factory
    1.37      public static Object[] create() {