Skip to content

Commit c1fc54c

Browse files
author
Meghana Gupta
committed
Modifications for chakra, comment Babylon for now
1 parent 31bb9b5 commit c1fc54c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Diff for: test/benchmarks/ARES-6/cli.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const isInBrowser = false;
2828
function makeBenchmarkRunner(sources, benchmarkConstructor, numIterations = 200) {
2929
let source = "'use strict';"
3030
for (let file of sources) {
31-
source += readFile(file);
31+
source += read(file);
3232
}
3333
source += `
3434
this.results = [];
@@ -42,19 +42,19 @@ function makeBenchmarkRunner(sources, benchmarkConstructor, numIterations = 200)
4242
}
4343
`;
4444
return function doRun() {
45-
let globalObjectOfScript = runString(source);
45+
let globalObjectOfScript = WScript.LoadScript(source, 'samethread');
4646
let results = globalObjectOfScript.results;
4747
reportResult(results);
4848
}
4949
}
5050

51-
load("driver.js");
52-
load("results.js");
53-
load("stats.js");
54-
load("air_benchmark.js");
55-
load("basic_benchmark.js");
56-
load("babylon_benchmark.js");
57-
load("ml_benchmark.js");
58-
load("glue.js");
51+
WScript.LoadScriptFile("driver.js");
52+
WScript.LoadScriptFile("results.js");
53+
WScript.LoadScriptFile("stats.js");
54+
WScript.LoadScriptFile("air_benchmark.js");
55+
WScript.LoadScriptFile("basic_benchmark.js");
56+
//WScript.LoadScriptFile("babylon_benchmark.js");
57+
WScript.LoadScriptFile("ml_benchmark.js");
58+
WScript.LoadScriptFile("glue.js");
5959

6060
driver.start(6);

Diff for: test/benchmarks/ARES-6/glue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ function reportResult(...args) {
4949

5050
driver.addBenchmark(AirBenchmarkRunner);
5151
driver.addBenchmark(BasicBenchmarkRunner);
52-
driver.addBenchmark(BabylonBenchmarkRunner);
52+
//driver.addBenchmark(BabylonBenchmarkRunner);
5353
driver.addBenchmark(MLBenchmarkRunner);
5454
driver.readyTrigger();

0 commit comments

Comments
 (0)