mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 11:25:30 -04:00
Merge pull request #89 from stleary/update-timeNumberParsing-iterations
reduce number of iterations to shorten test time
This commit is contained in:
commit
0d053a000d
@ -122,9 +122,13 @@ public class JSONObjectTest {
|
|||||||
+ "0a"
|
+ "0a"
|
||||||
};
|
};
|
||||||
final int testDataLength = testData.length;
|
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();
|
long startTime = System.nanoTime();
|
||||||
for(int i = 0; i < iterations; i++) {
|
for(int i = 0; i < iterations; i++) {
|
||||||
for(int j = 0; j < testDataLength; j++) {
|
for(int j = 0; j < testDataLength; j++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user