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

Method method1

test/test/api/BusyLoops.java:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11class BusyLoops {
12
13 static long method1() {
14 long result = 0;
15 for (int i = 0; i < 1_000_000; i++) {
16 result += Integer.toString(i).hashCode();
17 }
18 return result;
19 }
20
21 static long method2() {
22 long iterations = 0;

Callers 4

mainMethod · 0.95
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls 2

hashCodeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected