mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
reduce number of iterations to shorten test time
This commit is contained in:
parent
4c64ad3d8a
commit
e4186e072a
1 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue