Changeset 11324 in josm for trunk/test/performance/org/openstreetmap
- Timestamp:
- 2016-11-27T05:16:30+01:00 (8 years ago)
- Location:
- trunk/test/performance/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/performance/org/openstreetmap/josm/PerformanceTestUtils.java
r10674 r11324 112 112 } 113 113 114 @SuppressFBWarnings(value = "DM_GC") 114 115 private static void cleanSystem() { 115 116 System.gc(); -
trunk/test/performance/org/openstreetmap/josm/data/osm/KeyValuePerformanceTest.java
r11114 r11324 8 8 import static org.junit.Assert.assertTrue; 9 9 10 import java.security.SecureRandom; 10 11 import java.util.ArrayList; 11 12 import java.util.Random; … … 125 126 public void generateTestStrings() { 126 127 testStrings.clear(); 127 random = new Random(123);128 random = new SecureRandom(); 128 129 for (int i = 0; i < TEST_STRING_COUNT; i++) { 129 130 testStrings.add(RandomStringUtils.random(10, 0, 0, true, true, null, random)); -
trunk/test/performance/org/openstreetmap/josm/data/osm/OsmDataGenerator.java
r8926 r11324 3 3 4 4 import java.io.File; 5 import java.security.SecureRandom; 5 6 import java.util.ArrayList; 6 7 import java.util.Random; … … 41 42 */ 42 43 public RandomStringList(int seed, int size) { 43 random = new Random(seed); 44 random = new SecureRandom(); 45 random.setSeed(seed); 44 46 strings = new String[size]; 45 47 interned = new String[size]; … … 88 90 protected DataGenerator(String datasetName) { 89 91 this.datasetName = datasetName; 90 this.random = new Random(1234);92 this.random = new SecureRandom(); 91 93 } 92 94 … … 126 128 */ 127 129 public File getFile() { 128 return new File(DATA_DIR + File.separator +datasetName + ".osm");130 return new File(DATA_DIR, datasetName + ".osm"); 129 131 } 130 132 … … 139 141 @Override 140 142 public String toString() { 141 return "DataGenerator [datasetName=" + datasetName + "]";143 return "DataGenerator [datasetName=" + datasetName + ']'; 142 144 } 143 145 } -
trunk/test/performance/org/openstreetmap/josm/gui/mappaint/MapRendererPerformanceTest.java
r10697 r11324 166 166 public int noIterations = 7; 167 167 public boolean dumpImage = DUMP_IMAGE; 168 public boolean skipDraw = false;169 168 public boolean clearStyleCache = true; 170 169 public String label = ""; … … 264 263 test.bounds = BOUNDS_CITY_ALL; 265 264 test.label = "big"; 266 test.skipDraw = true;267 265 test.dumpImage = false; 268 266 test.noWarmup = 3;
Note:
See TracChangeset
for help on using the changeset viewer.