| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5ccdda4 commit 2006b57
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,21 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | + const os = require('os'); | ||
| 3 | 4 | const common = require('../common.js'); | |
| 4 | - const uptime = require('os').uptime; | ||
| 5 | 5 | const assert = require('assert'); | |
| 6 | 6 | ||
| 7 | + const uptime = os.uptime; | ||
| 8 | + | ||
| 7 | 9 | const bench = common.createBenchmark(main, { | |
| 8 | 10 | n: [1e5], | |
| 9 | 11 | }); | |
| 10 | 12 | ||
| 11 | 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 | + | ||
| 12 | 19 | // Warm up. | |
| 13 | 20 | const length = 1024; | |
| 14 | 21 | const array = []; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,6 +20,3 @@ prefix benchmark | |||
| 20 | 20 | ||
| 21 | 21 | [$arch==arm] | |
| 22 | 22 | ||
| 23 | - [$system==ibmi] | ||
| 24 | - test-benchmark-os.js: SKIP | ||
| 25 | - | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments