Giter Site home page Giter Site logo

go-slog's People

Contributors

madkins23 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

arukiidou

go-slog's Issues

Some thoughts about benchmark fairness/scores

  1. Currently I found that phuslu/log and phsym/zeroslog has no mutex to lock the writer. It is somehow reasonable because we suppose/except that the underlying writer will handle it. see log.FileWriter and lumberjack.Logger. But it seems that unfair for slog.JSONHandler and madkins23/flash because they hold mutex -- Although this does not have much impact on single-threaded throughtput testing.
  2. I notice that the Disabled benchmark result is unstable. It may be that the performance of each handler implementation is too close, so measurement result has jitter in every time.
  3. I guess that the score of samber/slog-logrus is too lower then its score will interfere with the scores of other handlers -- Might consider removing it?
  4. In my experience, allocs is a bit import than nanos. for example, a 200 ns/op + 0 allocs/op call seems has a higher score than a 150 ns/op + 1 allocs/op call by right.

Could please re-run phuslu/slog with latest commit

Many thanks for adding phuslu/slog to your benchmark.
The current phuslu/slog is very rough, it only passed slogtest and focus on common performance -- logging/simple/simplesource suites in your repo.
After review&learn your other test cases, I understood that phuslu/slog has poor performance in vary/variable groups cases.

So I tried to improve phuslu/slog performance today, in master branch https://github.com/phuslu/log/commits/master/

Could you please give a chance to verify it? Very appreciate for your works!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.