Skip to content

Commit

Permalink
Merge 27d2fbf into d6c491c
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma committed May 26, 2021
2 parents d6c491c + 27d2fbf commit f2bcb0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12, 14, 16]
node: [12, 14, 16]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@master
Expand Down
13 changes: 7 additions & 6 deletions benchmarks/measure.js
Expand Up @@ -13,14 +13,10 @@ const [ { speed: cpuSpeed } ] = os.cpus();
function getNodeVersionMultiplier() {
const currentNodeVersion = process.version;

if (semver.lt(currentNodeVersion, '14.0.0') && semver.gte(currentNodeVersion, '12.0.0')) {
if (semver.lt(currentNodeVersion, '14.0.0')) {
return 1.5;
}

if (semver.lt(currentNodeVersion, '12.0.0')) {
return 2;
}

return 1;
}

Expand Down Expand Up @@ -51,4 +47,9 @@ function runBenchmark(fn, count) {
return { medianDuration, medianMemory };
}

module.exports = { runBenchmark, clearRequireCache, cpuSpeed, getNodeVersionMultiplier };
module.exports = {
runBenchmark,
clearRequireCache,
cpuSpeed,
getNodeVersionMultiplier
};
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"version": "8.2.0",
"description": "Eslint rules for mocha.",
"engines": {
"node": ">=10.0.0"
"node": ">=12.0.0"
},
"main": "index.js",
"files": [
Expand Down

0 comments on commit f2bcb0d

Please sign in to comment.