Skip to content

Commit dc25a8e

Browse files
committed
fixed benchmark for windows
1 parent 2fafdaa commit dc25a8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

benchmark/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env node
21
'use strict';
32
const { execFileSync } = require('child_process');
43
const clc = require('cli-color');
@@ -70,7 +69,7 @@ for (const trial of trials) {
7069
const ctx = createContext(trial, driver);
7170
process.stdout.write(`${driver} (running...)\n`);
7271
try {
73-
const result = execFileSync('./benchmark.js', [ctx], { stdio: 'pipe', encoding: 'utf8' });
72+
const result = execFileSync('node', ['./benchmark.js', ctx], { stdio: 'pipe', encoding: 'utf8' });
7473
console.log(erase() + `${driverName} x ${result}`);
7574
} catch (err) {
7675
console.log(erase() + clc.red(`${driverName} ERROR (probably out of memory)`));

0 commit comments

Comments
 (0)