We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 929847f commit 075af12Copy full SHA for 075af12
1 file changed
test/perf.js
@@ -4,8 +4,8 @@ const RUNS = 3e4
4
const src = c => `1 + (a * b / c % d) - 2.0 + -3e-3 * +4.4e4 / f.g[0] - i.j(+k == 1)(${c})`
5
const subscriptUrl = new URL('../subscript.js', import.meta.url).href
6
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'
+// Always use CDN - Node requires --import ./test/https-loader.js
+const jsepUrl = 'https://esm.sh/jsep'
9
10
test.fork('perf: expr < jsep', {data: {RUNS, src, subscriptUrl, jsepUrl}}, async ({ ok }, {RUNS, src, subscriptUrl, jsepUrl}) => {
11
const bench = (fn) => {
0 commit comments