MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / benchmark

Method benchmark

test/test/alloc/MapReader.java:55–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 public void benchmark() throws IOException {
56 while (true) {
57 long start = System.nanoTime();
58 readMap(new ByteArrayInputStream(input));
59 long end = System.nanoTime();
60 System.out.println((end - start) / 1e9);
61 }
62 }
63
64 public static void main(String[] args) throws Exception {
65 new MapReader(2000000).benchmark();

Callers 2

mainMethod · 0.80
mainMethod · 0.80

Calls 1

readMapMethod · 0.95

Tested by

no test coverage detected