Changeset 18690 in josm for trunk/test/performance/org/openstreetmap/josm/io
- Timestamp:
- 2023-03-13T21:59:27+01:00 (3 years ago)
- Location:
- trunk/test/performance/org/openstreetmap/josm/io
- Files:
-
- 2 edited
-
OsmReaderPerformanceTest.java (modified) (3 diffs)
-
OsmWriterPerformanceTest.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/performance/org/openstreetmap/josm/io/OsmReaderPerformanceTest.java
r17615 r18690 10 10 import java.io.IOException; 11 11 import java.io.InputStream; 12 import java.nio.file.Files; 12 13 import java.util.concurrent.TimeUnit; 13 14 … … 27 28 * @author Michael Zangl 28 29 */ 29 @Timeout(value = 15 *60, unit = TimeUnit.SECONDS)30 @Timeout(value = 15, unit = TimeUnit.MINUTES) 30 31 class OsmReaderPerformanceTest { 31 32 private static final int TIMES = 4; … … 73 74 private InputStream loadFile(boolean decompressBeforeRead) throws IOException { 74 75 File file = new File(PerformanceTestUtils.DATA_FILE); 75 try (InputStream is = decompressBeforeRead ? Compression.getUncompressedFileInputStream(file) : new FileInputStream(file)) {76 try (InputStream is = decompressBeforeRead ? Compression.getUncompressedFileInputStream(file) : Files.newInputStream(file.toPath())) { 76 77 ByteArrayOutputStream temporary = new ByteArrayOutputStream(); 77 78 byte[] readBuffer = new byte[4096]; -
trunk/test/performance/org/openstreetmap/josm/io/OsmWriterPerformanceTest.java
r17848 r18690 20 20 * For this, we use the neubrandenburg-file, which is a good real world example of an OSM file. 21 21 */ 22 @Timeout(value = 15 *60, unit = TimeUnit.SECONDS)22 @Timeout(value = 15, unit = TimeUnit.MINUTES) 23 23 class OsmWriterPerformanceTest { 24 24 private static final int TIMES = 4;
Note:
See TracChangeset
for help on using the changeset viewer.
