Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
11
class
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
main
Method · 0.95
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
Calls
2
hashCode
Method · 0.45
toString
Method · 0.45
Tested by
no test coverage detected