Skip to content

Commit 118a9ad

Browse files
committed
fix: linter
1 parent 9adacd3 commit 118a9ad

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

packages/benchmark/src/index.js

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@ const cli = meow(
5656
}
5757
)
5858

59-
const benchmark = async ({ createBrowserless, method, url, opts, iterations, concurrency }) => {
59+
const benchmark = async ({
60+
createBrowserless,
61+
method,
62+
url,
63+
opts,
64+
iterations,
65+
concurrency
66+
}) => {
6067
const timer = new Measured.Timer()
6168
const promises = [...Array(iterations).keys()].map(n => {
6269
return async () => {
@@ -98,16 +105,18 @@ const main = async () => {
98105

99106
if (!method) throw new TypeError('Need to provide a method to run.')
100107

101-
const puppeteer = firefox ? require('puppeteer-firefox') : require('puppeteer')
108+
const puppeteer = firefox
109+
? require('puppeteer-firefox')
110+
: require('puppeteer')
102111

103112
const _createBrowserless = isPool
104113
? () =>
105-
createBrowserlessPool({
106-
min: poolMin,
107-
max: poolMax,
108-
puppeteer,
109-
...opts
110-
})
114+
createBrowserlessPool({
115+
min: poolMin,
116+
max: poolMax,
117+
puppeteer,
118+
...opts
119+
})
111120
: () => createBrowserless({ puppeteer, ...opts })
112121

113122
const { times, histogram } = await benchmark({

0 commit comments

Comments
 (0)