Changeset 10222 in josm for trunk/test/performance
- Timestamp:
- 2016-05-15T21:14:06+02:00 (9 years ago)
- Location:
- trunk/test/performance/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/performance/org/openstreetmap/josm/data/osm/KeyValuePerformanceTest.java
r10002 r10222 20 20 import org.openstreetmap.josm.PerformanceTestUtils.PerformanceTestTimer; 21 21 import org.openstreetmap.josm.data.osm.OsmDataGenerator.KeyValueDataGenerator; 22 23 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 22 24 23 25 /** … … 38 40 */ 39 41 @Rule 42 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 40 43 public Timeout globalTimeout = Timeout.seconds(15*60); 41 44 … … 52 55 */ 53 56 @Test 54 public void meassureStringEqualsIntern() { 57 @SuppressFBWarnings(value = "DM_STRING_CTOR", justification = "test Strings that are interned and those that are not") 58 public void measureStringEqualsIntern() { 55 59 String str1Interned = "string1"; 56 60 String str1InternedB = "string1"; … … 196 200 */ 197 201 @Test 202 @SuppressFBWarnings(value = "RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT") 198 203 public void testKeyValueGetKeysGet() { 199 204 for (double tagNodeRatio : TAG_NODE_RATIOS) { -
trunk/test/performance/org/openstreetmap/josm/data/osm/RoundingPerformanceTest.java
r7937 r10222 7 7 import org.openstreetmap.josm.data.coor.LatLon; 8 8 import org.openstreetmap.josm.data.coor.LatLonTest; 9 10 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 9 11 10 12 /** … … 22 24 */ 23 25 @Test 26 @SuppressFBWarnings(value = "RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT") 24 27 public void test() { 25 28 final int n = 1000000; -
trunk/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRendererPerformanceTestParent.java
r10197 r10222 24 24 import org.openstreetmap.josm.io.OsmReader; 25 25 26 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 27 26 28 /** 27 29 * Abstract superclass of {@code StyledMapRendererPerformanceTest} and {@code WireframeMapRendererPerformanceTest}. … … 32 34 private static final int IMG_HEIGHT = 1050; 33 35 36 @SuppressFBWarnings(value = "MS_PKGPROTECT") 34 37 protected static Graphics2D g; 38 @SuppressFBWarnings(value = "MS_PKGPROTECT") 35 39 protected static BufferedImage img; 40 @SuppressFBWarnings(value = "MS_PKGPROTECT") 36 41 protected static NavigatableComponent nc; 37 42 private static DataSet dsRestriction; … … 43 48 */ 44 49 @Rule 50 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 45 51 public Timeout globalTimeout = Timeout.seconds(15*60); 46 52 … … 121 127 } 122 128 123 /** run this manually to verify that the rendering is set up properly */ 129 /** 130 * run this manually to verify that the rendering is set up properly 131 * @throws IOException if any I/O error occurs 132 */ 133 @SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD") 124 134 private void dumpRenderedImage() throws IOException { 125 File outputfile = new File("test-neubrandenburg.png"); 126 ImageIO.write(img, "png", outputfile); 135 ImageIO.write(img, "png", new File("test-neubrandenburg.png")); 127 136 } 128 137 } -
trunk/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRendererPerformanceTest.java
r10197 r10222 9 9 import org.junit.BeforeClass; 10 10 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; 11 12 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 11 13 12 14 /** … … 27 29 } 28 30 29 /** run this manually to verify that the rendering is set up properly */ 31 /** 32 * run this manually to verify that the rendering is set up properly 33 * @throws IOException if any I/O error occurs 34 */ 35 @SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD") 30 36 private void dumpRenderedImage() throws IOException { 31 File outputfile = new File("test-neubrandenburg.png"); 32 ImageIO.write(img, "png", outputfile); 37 ImageIO.write(img, "png", new File("test-neubrandenburg.png")); 33 38 } 34 39 } -
trunk/test/performance/org/openstreetmap/josm/gui/mappaint/MapRendererPerformanceTest.java
r9793 r10222 12 12 import java.util.EnumMap; 13 13 import java.util.List; 14 import java.util.Locale; 14 15 import java.util.Map; 15 16 … … 41 42 import org.openstreetmap.josm.io.OsmReader; 42 43 44 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 45 43 46 public class MapRendererPerformanceTest { 44 47 … … 65 68 ICON, SYMBOL, NODE_TEXT, LINE, LINE_TEXT, AREA; 66 69 public String label() { 67 return name().toLowerCase(); 70 return name().toLowerCase(Locale.ENGLISH); 68 71 } 69 72 } … … 75 78 */ 76 79 @Rule 80 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 77 81 public Timeout globalTimeout = Timeout.seconds(15*60); 78 82 … … 171 175 private final List<Long> totalTimes = new ArrayList<>(); 172 176 177 @SuppressFBWarnings(value = "DM_GC") 173 178 public void run() throws IOException { 174 179 boolean checkScale = false; … … 314 319 315 320 public static void dumpTimes(StyledMapRenderer.BenchmarkData bd) { 316 System.out.print(String.format("gen. %3d, sort %3d, draw %3d \n", bd.generateTime, bd.sortTime, bd.drawTime));321 System.out.print(String.format("gen. %3d, sort %3d, draw %3d%n", bd.generateTime, bd.sortTime, bd.drawTime)); 317 322 } 318 323 -
trunk/test/performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java
r9771 r10222 13 13 import org.openstreetmap.josm.gui.mappaint.MultiCascade; 14 14 15 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 16 15 17 /** 16 18 * Tests how fast {@link MapCSSStyleSource} finds the right style candidates for one object. … … 21 23 private static final int TEST_RULE_COUNT = 10000; 22 24 23 private class CssGenerator { 25 private static class CssGenerator { 24 26 StringBuilder sb = new StringBuilder(); 25 27 private KeyValueDataGenerator generator; … … 83 85 */ 84 86 @Rule 87 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 85 88 public Timeout globalTimeout = Timeout.seconds(15*60); 86 89 -
trunk/test/performance/org/openstreetmap/josm/io/OsmReaderPerformanceTest.java
r9491 r10222 20 20 import org.openstreetmap.josm.data.osm.DataSet; 21 21 22 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 23 22 24 /** 23 25 * This test tests how fast we are at reading an OSM file. … … 35 37 */ 36 38 @Rule 39 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 37 40 public Timeout globalTimeout = Timeout.seconds(15*60); 38 41
Note:
See TracChangeset
for help on using the changeset viewer.