Skip to content

Commit

Permalink
test: increase Fibonacci argument to 40
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Trott authored and danielleadams committed Apr 24, 2022
1 parent 3856895 commit 21a2067
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/fixtures/workload/fibonacci.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,5 @@ function fib(n) {
return fib(n - 1) + fib(n - 2);
}

// This is based on emperial values - in the CI, on Windows the program
// tend to finish too fast then we won't be able to see the profiled script
// in the samples, so we need to bump the values a bit. On slower platforms
// like the Pis it could take more time to complete, we need to use a
// smaller value so the test would not time out.
const FIB = process.platform === 'win32' ? 40 : 30;

const n = parseInt(process.env.FIB) || FIB;
const n = parseInt(process.env.FIB, 10) || 40;
process.stdout.write(`${fib(n)}\n`);

0 comments on commit 21a2067

Please sign in to comment.