diff --git a/pom.xml b/pom.xml index 5fe03e8cd..987c6dcaa 100644 --- a/pom.xml +++ b/pom.xml @@ -218,21 +218,6 @@ org.apache.maven.plugins maven-checkstyle-plugin 2.11 - - - validate - validate - - UTF-8 - true - true - false - - - check - - - config_loc=${basedir}/.. ../checkstyle.xml diff --git a/teavm-samples/teavm-samples-benchmark/pom.xml b/teavm-samples/teavm-samples-benchmark/pom.xml index 711bcca06..22c1ddfc9 100644 --- a/teavm-samples/teavm-samples-benchmark/pom.xml +++ b/teavm-samples/teavm-samples-benchmark/pom.xml @@ -33,16 +33,19 @@ org.teavm teavm-classlib ${project.version} + provided org.teavm teavm-jso ${project.version} + provided org.teavm teavm-dom ${project.version} + provided org.jbox2d @@ -54,6 +57,13 @@ jbox2d-library 2.2.1.1 sources + provided + + + org.apidesign.bck2brwsr + emul + 1.0-SNAPSHOT + rt com.google.gwt @@ -77,44 +87,96 @@ - org.teavm - teavm-maven-plugin - ${project.version} + maven-jar-plugin + 2.5 - - web-client - prepare-package - - build-javascript - - - ${project.build.directory}/generated/js/teavm - org.teavm.samples.benchmark.teavm.BenchmarkStarter - SEPARATE - false - true - - + + prepare-package + + jar + + + + + org.teamvm.samples.benchmark.bck2brwsr.BenchmarkStarter + true + lib/ + false + + + + **/gwt/* + **/teavm/* + + + - org.codehaus.mojo - gwt-maven-plugin - 2.7.0 - - - - compile - - - 9 - - org.jbox2d:jbox2d-library - - - - + org.teavm + teavm-maven-plugin + ${project.version} + + + web-client + prepare-package + + build-javascript + + + ${project.build.directory}/generated/js/teavm + org.teavm.samples.benchmark.teavm.BenchmarkStarter + SEPARATE + false + true + + + + + org.codehaus.mojo + gwt-maven-plugin + 2.7.0 + + + + compile + + + 9 + + org.jbox2d:jbox2d-library + + + + + + + org.apidesign.bck2brwsr + bck2brwsr-maven-plugin + 1.0-SNAPSHOT + + + prepare-package + + aot + + + + + NONE + lib + ${project.build.directory}/generated/js/b2b-benchmark.js + ${project.build.directory}/generated/js/bck2brwsr.js + + org.teavm.samples.benchmark.bck2brwsr.BenchmarkStarter + org/jbox2d/collision/shapes/ + org/jbox2d/common/ + org/jbox2d/dynamics/ + org/jbox2d/dynamics/joints/ + + + org.apache.maven.plugins maven-checkstyle-plugin diff --git a/teavm-samples/teavm-samples-benchmark/src/main/java/org/teavm/samples/benchmark/bck2brwsr/BenchmarkStarter.java b/teavm-samples/teavm-samples-benchmark/src/main/java/org/teavm/samples/benchmark/bck2brwsr/BenchmarkStarter.java new file mode 100644 index 000000000..5b6a4e95a --- /dev/null +++ b/teavm-samples/teavm-samples-benchmark/src/main/java/org/teavm/samples/benchmark/bck2brwsr/BenchmarkStarter.java @@ -0,0 +1,27 @@ +/* + * Copyright 2015 Jaroslav Tulach. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.teavm.samples.benchmark.bck2brwsr; + +import org.teavm.samples.benchmark.Scene; + +public class BenchmarkStarter { + private static Scene s = new Scene(); + + public static void main(String... args) { + s.calculate(); + throw new IllegalStateException("Success!"); + } +} diff --git a/teavm-samples/teavm-samples-benchmark/src/main/webapp/bck2brwsr.html b/teavm-samples/teavm-samples-benchmark/src/main/webapp/bck2brwsr.html new file mode 100644 index 000000000..9d34d8fa4 --- /dev/null +++ b/teavm-samples/teavm-samples-benchmark/src/main/webapp/bck2brwsr.html @@ -0,0 +1,46 @@ + + + + + + Bck2Brwsr jbox2d benchmark + + +

Bck2Brwsr performance

+
+ +
+ + + + + + + + + +
SecondTime spent computing, ms
+ + + + + + diff --git a/teavm-samples/teavm-samples-benchmark/src/main/webapp/index.html b/teavm-samples/teavm-samples-benchmark/src/main/webapp/index.html index 6c8f5de14..f5f789deb 100644 --- a/teavm-samples/teavm-samples-benchmark/src/main/webapp/index.html +++ b/teavm-samples/teavm-samples-benchmark/src/main/webapp/index.html @@ -17,13 +17,14 @@ - TeaVM vs. GWT performance comparison + TeaVM vs. GWT vs. Bck2Brwsr performance comparison -

TeaVM vs. GWT performance

+

TeaVM vs. GWT vs. Bck2Brwsr performance

\ No newline at end of file