1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

Merge pull request #89 from stleary/update-timeNumberParsing-iterations

reduce number of iterations to shorten test time
This commit is contained in:
Sean Leary 2018-12-08 11:31:38 -06:00 committed by GitHub
commit 0d053a000d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,9 +122,13 @@ public class JSONObjectTest {
+ "0a"
};
final int testDataLength = testData.length;
final int iterations = 1000000;
/**
* Changed to 1000 for faster test runs
*/
// final int iterations = 1000000;
final int iterations = 1000;
// 10 million iterations 1,000,000 * 10
// 10 million iterations 1,000,000 * 10 (currently 100,000)
long startTime = System.nanoTime();
for(int i = 0; i < iterations; i++) {
for(int j = 0; j < testDataLength; j++) {