Skip to content

Instantly share code, notes, and snippets.

@nitsanw
Last active June 22, 2016 08:39
Show Gist options
  • Save nitsanw/4696f30d663d8601a3fffd3b0d8938e5 to your computer and use it in GitHub Desktop.
Save nitsanw/4696f30d663d8601a3fffd3b0d8938e5 to your computer and use it in GitHub Desktop.
@Benchmark
public int systemArrayCopy() {
System.arraycopy(buffer, 0, dst, 0, buffer.length);
return dst[buffer.length-1];
}
# Flat Profile (by line):
(t 62.9,s 62.9) AGCT::Unknown Java[ERR=-5] @ (bci=-1,line=-100)
(t 19.5,s 19.5) systemArrayCopy_avgt_jmhStub @ (bci=29,line=165)
(t 2.7,s 2.7) systemArrayCopy @ (bci=15,line=3)
(t 2.1,s 2.1) systemArrayCopy @ (bci=26,line=4)
(t 1.9,s 1.9) systemArrayCopy @ (bci=29,line=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment