Changeset 17617 in josm for trunk/test


Ignore:
Timestamp:
2021-03-21T13:56:17+01:00 (4 years ago)
Author:
simon04
Message:

see #4626 - Add ValidationTaskPerformanceTest

Location:
trunk/test/performance/org/openstreetmap/josm
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/performance/org/openstreetmap/josm/PerformanceTestUtils.java

    r17615 r17617  
    3737    public static DataSet getNeubrandenburgDataSet() throws IOException, IllegalDataException {
    3838        try (InputStream in = Compression.getUncompressedFileInputStream(new File(DATA_FILE))) {
    39             return OsmReader.parseDataSet(in, NullProgressMonitor.INSTANCE);
     39            DataSet dataSet = OsmReader.parseDataSet(in, NullProgressMonitor.INSTANCE);
     40            dataSet.setName(DATA_FILE);
     41            return dataSet;
    4042        }
    4143    }
  • trunk/test/performance/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerPerformanceTest.java

    r17615 r17617  
    3939    @Test
    4040    void testCity() {
    41         tagChecker.visit(dsCity.allPrimitives());
     41        PerformanceTestUtils.runPerformanceTest("MapCSSTagChecker on " + dsCity.getName(),
     42                () -> tagChecker.visit(dsCity.allPrimitives()));
    4243    }
    4344}
Note: See TracChangeset for help on using the changeset viewer.