Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
salesh committed Jan 15, 2021
1 parent 44b698e commit dfe518b
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 140 deletions.
1 change: 0 additions & 1 deletion .eslintrc

This file was deleted.

8 changes: 0 additions & 8 deletions benchmarks/basic.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,56 +43,48 @@ const chill = winston.createLogger({

const run = bench([
function benchBunyan (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
blog.info('hello world')
}
setImmediate(cb)
},
function benchWinston (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
chill.log('info', 'hello world')
}
setImmediate(cb)
},
function benchBole (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
bole.info('hello world')
}
setImmediate(cb)
},
function benchDebug (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
dlog('hello world')
}
setImmediate(cb)
},
function benchLogLevel (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
loglevel.info('hello world')
}
setImmediate(cb)
},
function benchPino (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogDest.info('hello world')
}
setImmediate(cb)
},
function benchPinoAsync (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogAsync.info('hello world')
}
setImmediate(cb)
},
function benchPinoNodeStream (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogNodeStream.info('hello world')
}
Expand Down
4 changes: 0 additions & 4 deletions benchmarks/child-child.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,24 @@ const blog = bunyan.createLogger({

const run = bench([
function benchBunyanChildChild (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
blog.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoChildChild (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogDest.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoAsyncChildChild (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogAsync.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoNodeStreamChildChild (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogNodeStream.info({ hello: 'world' })
}
Expand Down
5 changes: 0 additions & 5 deletions benchmarks/child-creation.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,34 @@ require('bole').output({
const run = bench([
function benchBunyanCreation (cb) {
const child = blog.child({ a: 'property' })
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
child.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchBoleCreation (cb) {
const child = bole('child')
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
child.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoCreation (cb) {
const child = plogDest.child({ a: 'property' })
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
child.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoAsyncCreation (cb) {
const child = plogAsync.child({ a: 'property' })
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
child.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoNodeStreamCreation (cb) {
const child = plogNodeStream.child({ a: 'property' })
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
child.info({ hello: 'world' })
}
Expand Down
5 changes: 0 additions & 5 deletions benchmarks/child.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,30 @@ require('bole').output({

const run = bench([
function benchBunyanChild (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
blog.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchBoleChild (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
bole.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoChild (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogDest.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoAssyncChild (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogAsync.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoNodeStreamChild (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogNodeStream.info({ hello: 'world' })
}
Expand Down
7 changes: 0 additions & 7 deletions benchmarks/deep-object.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,49 +42,42 @@ const chill = winston.createLogger({

const run = bench([
function benchBunyanDeepObj (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
blog.info(deep)
}
setImmediate(cb)
},
function benchWinstonDeepObj (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
chill.log(deep)
}
setImmediate(cb)
},
function benchBoleDeepObj (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
bole.info(deep)
}
setImmediate(cb)
},
function benchLogLevelDeepObj (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
loglevel.info(deep)
}
setImmediate(cb)
},
function benchPinoDeepObj (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogDest.info(deep)
}
setImmediate(cb)
},
function benchPinoAsyncDeepObj (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogAsync.info(deep)
}
setImmediate(cb)
},
function benchPinoNodeStreamDeepObj (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogNodeStream.info(deep)
}
Expand Down
2 changes: 0 additions & 2 deletions benchmarks/formatters.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ const max = 10

const run = bench([
function benchPinoNoFormatters (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
pinoNoFormatters.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoFormatters (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
pinoFormatters.info({ hello: 'world' })
}
Expand Down
7 changes: 0 additions & 7 deletions benchmarks/internal/custom-levels.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,37 @@ const max = 100

const run = bench([
function benchPinoNoCustomLevel (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
base.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoCustomLevel (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
baseCl.foo({ hello: 'world' })
}
setImmediate(cb)
},
function benchChildNoCustomLevel (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
child.info({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoChildCustomLevel (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
childCl.foo({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoChildInheritedCustomLevel (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
childOfBaseCl.foo({ hello: 'world' })
}
setImmediate(cb)
},
function benchPinoChildCreation (cb) {
const child = base.child({})
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
child.info({ hello: 'world' })
}
Expand All @@ -63,7 +57,6 @@ const run = bench([
const child = base.child({
customLevels: { foo: 31 }
})
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
child.foo({ hello: 'world' })
}
Expand Down
9 changes: 0 additions & 9 deletions benchmarks/internal/just-pino-heavy.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,63 +18,54 @@ const max = 10

const run = bench([
function benchPinoLongString (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plog.info(longStr)
}
setImmediate(cb)
},
function benchPinoDestLongString (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogDest.info(longStr)
}
setImmediate(cb)
},
function benchPinoAsyncLongString (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogAsync.info(longStr)
}
setImmediate(cb)
},
function benchPinoDeepObj (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plog.info(deep)
}
setImmediate(cb)
},
function benchPinoDestDeepObj (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogDest.info(deep)
}
setImmediate(cb)
},
function benchPinoAsyncDeepObj (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogAsync.info(deep)
}
setImmediate(cb)
},
function benchPinoInterpolateDeep (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plog.info('hello %j', deep)
}
setImmediate(cb)
},
function benchPinoDestInterpolateDeep (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogDest.info('hello %j', deep)
}
setImmediate(cb)
},
function benchPinoAsyncInterpolateDeep (cb) {
/* eslint no-var: off */
for (var i = 0; i < max; i++) {
plogAsync.info('hello %j', deep)
}
Expand Down
Loading

0 comments on commit dfe518b

Please sign in to comment.