Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ sort
Method
sort
arrays/jmh/ParallelSort.java:17–20 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
15
la =
new
Rand.Plong().array(100_000);
16
}
17
@Benchmark
18
public
void
sort() {
19
Arrays.sort(la);
20
}
21
@Benchmark
22
public
void
parallelSort() {
23
Arrays.parallelSort(la);
Callers
8
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
Calls
no outgoing calls
Tested by
1
main
Method · 0.36