Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ln logger to benchmarks #142

Closed
jsumners opened this issue Nov 29, 2016 · 2 comments
Closed

Add ln logger to benchmarks #142

jsumners opened this issue Nov 29, 2016 · 2 comments

Comments

@jsumners
Copy link
Member

https://www.npmjs.com/package/ln

@jsumners
Copy link
Member Author

I am going to say this can't be added. Even when I give it a no operation "appender" function it is incapable of handling the basic benchmark test. For example, the following:

var lnLogger = new ln({name: 'ln', appenders: [{
  write: function (ts, str) {
    console.log(`${ts}: ${str}`)
  }
}]})

Results in:

% node benchmarks/basic.bench.js                                                                                    [s:0 l:10032]
benchBunyan*10000: 927.187ms
benchWinston*10000: 1879.679ms
benchBole*10000: 259.136ms
benchDebug*10000: 358.135ms
benchLogLevel*10000: 269.839ms
1480466949073: {"n":"ln","h":"dalekprime.local","p":5844,"v":0,"t":1480466949073,"l":30,"m":"hello world"}

1480466949073: {"n":"ln","h":"dalekprime.local","p":5844,"v":0,"t":1480466949073,"l":30,"m":"hello world"}

1480466949073: {"n":"ln","h":"dalekprime.local","p":5844,"v":0,"t":1480466949073,"l":30,"m":"hello world"}

1480466949073: {"n":"ln","h":"dalekprime.local","p":5844,"v":0,"t":1480466949073,"l":30,"m":"hello world"}

1480466949073: {"n":"ln","h":"dalekprime.local","p":5844,"v":0,"t":1480466949073,"l":30,"m":"hello world"}

1480466949073: {"n":"ln","h":"dalekprime.local","p":5844,"v":0,"t":1480466949073,"l":30,"m":"hello world"}

1480466949073: {"n":"ln","h":"dalekprime.local","p":5844,"v":0,"t":1480466949073,"l":30,"m":"hello world"}

1480466949073: {"n":"ln","h":"dalekprime.local","p":5844,"v":0,"t":1480466949073,"l":30,"m":"hello world"}

1480466949073: {"n":"ln","h":"dalekprime.local","p":5844,"v":0,"t":1480466949073,"l":30,"m":"hello world"}

1480466949073: {"n":"ln","h":"dalekprime.local","p":5844,"v":0,"t":1480466949073,"l":30,"m":"hello world"}

It just bombs out without any warning.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant