Copying the test resources next to built classes and js file. Modifying the test to properly use the new bck2brwsr calling scheme. benchmarks
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 12 Dec 2012 18:18:07 +0100
branchbenchmarks
changeset 31184c05018e079
parent 309 825e468aa4a7
child 312 5a053b8f40ad
Copying the test resources next to built classes and js file. Modifying the test to properly use the new bck2brwsr calling scheme.
benchmarks/matrix-multiplication/jsTestDriver.conf
benchmarks/matrix-multiplication/pom.xml
benchmarks/matrix-multiplication/src/main/resources/org/apidesign/benchmark/matrixmul/multiplication-test.js
     1.1 --- a/benchmarks/matrix-multiplication/jsTestDriver.conf	Wed Dec 12 12:41:06 2012 +0100
     1.2 +++ b/benchmarks/matrix-multiplication/jsTestDriver.conf	Wed Dec 12 18:18:07 2012 +0100
     1.3 @@ -2,5 +2,4 @@
     1.4  
     1.5  load:
     1.6    - target/classes/org/apidesign/benchmark/matrixmul/*.js
     1.7 -  - src/main/resources/org/apidesign/benchmark/matrixmul/*.js
     1.8  
     2.1 --- a/benchmarks/matrix-multiplication/pom.xml	Wed Dec 12 12:41:06 2012 +0100
     2.2 +++ b/benchmarks/matrix-multiplication/pom.xml	Wed Dec 12 18:18:07 2012 +0100
     2.3 @@ -15,15 +15,6 @@
     2.4    </properties>
     2.5  
     2.6    <build>
     2.7 -      <resources>
     2.8 -        <resource>
     2.9 -          <directory>src/main/resources</directory>
    2.10 -          <excludes>
    2.11 -            <exclude>**/*.js</exclude>
    2.12 -          </excludes>
    2.13 -        </resource>
    2.14 -      </resources>
    2.15 -  
    2.16        <plugins>
    2.17            <plugin>
    2.18              <groupId>org.apache.maven.plugins</groupId>
     3.1 --- a/benchmarks/matrix-multiplication/src/main/resources/org/apidesign/benchmark/matrixmul/multiplication-test.js	Wed Dec 12 12:41:06 2012 +0100
     3.2 +++ b/benchmarks/matrix-multiplication/src/main/resources/org/apidesign/benchmark/matrixmul/multiplication-test.js	Wed Dec 12 18:18:07 2012 +0100
     3.3 @@ -1,6 +1,8 @@
     3.4  MatrixTest = TestCase("MatrixTest");
     3.5  
     3.6 +
     3.7  MatrixTest.prototype.testMultiplication = function() {
     3.8 -  var x = new org_apidesign_benchmark_matrixmul_Main();
     3.9 +  var vm = new bck2brwsr();
    3.10 +  var x = vm.loadClass("org.apidesign.benchmark.matrixmul.Main");
    3.11    x.main__V_3Ljava_lang_String_2(null);
    3.12  };