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:
commit
0d053a000d
1 changed files with 6 additions and 2 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue