Let's iterate over smaller number to pass the test on slow computers
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sat, 05 Mar 2016 08:47:12 +0100
changeset 188595250e1b35de
parent 1884 20e19d808442
child 1886 c4d37f95adf2
Let's iterate over smaller number to pass the test on slow computers
benchmarks/jbox2d/src/test/java/org/apidesign/benchmark/jbox2d/JBox2dSimulationTest.java
     1.1 --- a/benchmarks/jbox2d/src/test/java/org/apidesign/benchmark/jbox2d/JBox2dSimulationTest.java	Sat Mar 05 08:45:21 2016 +0100
     1.2 +++ b/benchmarks/jbox2d/src/test/java/org/apidesign/benchmark/jbox2d/JBox2dSimulationTest.java	Sat Mar 05 08:47:12 2016 +0100
     1.3 @@ -27,9 +27,9 @@
     1.4      }
     1.5  
     1.6      @Compare(slowdown = 30.0)
     1.7 -    public int tenThousand() throws IOException {
     1.8 +    public int fewIter() throws IOException {
     1.9          Scene s = new Scene();
    1.10 -        for (int i = 0; i < 10000; i++) {
    1.11 +        for (int i = 0; i < 100; i++) {
    1.12              s.calculate();
    1.13          }
    1.14          return s.getWorld().getBodyCount();