@browserless/benchmark 9.7.2 → 9.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@browserless/benchmark",
3
3
  "description": "Benchmarking tool for testing different browserless configurations",
4
4
  "homepage": "https://browserless.js.org/#/?id=benchmark",
5
- "version": "9.7.2",
5
+ "version": "9.10.1",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "josefrancisco.verdu@gmail.com",
@@ -57,5 +57,5 @@
57
57
  "test": "exit 0"
58
58
  },
59
59
  "license": "MIT",
60
- "gitHead": "49eb374d4c0a2f735ae2a536d4e3d011abbed6a6"
60
+ "gitHead": "0826317b9edda6f4d77b38d843e6087060876a00"
61
61
  }
package/src/index.js CHANGED
@@ -170,11 +170,4 @@ ${gray(' p99:')} ${prettyMs(histogram.p99)}
170
170
  ${gray(' p999:')} ${prettyMs(histogram.p999)}`)
171
171
  }
172
172
 
173
- main()
174
- .then(() => {
175
- process.exit(0)
176
- })
177
- .catch(err => {
178
- console.error(err)
179
- process.exit(1)
180
- })
173
+ main().catch(error => console.error(error) || process.exit(1))
@@ -8,6 +8,4 @@ const main = async () => {
8
8
  await browserless.close()
9
9
  }
10
10
 
11
- main()
12
- .then(() => process.exit())
13
- .catch(() => process.exit(1))
11
+ main().catch(() => process.exit(1))
@@ -36,6 +36,4 @@ const main = async () => {
36
36
  await browserless.close()
37
37
  }
38
38
 
39
- main()
40
- .then(() => process.exit())
41
- .catch(() => process.exit(1))
39
+ main().catch(() => process.exit(1))
@@ -12,6 +12,4 @@ const main = async () => {
12
12
  await browser.close()
13
13
  }
14
14
 
15
- main()
16
- .then(() => process.exit())
17
- .catch(() => process.exit(1))
15
+ main().catch(() => process.exit(1))
package/src/timing.js CHANGED
@@ -61,6 +61,5 @@ main(takeScreenshot, { iterations: 100, url: 'https://front-24ypc8or0.zeit.sh/'
61
61
  Object.keys(result).forEach(key => {
62
62
  console.log(` – ${key}: ${prettyMs(percentile(95, result[key]))}`)
63
63
  })
64
- process.exit()
65
64
  })
66
- .catch(err => console.error(err) && process.exit(1))
65
+ .catch(error => console.error(error) || process.exit(1))