comparison truffle/com.oracle.truffle.api.interop.java.test/src/com/oracle/truffle/api/interop/java/test/JavaInteropSpeedTest.java @ 22541:bfa145c84dde

JavaInteropSpeedTest: Increase interop time from 6 to 10 times the java time
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Tue, 12 Jan 2016 10:42:39 +0100
parents 0d36601f233e
children
comparison
equal deleted inserted replaced
22540:72601dde92e8 22541:bfa145c84dde
99 @AfterClass 99 @AfterClass
100 public static void nonSignificanDifference() { 100 public static void nonSignificanDifference() {
101 if (javaTime < 1) { 101 if (javaTime < 1) {
102 javaTime = 1; 102 javaTime = 1;
103 } 103 }
104 if (interopTime > 6 * javaTime) { 104 if (interopTime > 10 * javaTime) {
105 fail("Interop took too long: " + interopTime + " ms, while java only " + javaTime + " ms"); 105 fail("Interop took too long: " + interopTime + " ms, while java only " + javaTime + " ms");
106 } 106 }
107 } 107 }
108 108
109 private static int[] initArray(int size) { 109 private static int[] initArray(int size) {