madkins23 / go-slog Goto Github PK
View Code? Open in Web Editor NEWTesting and tools for log/slog handlers
License: MIT License
Testing and tools for log/slog handlers
License: MIT License
And I found another handler authored by go team member https://github.com/seankhliao/svcrunner/blob/main/jsonlog/ , phuslu/slog and its implementation details are similar.
I played it a bit in https://go.dev/play/p/dzeEV_YHO_J , although it's not a feature-completed slog.JSONHanlder implementation -- It does not support caller/source -- I think it's performance should very close to score 100
UPDATE: after my rough tests, its benchmark is similar with phsym/zeroslog
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.200 ns/op + 0 allocs/op
call seems has a higher score than a 150 ns/op + 1 allocs/op
call by right.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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.