We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3347db commit 9930146Copy full SHA for 9930146
test/fixtures/workload/fibonacci.js
@@ -4,12 +4,5 @@ function fib(n) {
4
return fib(n - 1) + fib(n - 2);
5
}
6
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;
+const n = parseInt(process.env.FIB, 10) || 40;
15
process.stdout.write(`${fib(n)}\n`);
0 commit comments