diff --git a/echosvg-test/src/jmh/java/io/sf/carte/echosvg/svggen/DoubleStringPerformanceMark.java b/echosvg-test/src/jmh/java/io/sf/carte/echosvg/svggen/jmh/DoubleStringPerformanceMark.java similarity index 87% rename from echosvg-test/src/jmh/java/io/sf/carte/echosvg/svggen/DoubleStringPerformanceMark.java rename to echosvg-test/src/jmh/java/io/sf/carte/echosvg/svggen/jmh/DoubleStringPerformanceMark.java index 828f3fae8..035e64a53 100644 --- a/echosvg-test/src/jmh/java/io/sf/carte/echosvg/svggen/DoubleStringPerformanceMark.java +++ b/echosvg-test/src/jmh/java/io/sf/carte/echosvg/svggen/jmh/DoubleStringPerformanceMark.java @@ -16,7 +16,7 @@ limitations under the License. */ -package io.sf.carte.echosvg.svggen; +package io.sf.carte.echosvg.svggen.jmh; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.Fork; @@ -27,6 +27,7 @@ import org.w3c.dom.Document; import io.sf.carte.echosvg.anim.dom.SVGDOMImplementation; +import io.sf.carte.echosvg.svggen.SVGGeneratorContext; /** * This test checks that there is no performance degradation in the doubleString @@ -49,7 +50,7 @@ public void DoubleStringMark() { DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI; Document doc = impl.createDocument(svgNS, "svg", null); - final SVGGeneratorContext gc = new SVGGeneratorContext(doc); + final SVGGeneratorContext gc = new MarkGeneratorContext(doc); int maxLength = 0; for (int i = 0; i < 1000; i++) { @@ -59,4 +60,10 @@ public void DoubleStringMark() { } } + static class MarkGeneratorContext extends SVGGeneratorContext { + MarkGeneratorContext (Document doc) { + super(doc); + } + } + }