Skip to content

Instantly share code, notes, and snippets.

@nitsanw
Last active December 11, 2015 10:48
Show Gist options
  • Save nitsanw/4589685 to your computer and use it in GitHub Desktop.
Save nitsanw/4589685 to your computer and use it in GitHub Desktop.
Run a benchmark with measureMemory sorted
<target name="benchmark-utf8-encoding" depends="build,download-allocation-jar" description=" run experiments">
<ivy:cachepath pathid="lib.path.id" />
<java classpathref="lib.path.id" classname="utf8.Utf8EncodingBenchmark" fork="true">
<classpath>
<pathelement path="${build.dir}"/>
<pathelement location="${allocation.jar.file}"/>
</classpath>
<env key="ALLOCATION_JAR" value="${allocation.jar.file}"/>
<arg value="--measureMemory" />
</java>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment