This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@BenchmarkMode(Mode.Throughput) | |
@State(Scope.Benchmark) | |
@Fork(value = 1) | |
@Measurement(iterations = 3, time = 1) | |
@Warmup(iterations = 3, time = 1) | |
public class LongNumberParsing { | |
static final String DIGITS = "1234567890"; | |
static final int REPETITIONS = 100; | |
static final String LONG_INT = join("", nCopies(REPETITIONS, DIGITS)); | |
static final String LONG_FP = DIGITS + "." + join("", nCopies(REPETITIONS - 1, DIGITS)); |
OlderNewer