Comparing version 1.0.0 to 1.0.1
@@ -41,11 +41,11 @@ 'use strict' | ||
}, | ||
function benchPinoObj (cb) { | ||
function benchBoleObj (cb) { | ||
for (var i = 0; i < max; i++) { | ||
plog.info({ hello: 'world' }) | ||
bole.info({ hello: 'world' }) | ||
} | ||
setImmediate(cb) | ||
}, | ||
function benchBoleObj (cb) { | ||
function benchPinoObj (cb) { | ||
for (var i = 0; i < max; i++) { | ||
bole.info({ hello: 'world' }) | ||
plog.info({ hello: 'world' }) | ||
} | ||
@@ -52,0 +52,0 @@ setImmediate(cb) |
{ | ||
"name": "pino", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "fast and simple logger", | ||
@@ -44,4 +44,5 @@ "main": "pino.js", | ||
"json-stringify-safe": "^5.0.1", | ||
"quick-format": "^1.0.0", | ||
"split2": "^2.0.1" | ||
} | ||
} |
'use strict' | ||
var stringifySafe = require('json-stringify-safe') | ||
var format = require('util').format | ||
var format = require('quick-format') | ||
var os = require('os') | ||
@@ -83,3 +83,3 @@ var pid = process.pid | ||
if (len > 1) { | ||
msg = format.apply(null, params) | ||
msg = format(params) | ||
} else if (len) { | ||
@@ -86,0 +86,0 @@ msg = params[0] |
@@ -61,23 +61,31 @@ # pino | ||
`info('hello world')`: | ||
``` | ||
benchBunyan*10000: 1230ms | ||
benchWinston*10000: 2139ms | ||
benchBole*10000: 1615ms | ||
benchPino*10000: 314ms | ||
benchBunyan*10000: 1135ms | ||
benchWinston*10000: 2025ms | ||
benchBole*10000: 1635ms | ||
benchPino*10000: 312ms | ||
benchBunyanObj*10000: 1480ms | ||
benchWinstonObj*10000: 2252ms | ||
benchPinoObj*10000: 409ms | ||
benchBoleObj*10000: 1765ms | ||
benchBunyanObj*10000: 1415ms | ||
benchWinstonObj*10000: 2224ms | ||
benchPinoObj*10000: 400ms | ||
benchBoleObj*10000: 1739ms | ||
benchBunyanObj*10000: 1366ms | ||
benchBunyan*10000: 1115.193ms | ||
benchWinston*10000: 1722.497ms | ||
benchBole*10000: 1640.052ms | ||
benchPino*10000: 265.622ms | ||
``` | ||
`info({'hello': 'world'})`: | ||
``` | ||
benchBunyanObj*10000: 1252.539ms | ||
benchWinstonObj*10000: 1729.837ms | ||
benchBoleObj*10000: 1491.677ms | ||
benchPinoObj*10000: 365.207ms | ||
``` | ||
`info('hello %s %j %d', 'world', {obj: true}, 4, {another: 'obj'})`: | ||
``` | ||
benchBunyanInterpolateExtra*10000: 2607.519ms | ||
benchWinstonInterpolateExtra*10000: 2258.154ms | ||
benchBoleInterpolateExtra*10000: 3069.085ms | ||
benchPinoInterpolateExtra*10000: 450.634ms | ||
``` | ||
In multiple cases, pino is 6x faster than alternatives. | ||
<a name="cli"></a> | ||
@@ -84,0 +92,0 @@ ## CLI |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
440049
15
1009
393
6
5
+ Addedquick-format@^1.0.0
+ Addedquick-format@1.0.1(transitive)