8267844: Replace Integer/Long.valueOf() with Integer/Long.parse*() where applicable

Reviewed-by: redestad
This commit is contained in:
Sergey Tsypanov 2021-08-12 10:03:52 +00:00 committed by Claes Redestad
parent d38b31438d
commit b29fbad940
6 changed files with 31 additions and 13 deletions

View file

@ -76,6 +76,13 @@ public class Integers {
}
}
@Benchmark
public void decode(Blackhole bh) {
for (String s : strings) {
bh.consume(Integer.decode(s));
}
}
/** Performs toString on small values, just a couple of digits. */
@Benchmark
public void toStringSmall(Blackhole bh) {