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 hotspot Cdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.microbenchmarks/src/org/graalvm/compiler/microbenchmarks/graal/GraphCopyBenchmark.java

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.microbenchmarks/src/org/graalvm/compiler/microbenchmarks/graal/GraphCopyBenchmark.java

Print this page

        

*** 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()}. */ public class GraphCopyBenchmark extends GraalBenchmark { @MethodSpec(declaringClass = ConditionalEliminationBenchmark.class, name = "nullnessSnippet") public static class Nullness extends GraphState { --- 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 **** } } @Benchmark @Warmup(iterations = 20) ! public StructuredGraph nullness(Nullness s, @SuppressWarnings("unused") GraalState g) { ! return (StructuredGraph) s.graph.copy(); } @MethodSpec(declaringClass = GraphCopyBenchmark.class, name = "searchSnippet") public static class Search extends GraphState { } --- 73,84 ---- } } @Benchmark @Warmup(iterations = 20) ! public StructuredGraph nullness(Nullness s, GraalState g) { ! return (StructuredGraph) s.graph.copy(g.debug); } @MethodSpec(declaringClass = GraphCopyBenchmark.class, name = "searchSnippet") public static class Search extends GraphState { }
*** 125,133 **** } while (true); } @Benchmark @Warmup(iterations = 20) ! public StructuredGraph search(Search s, @SuppressWarnings("unused") GraalState g) { ! return (StructuredGraph) s.graph.copy(); } } --- 125,133 ---- } while (true); } @Benchmark @Warmup(iterations = 20) ! public StructuredGraph search(Search s, 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