Skip to content

Commit 075af12

Browse files
committed
Fix perf test
1 parent 929847f commit 075af12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/perf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const RUNS = 3e4
44
const src = c => `1 + (a * b / c % d) - 2.0 + -3e-3 * +4.4e4 / f.g[0] - i.j(+k == 1)(${c})`
55
const subscriptUrl = new URL('../subscript.js', import.meta.url).href
66
const justinUrl = new URL('../justin.js', import.meta.url).href
7-
// Browser uses CDN, Node uses npm package
8-
const jsepUrl = typeof process !== 'undefined' ? 'jsep' : 'https://esm.sh/jsep'
7+
// Always use CDN - Node requires --import ./test/https-loader.js
8+
const jsepUrl = 'https://esm.sh/jsep'
99

1010
test.fork('perf: expr < jsep', {data: {RUNS, src, subscriptUrl, jsepUrl}}, async ({ ok }, {RUNS, src, subscriptUrl, jsepUrl}) => {
1111
const bench = (fn) => {

0 commit comments

Comments
 (0)