Making consistent prefixs in PerformanceTest (#1760)
* Making consistent prefixs in PerformanceTest change some "disable_" to "disabled_" * Update PerformanceTest.java
This commit is contained in:
parent
763e69a331
commit
dd6635dc61
@ -162,7 +162,7 @@ public class PerformanceTest extends TestCase {
|
|||||||
* Created in response to http://code.google.com/p/google-gson/issues/detail?id=96
|
* Created in response to http://code.google.com/p/google-gson/issues/detail?id=96
|
||||||
*/
|
*/
|
||||||
// Last I tested, Gson was able to deserialize a byte array of 11MB
|
// Last I tested, Gson was able to deserialize a byte array of 11MB
|
||||||
public void disable_testByteArrayDeserialization() {
|
public void disabled_testByteArrayDeserialization() {
|
||||||
for (int numElements = 10639296; true; numElements += 16384) {
|
for (int numElements = 10639296; true; numElements += 16384) {
|
||||||
StringBuilder sb = new StringBuilder(numElements*2);
|
StringBuilder sb = new StringBuilder(numElements*2);
|
||||||
sb.append("[");
|
sb.append("[");
|
||||||
@ -218,7 +218,7 @@ public class PerformanceTest extends TestCase {
|
|||||||
System.out.printf("Deserialize classes avg time: %d ms\n", avg);
|
System.out.printf("Deserialize classes avg time: %d ms\n", avg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void disable_testLargeObjectSerializationAndDeserialization() {
|
public void disabled_testLargeObjectSerializationAndDeserialization() {
|
||||||
Map<String, Long> largeObject = new HashMap<>();
|
Map<String, Long> largeObject = new HashMap<>();
|
||||||
for (long l = 0; l < 100000; l++) {
|
for (long l = 0; l < 100000; l++) {
|
||||||
largeObject.put("field" + l, l);
|
largeObject.put("field" + l, l);
|
||||||
@ -343,4 +343,4 @@ public class PerformanceTest extends TestCase {
|
|||||||
this.field = field;
|
this.field = field;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user