Remove Node.js v8 support (#1402)

This commit is contained in:
Tomas Della Vedova
2021-02-19 08:27:20 +01:00
committed by delvedor
parent ae3bb7031f
commit 28370acf49
43 changed files with 246 additions and 290 deletions

View File

@ -15,10 +15,10 @@ function buildBenchmark (options = {}) {
const q = workq()
const stats = {}
const reports = []
var beforeEach = null
var afterEach = null
var setup = null
var teardown = null
let beforeEach = null
let afterEach = null
let setup = null
let teardown = null
function setBeforeEach (fn) {
beforeEach = fn
@ -54,7 +54,7 @@ function buildBenchmark (options = {}) {
}
stats[title] = []
var { measure, warmup } = opts
let { measure, warmup } = opts
const b = new B({ iterations: opts.iterations })
q.add(runSetup)
@ -225,7 +225,7 @@ function buildBenchmark (options = {}) {
}
})
for (var i = 0; i < results.length; i++) {
for (let i = 0; i < results.length; i++) {
await client.index({
index: 'benchmarking_results',
type: '_doc',