Skip to content

Commit

Permalink
chore: update benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
commenthol committed Oct 15, 2023
1 parent d76c630 commit 9dea4c4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion benchmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"bunyan": "^1.8.15",
"debug": "^4.3.4",
"fastbench": "^1.0.1",
"pino": "^8.8.0"
"pino": "^8.16.0"
},
"devDependencies": {}
}
84 changes: 42 additions & 42 deletions docs/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
`log.debug('hello world')`

```
benchDebug*10000: 23.423ms
benchBunyan*10000: 25.634ms
benchPino*10000: 9.619ms
benchDebugLevel*10000: 19.821ms
benchPinoAsync*10000: 8.892ms
benchDebugLevelAsync*10000: 10.998ms
benchDebug*10000: 18.546ms
benchBunyan*10000: 22.96ms
benchPino*10000: 9.484ms
benchDebugLevel*10000: 16.34ms
benchPinoAsync*10000: 6.189ms
benchDebugLevelAsync*10000: 9.902ms
```

Expand All @@ -18,12 +18,12 @@ benchDebugLevelAsync*10000: 10.998ms
`log.debug('...2000chars...')`

```
benchDebug*10000: 76.483ms
benchBunyan*10000: 83.973ms
benchPino*10000: 75.299ms
benchDebugLevel*10000: 95.44ms
benchPinoAsync*10000: 81.941ms
benchDebugLevelAsync*10000: 63.656ms
benchDebug*10000: 57.241ms
benchBunyan*10000: 75.729ms
benchPino*10000: 65.504ms
benchDebugLevel*10000: 67.711ms
benchPinoAsync*10000: 56.107ms
benchDebugLevelAsync*10000: 59.471ms
```

Expand All @@ -32,12 +32,12 @@ benchDebugLevelAsync*10000: 63.656ms
`log.debug('hello %s', 'world')`

```
benchDebug*10000: 22.46ms
benchBunyan*10000: 25.477ms
benchPino*10000: 10.787ms
benchDebugLevel*10000: 29.386ms
benchPinoAsync*10000: 10.147ms
benchDebugLevelAsync*10000: 14.039ms
benchDebug*10000: 20.458ms
benchBunyan*10000: 24.222ms
benchPino*10000: 10.218ms
benchDebugLevel*10000: 17.011ms
benchPinoAsync*10000: 5.769ms
benchDebugLevelAsync*10000: 10.59ms
```

Expand All @@ -46,12 +46,12 @@ benchDebugLevelAsync*10000: 14.039ms
`log.debug('hello %s %j %d', 'world', { obj: true }, 4, { another: 'obj' })`

```
benchDebug*10000: 24.282ms
benchBunyan*10000: 37.851ms
benchPino*10000: 16.485ms
benchDebugLevel*10000: 24.695ms
benchPinoAsync*10000: 14.521ms
benchDebugLevelAsync*10000: 20.715ms
benchDebug*10000: 23.713ms
benchBunyan*10000: 38.137ms
benchPino*10000: 13.356ms
benchDebugLevel*10000: 25.32ms
benchPinoAsync*10000: 10.579ms
benchDebugLevelAsync*10000: 18.082ms
```

Expand All @@ -60,12 +60,12 @@ benchDebugLevelAsync*10000: 20.715ms
`log.debug({ msg: 'the message',string: 'string',number: 42,bool: true })`

```
benchDebug*10000: 39.002ms
benchBunyan*10000: 27.534ms
benchPino*10000: 14.266ms
benchDebugLevel*10000: 20.081ms
benchPinoAsync*10000: 11.325ms
benchDebugLevelAsync*10000: 16.31ms
benchDebug*10000: 38.19ms
benchBunyan*10000: 25.403ms
benchPino*10000: 15.406ms
benchDebugLevel*10000: 17.856ms
benchPinoAsync*10000: 8.526ms
benchDebugLevelAsync*10000: 14.703ms
```

Expand All @@ -74,12 +74,12 @@ benchDebugLevelAsync*10000: 16.31ms
`log.debug(deep)`

```
benchDebug*10000: 1.340s
benchBunyan*10000: 474.926ms
benchPino*10000: 455.004ms
benchDebugLevel*10000: 476.143ms
benchPinoAsync*10000: 281.14ms
benchDebugLevelAsync*10000: 299.743ms
benchDebug*10000: 1.046s
benchBunyan*10000: 269.327ms
benchPino*10000: 263.777ms
benchDebugLevel*10000: 278.875ms
benchPinoAsync*10000: 231.434ms
benchDebugLevelAsync*10000: 242.807ms
```

Expand All @@ -88,11 +88,11 @@ benchDebugLevelAsync*10000: 299.743ms
`log.debug('deep %j', deep)`

```
benchDebug*10000: 24.003ms
benchBunyan*10000: 738.39ms
benchPino*10000: 717.07ms
benchDebugLevel*10000: 791.504ms
benchPinoAsync*10000: 521.031ms
benchDebugLevelAsync*10000: 573.552ms
benchDebug*10000: 20.346ms
benchBunyan*10000: 535.546ms
benchPino*10000: 526.309ms
benchDebugLevel*10000: 585.732ms
benchPinoAsync*10000: 492.425ms
benchDebugLevelAsync*10000: 555.237ms
```

0 comments on commit 9dea4c4

Please sign in to comment.