mirror of
https://github.com/nodejs/node.git
synced 2026-10-10 18:59:49 -04:00
test: increase Fibonacci argument to 40
Fixes: https://github.com/nodejs/node/issues/34031 PR-URL: https://github.com/nodejs/node/pull/42055 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
This commit is contained in:
1 parent
77cc34fe32
commit
0ab4a1ce90
1 file changed
+1
-8
Vendored
+1
-8
@@ -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`);
|
||||
Reference in new issue
Block a user