MCPcopy Index your code
hub / github.com/apache/groovy / main

Method main

benchmark/bench/strcat.java:11–21  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

9
10public class strcat {
11 public static void main(String args[]) throws IOException {
12 int n = Integer.parseInt(args[0]);
13 String hello = "hello\n";
14 StringBuffer stringBuffer = new StringBuffer(32);
15
16 for (int i=0; i<n; i++) {
17 stringBuffer.append(hello);
18 }
19
20 System.out.println(stringBuffer.length());
21 }
22}

Callers

nothing calls this directly

Calls 4

parseIntMethod · 0.80
appendMethod · 0.45
printlnMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected