From 61fd934754a2f5afde8785d4cfb1390b8ad7deee Mon Sep 17 00:00:00 2001
From: Michael Zangl <michael.zangl@student.kit.edu>
Date: Mon, 20 Jul 2015 14:56:33 +0200
Subject: [PATCH 3/4] Added count of apply calls to output.

---
 .../josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java        | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/test/performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java b/test/performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java
index 8b28279..e828005 100644
--- a/test/performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java
+++ b/test/performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java
@@ -60,7 +60,6 @@ public class MapCSSStyleSourceFilterTest {
         public CssGenerator addIsTrueRules(int count) {
             for (int i = 0; i < count; i++) {
                 String key = generator.randomKey();
-                // TODO
                 addRule("node[\"" + key + "\"?]");
             }
             return this;
@@ -75,7 +74,7 @@ public class MapCSSStyleSourceFilterTest {
         }
     }
 
-    private static final int APPLY_CALLS = 1000000;
+    private static final int APPLY_CALLS = 100000;
 
     /**
      * Prepare the test.
@@ -135,7 +134,7 @@ public class MapCSSStyleSourceFilterTest {
         source.loadStyleSource();
         timer.done();
 
-        timer = PerformanceTestUtils.startTimer("MapCSSStyleSource#apply(...) for " + description);
+        timer = PerformanceTestUtils.startTimer(APPLY_CALLS + "x MapCSSStyleSource#apply(...) for " + description);
         for (int i = 0; i < APPLY_CALLS; i++) {
             MultiCascade mc = new MultiCascade();
             source.apply(mc, data.randomNode(), 1, false);
-- 
1.9.1

