Skip to content

Commit bb05a88

Browse files
committed
Merge branch '2.8'
2 parents 3f4ac32 + fb5d265 commit bb05a88

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

src/main/java/com/fasterxml/jackson/databind/util/ISO8601Utils.java

-40
Original file line numberDiff line numberDiff line change
@@ -376,44 +376,4 @@ private static int indexOfNonDigit(String string, int offset) {
376376
}
377377
return string.length();
378378
}
379-
380-
public static void main(String[] args)
381-
{
382-
final int REPS = 250000;
383-
while (true) {
384-
long start = System.currentTimeMillis();
385-
int resp = test1(REPS, 3);
386-
long msecs = System.currentTimeMillis() - start;
387-
System.out.println("Pow ("+resp+") -> "+msecs+" ms");
388-
389-
start = System.currentTimeMillis();
390-
resp = test2(REPS, 3);
391-
msecs = System.currentTimeMillis() - start;
392-
System.out.println("Iter ("+resp+") -> "+msecs+" ms");
393-
}
394-
}
395-
396-
static int test1(int reps, int pow)
397-
{
398-
int resp = 3;
399-
while (--reps >= 0) {
400-
resp = (int) Math.pow(10, pow);
401-
}
402-
return resp;
403-
}
404-
405-
static int test2(int reps, int pow)
406-
{
407-
int resp = 3;
408-
while (--reps >= 0) {
409-
resp = 10;
410-
int p = pow;
411-
412-
while (--p > 0) {
413-
resp *= 10;
414-
}
415-
}
416-
return resp;
417-
}
418379
}
419-

0 commit comments

Comments
 (0)