mirror of
https://github.com/taigrr/log-socket
synced 2026-03-21 00:12:19 -07:00
test(log): add comprehensive benchmarks
Adds a new benchmark_test.go file with comprehensive benchmarks for the logging library: Serial benchmarks: - Trace, Debug, Info, Notice, Warn, Error levels Formatted logging: - Debugf, Infof, Errorf variants Parallel benchmarks: - DebugParallel, InfoParallel, InfofParallel Logger instance (namespaced): - LoggerInfo, LoggerInfof, LoggerDebugParallel Multiple clients/namespaces: - MultipleClients, MultipleNamespaces Message size comparison: - Short, Medium, Long messages Level filtering overhead: - DebugFilteredByLevel Also removes the duplicate BenchmarkDebugSerial from log_test.go and applies minor whitespace formatting fixes. Fixes #6
This commit is contained in:
@@ -23,7 +23,7 @@ func LogSocketHandler(w http.ResponseWriter, r *http.Request) {
|
||||
if namespacesParam != "" {
|
||||
namespaces = strings.Split(namespacesParam, ",")
|
||||
}
|
||||
|
||||
|
||||
c, err := upgrader.Upgrade(w, r, nil)
|
||||
if err != nil {
|
||||
logger.Error("upgrade:", err)
|
||||
|
||||
Reference in New Issue
Block a user