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 benchmarks for lion's JSON logger #302

Merged
merged 3 commits into from
Feb 16, 2017
Merged

Add benchmarks for lion's JSON logger #302

merged 3 commits into from
Feb 16, 2017

Conversation

akshayjshah
Copy link
Contributor

Add benchmarks for go.pedge.io/lion, but only benchmark the JSON logger.

At some point, we may want to add protobuf benchmarks, but I'd rather not introduce dependencies on the proto compiler just for tests.

Current results (from my machine, comparable to benchmarks in README):

testing: warning: no tests to run
BenchmarkWithoutFields/go.pedge.io/lion-4                        1000000              1738 ns/op            1224 B/op         10 allocs/op
BenchmarkAccumulatedContext/go.pedge.io/lion-4                    300000              6403 ns/op            3978 B/op         36 allocs/op
BenchmarkAddingFields/go.pedge.io/lion-4                          200000              9992 ns/op            5999 B/op         62 allocs/op

Akshay Shah added 2 commits February 15, 2017 11:48
From my machine:

```
testing: warning: no tests to run
BenchmarkWithoutFields/go.pedge.io/lion-4                        1000000              1738 ns/op            1224 B/op         10 allocs/op
BenchmarkAccumulatedContext/go.pedge.io/lion-4                    300000              6403 ns/op            3978 B/op         36 allocs/op
BenchmarkAddingFields/go.pedge.io/lion-4                          200000              9992 ns/op            5999 B/op         62 allocs/op
```
@mention-bot
Copy link

@akshayjshah, thanks for your PR! By analyzing the history of the files in this pull request, we identified @imkira, @peter-edge and @osamingo to be potential reviewers.

@@ -0,0 +1,31 @@
// Copyright (c) 2016 Uber Technologies, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2017 :)

@bufdev
Copy link
Contributor

bufdev commented Feb 15, 2017

LGTM

@akshayjshah akshayjshah merged commit 066278d into master Feb 16, 2017
@akshayjshah akshayjshah deleted the ajs-lion-bench branch February 16, 2017 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants