MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / setAll

Method setAll

validating/jmh/JMH2.java:36–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 la = new long[size];
35 }
36 @Benchmark
37 public void setAll() {
38 Arrays.setAll(la, n -> n);
39 }
40 @Benchmark
41 public void parallelSetAll() {
42 Arrays.parallelSetAll(la, n -> n);

Callers 15

mainMethod · 0.45
intArrayMethod · 0.45
longArrayMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
twoDArrayMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls

no outgoing calls

Tested by 4

mainMethod · 0.36
mainMethod · 0.36
mainMethod · 0.36
mainMethod · 0.36