commit | 45b9f3160c980181f0ca44383fd3b60b2dcb76f4 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Fri Jan 13 11:38:43 2023 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Fri Jan 13 21:37:34 2023 +0000 |
tree | 9e42d40470b12be85ba4479139beba08b486c8f3 | |
parent | 03b686ddc72b3d95bef18af15f0cad1b7e934196 [diff] |
slog: add benchmarks for zerolog Add benchmarks for github.com/rs/zerolog, another popular structured logging package. Put them in a separate module to avoid having the exp repo depend on zerolog. Zerolog doesn't support flexible handlers: it outputs only JSON or (with a compile-time tag) CBOR. Treat JSON output to io.Discard as the "fastText discard" case. Implement only the most important benchmarks: "fastTest discard" with 5 and 10 arguments. Also, rename zapbenchmarks to zap_benchmarks for consistency. Change-Id: I1a58c9b1c9054d88c0e677cfffd1b627d6065dce Reviewed-on: https://go-review.googlesource.com/c/exp/+/461996 Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.