Skip to content

Commit 9930146

Browse files
Trottsxa
authored andcommitted
test: increase Fibonacci argument to 40
Fixes: #34031 PR-URL: #42055 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Ricky Zhou <[email protected]>
1 parent e3347db commit 9930146

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

test/fixtures/workload/fibonacci.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,5 @@ function fib(n) {
44
return fib(n - 1) + fib(n - 2);
55
}
66

7-
// This is based on emperial values - in the CI, on Windows the program
8-
// tend to finish too fast then we won't be able to see the profiled script
9-
// in the samples, so we need to bump the values a bit. On slower platforms
10-
// like the Pis it could take more time to complete, we need to use a
11-
// smaller value so the test would not time out.
12-
const FIB = process.platform === 'win32' ? 40 : 30;
13-
14-
const n = parseInt(process.env.FIB) || FIB;
7+
const n = parseInt(process.env.FIB, 10) || 40;
158
process.stdout.write(`${fib(n)}\n`);

0 commit comments

Comments
 (0)