src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.microbenchmarks/src/org/graalvm/compiler/microbenchmarks/graal/GraphCopyBenchmark.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.microbenchmarks/src/org/graalvm/compiler/microbenchmarks/graal/GraphCopyBenchmark.java Fri Jul 7 09:31:14 2017
--- new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.microbenchmarks/src/org/graalvm/compiler/microbenchmarks/graal/GraphCopyBenchmark.java Fri Jul 7 09:31:14 2017
*** 30,40 ****
--- 30,40 ----
import org.graalvm.compiler.microbenchmarks.graal.util.GraphState;
import org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec;
import org.graalvm.compiler.nodes.StructuredGraph;
/**
! * Benchmarks the performance of {@link Graph#copy(org.graalvm.compiler.debug.DebugContext)}.
*/
public class GraphCopyBenchmark extends GraalBenchmark {
@MethodSpec(declaringClass = ConditionalEliminationBenchmark.class, name = "nullnessSnippet")
public static class Nullness extends GraphState {
*** 73,84 ****
--- 73,84 ----
}
}
@Benchmark
@Warmup(iterations = 20)
- public StructuredGraph nullness(Nullness s, @SuppressWarnings("unused") GraalState g) {
! return (StructuredGraph) s.graph.copy(g.debug);
}
@MethodSpec(declaringClass = GraphCopyBenchmark.class, name = "searchSnippet")
public static class Search extends GraphState {
}
*** 125,133 ****
--- 125,133 ----
} while (true);
}
@Benchmark
@Warmup(iterations = 20)
- public StructuredGraph search(Search s, @SuppressWarnings("unused") GraalState g) {
! return (StructuredGraph) s.graph.copy(g.debug);
}
}
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.microbenchmarks/src/org/graalvm/compiler/microbenchmarks/graal/GraphCopyBenchmark.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File