We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d06eea commit dbe6c5fCopy full SHA for dbe6c5f
benchmark/os/uptime.js
@@ -1,14 +1,21 @@
1
'use strict';
2
3
+const os = require('os');
4
const common = require('../common.js');
-const uptime = require('os').uptime;
5
const assert = require('assert');
6
7
+const uptime = os.uptime;
8
+
9
const bench = common.createBenchmark(main, {
10
n: [1e5],
11
});
12
13
function main({ n }) {
14
+ if (os.type() === 'OS400') {
15
+ console.log('Skipping: os.uptime is not implemented on IBMi');
16
+ process.exit(0);
17
+ }
18
19
// Warm up.
20
const length = 1024;
21
const array = [];
test/benchmark/benchmark.status
@@ -20,6 +20,3 @@ prefix benchmark
[$arch==arm]
22
23
-[$system==ibmi]
24
-test-benchmark-os.js: SKIP
25
-
0 commit comments