]> Cypherpunks repositories - gostls13.git/commit
log/slog/internal/benchmarks: slog benchmarks
authorJonathan Amsterdam <jba@google.com>
Wed, 22 Mar 2023 00:39:45 +0000 (20:39 -0400)
committerJonathan Amsterdam <jba@google.com>
Sat, 25 Mar 2023 12:14:46 +0000 (12:14 +0000)
commit06264b740e3bfe619f5e90359d8f0d521bd47806
treebbfcd13c6e521c2c329c0cf9bc14295a3c0fe9c9
parent9768f736ea11165f10062401dec5509fdf1882ba
log/slog/internal/benchmarks: slog benchmarks

Add a suite of benchmarks for the LogAttrs method, which is intended
to be fast.

Updates #56345.

Change-Id: If43f9f250bd588247c539bed87f81be7f5428c6d
Reviewed-on: https://go-review.googlesource.com/c/go/+/478200
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/build/deps_test.go
src/log/slog/internal/benchmarks/benchmarks.go [new file with mode: 0644]
src/log/slog/internal/benchmarks/benchmarks_test.go [new file with mode: 0644]
src/log/slog/internal/benchmarks/handlers.go [new file with mode: 0644]
src/log/slog/internal/benchmarks/handlers_test.go [new file with mode: 0644]