From 6d0cdfffcc4dfed88acbb10f4a1dd9ec85ea6139 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 08:05:17 -0800 Subject: [PATCH 01/22] Replace use of URL arguments with URL parameters --- cmd/server/embed/choices.tmpl | 16 +++++++++++++--- cmd/server/embed/handler.tmpl | 10 +++++----- cmd/server/embed/root.tmpl | 4 ++-- cmd/server/embed/test.tmpl | 10 +++++----- cmd/server/server.go | 16 ++++++++-------- 5 files changed, 33 insertions(+), 23 deletions(-) diff --git a/cmd/server/embed/choices.tmpl b/cmd/server/embed/choices.tmpl index 618705b3..76249925 100644 --- a/cmd/server/embed/choices.tmpl +++ b/cmd/server/embed/choices.tmpl @@ -1,9 +1,19 @@ + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + +
Test: -
- {{ range .Data.TestTags }} @@ -16,7 +26,7 @@
Handler: - {{ range .Data.HandlerTags }} diff --git a/cmd/server/embed/handler.tmpl b/cmd/server/embed/handler.tmpl index b557d922..bf1a7b47 100644 --- a/cmd/server/embed/handler.tmpl +++ b/cmd/server/embed/handler.tmpl @@ -8,7 +8,7 @@ diff --git a/cmd/server/embed/root.tmpl b/cmd/server/embed/root.tmpl index ef0a9ae8..5a0601bc 100644 --- a/cmd/server/embed/root.tmpl +++ b/cmd/server/embed/root.tmpl @@ -11,7 +11,7 @@ Tests
- Home + Home

Handler {{ .Data.HandlerName .Handler }}

@@ -43,12 +43,12 @@ - - + + - - + +
{{ .Data.HandlerName .Handler }} Ns/Op{{ .Data.HandlerName .Handler }} Allocs/Op{{ .Data.HandlerName .Handler }} Ns/Op{{ .Data.HandlerName .Handler }} Allocs/Op
{{ .Data.HandlerName .Handler }} Bytes/Op{{ .Data.HandlerName .Handler }} GB/Sec{{ .Data.HandlerName .Handler }} Bytes/Op{{ .Data.HandlerName .Handler }} GB/Sec
{{ range .Data.TestTags }} - + {{ end }}
{{ $.Data.TestName . }}
{{ $.Data.TestName . }}
@@ -20,7 +20,7 @@ Handlers {{ range .Data.HandlerTags }} - + {{ end }}
{{ $.Data.HandlerName . }}
{{ $.Data.HandlerName . }}
diff --git a/cmd/server/embed/test.tmpl b/cmd/server/embed/test.tmpl index ce20e1f8..7d30a413 100644 --- a/cmd/server/embed/test.tmpl +++ b/cmd/server/embed/test.tmpl @@ -8,7 +8,7 @@ diff --git a/cmd/server/server.go b/cmd/server/server.go index e61f1569..ca193b8f 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -60,9 +60,9 @@ func main() { router := gin.Default() router.GET("/", pageFunction(pageRoot)) - router.GET("/test", pageFunction(pageTest)) - router.GET("/handler", pageFunction(pageHandler)) - router.GET("/chart.svg", chartFunction) + router.GET("/test/:tag", pageFunction(pageTest)) + router.GET("/handler/:tag", pageFunction(pageHandler)) + router.GET("/chart/:tag/:item", chartFunction) router.GET("/home.svg", svgFunction(home)) router.GET("/style.css", textFunction(css)) @@ -150,14 +150,14 @@ var ( ) func chartFunction(c *gin.Context) { - itemArg := c.Query("item") + itemArg := c.Param("item") item, err := bench.TestItemsString(itemArg) if err != nil { - slog.Error("Bad item URL argument", "arg", itemArg, "err", err) + slog.Error("Bad URL parameter", "param", itemArg, "err", err) // TODO: what to do here? return } - tag := c.Query("tag") + tag := c.Param("tag") cacheKey := tag + ":" + item.String() chartCacheMutex.Lock() ch, found := chartCache[cacheKey] @@ -255,8 +255,8 @@ func pageFunction(page pageType) gin.HandlerFunc { return func(c *gin.Context) { pageData := &pageData{Data: data, Printer: language.Printer()} if page == pageTest || page == pageHandler { - if tag := c.Query("tag"); tag == "" { - slog.Error("No URL argument", "arg", "tag") + if tag := c.Param("tag"); tag == "" { + slog.Error("No URL parameter", "param", "tag") } else if page == pageTest { pageData.Test = bench.TestTag(tag) } else if page == pageHandler { From 83071284ede306c0d9abb6c3f623c82e294cba47 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 09:14:00 -0800 Subject: [PATCH 02/22] Make root page accessible as /index.html --- cmd/server/embed/handler.tmpl | 2 +- cmd/server/embed/test.tmpl | 2 +- cmd/server/server.go | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/server/embed/handler.tmpl b/cmd/server/embed/handler.tmpl index bf1a7b47..ab87e5b4 100644 --- a/cmd/server/embed/handler.tmpl +++ b/cmd/server/embed/handler.tmpl @@ -8,7 +8,7 @@
- Home + Home

Test {{ .Data.TestName .Test }}

@@ -43,12 +43,12 @@ - - + + - - + +
{{ .Data.TestName .Test }} Ns/Op{{ .Data.TestName .Test }} Allocs/Op{{ .Data.TestName .Test }} Ns/Op{{ .Data.TestName .Test }} Allocs/Op
{{ .Data.TestName .Test }} Bytes/Op{{ .Data.TestName .Test }} GB/Sec{{ .Data.TestName .Test }} Bytes/Op{{ .Data.TestName .Test }} GB/Sec
diff --git a/cmd/server/server.go b/cmd/server/server.go index 6e712967..db599fe4 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -8,6 +8,7 @@ import ( "log/slog" "net/http" "os" + "strings" "sync" "time" @@ -152,7 +153,7 @@ var ( ) func chartFunction(c *gin.Context) { - itemArg := c.Param("item") + itemArg := strings.TrimSuffix(c.Param("item"), ".svg") item, err := bench.TestItemsString(itemArg) if err != nil { slog.Error("Bad URL parameter", "param", itemArg, "err", err) @@ -259,10 +260,13 @@ func pageFunction(page pageType) gin.HandlerFunc { if page == pageTest || page == pageHandler { if tag := c.Param("tag"); tag == "" { slog.Error("No URL parameter", "param", "tag") - } else if page == pageTest { - pageData.Test = bench.TestTag(tag) - } else if page == pageHandler { - pageData.Handler = bench.HandlerTag(tag) + } else { + tag := strings.TrimSuffix(tag, ".html") + if page == pageTest { + pageData.Test = bench.TestTag(tag) + } else if page == pageHandler { + pageData.Handler = bench.HandlerTag(tag) + } } } if err := templates[page].Execute(c.Writer, pageData); err != nil { From a6ab7e885ea83c94f8c5a4334e3c4604e25d9acc Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 12:27:58 -0800 Subject: [PATCH 04/22] Script to scrape pages from server using wget --- scripts/pages | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 scripts/pages diff --git a/scripts/pages b/scripts/pages new file mode 100755 index 00000000..c7574219 --- /dev/null +++ b/scripts/pages @@ -0,0 +1,5 @@ +#!/bin/bash + +# Get pages from server + +wget -r localhost:8080 -nH -P pages From a177e8981db1987e3f3becb3874161b3c0ecef37 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 15:56:16 -0800 Subject: [PATCH 05/22] Downloaded server pages for use with github pages --- pages/chart/Attributes/GbPerSec.svg | 38 +++ pages/chart/Attributes/MemAllocs.svg | 38 +++ pages/chart/Attributes/MemBytes.svg | 38 +++ pages/chart/Attributes/Nanos.svg | 38 +++ pages/chart/Big_Group/GbPerSec.svg | 38 +++ pages/chart/Big_Group/MemAllocs.svg | 38 +++ pages/chart/Big_Group/MemBytes.svg | 38 +++ pages/chart/Big_Group/Nanos.svg | 38 +++ pages/chart/Disabled/GbPerSec.svg | 38 +++ pages/chart/Disabled/MemAllocs.svg | 38 +++ pages/chart/Disabled/MemBytes.svg | 38 +++ pages/chart/Disabled/Nanos.svg | 38 +++ pages/chart/Key_Values/GbPerSec.svg | 38 +++ pages/chart/Key_Values/MemAllocs.svg | 38 +++ pages/chart/Key_Values/MemBytes.svg | 38 +++ pages/chart/Key_Values/Nanos.svg | 38 +++ pages/chart/Logging/GbPerSec.svg | 38 +++ pages/chart/Logging/MemAllocs.svg | 38 +++ pages/chart/Logging/MemBytes.svg | 38 +++ pages/chart/Logging/Nanos.svg | 38 +++ pages/chart/Simple/GbPerSec.svg | 38 +++ pages/chart/Simple/MemAllocs.svg | 38 +++ pages/chart/Simple/MemBytes.svg | 38 +++ pages/chart/Simple/Nanos.svg | 38 +++ pages/chart/Simple_Source/GbPerSec.svg | 38 +++ pages/chart/Simple_Source/MemAllocs.svg | 38 +++ pages/chart/Simple_Source/MemBytes.svg | 38 +++ pages/chart/Simple_Source/Nanos.svg | 38 +++ .../chart/With_Attrs_Attributes/GbPerSec.svg | 33 +++ .../chart/With_Attrs_Attributes/MemAllocs.svg | 33 +++ .../chart/With_Attrs_Attributes/MemBytes.svg | 33 +++ pages/chart/With_Attrs_Attributes/Nanos.svg | 33 +++ .../chart/With_Attrs_Key_Values/GbPerSec.svg | 33 +++ .../chart/With_Attrs_Key_Values/MemAllocs.svg | 33 +++ .../chart/With_Attrs_Key_Values/MemBytes.svg | 33 +++ pages/chart/With_Attrs_Key_Values/Nanos.svg | 33 +++ pages/chart/With_Attrs_Simple/GbPerSec.svg | 33 +++ pages/chart/With_Attrs_Simple/MemAllocs.svg | 33 +++ pages/chart/With_Attrs_Simple/MemBytes.svg | 33 +++ pages/chart/With_Attrs_Simple/Nanos.svg | 33 +++ .../chart/With_Group_Attributes/GbPerSec.svg | 33 +++ .../chart/With_Group_Attributes/MemAllocs.svg | 33 +++ .../chart/With_Group_Attributes/MemBytes.svg | 33 +++ pages/chart/With_Group_Attributes/Nanos.svg | 33 +++ .../chart/With_Group_Key_Values/GbPerSec.svg | 33 +++ .../chart/With_Group_Key_Values/MemAllocs.svg | 33 +++ .../chart/With_Group_Key_Values/MemBytes.svg | 33 +++ pages/chart/With_Group_Key_Values/Nanos.svg | 33 +++ pages/chart/darvaza_zerolog/GbPerSec.svg | 48 ++++ pages/chart/darvaza_zerolog/MemAllocs.svg | 48 ++++ pages/chart/darvaza_zerolog/MemBytes.svg | 48 ++++ pages/chart/darvaza_zerolog/Nanos.svg | 48 ++++ pages/chart/phsym_zerolog/GbPerSec.svg | 73 ++++++ pages/chart/phsym_zerolog/MemAllocs.svg | 73 ++++++ pages/chart/phsym_zerolog/MemBytes.svg | 73 ++++++ pages/chart/phsym_zerolog/Nanos.svg | 73 ++++++ pages/chart/samber_zap/GbPerSec.svg | 73 ++++++ pages/chart/samber_zap/MemAllocs.svg | 73 ++++++ pages/chart/samber_zap/MemBytes.svg | 73 ++++++ pages/chart/samber_zap/Nanos.svg | 73 ++++++ pages/chart/samber_zerolog/GbPerSec.svg | 73 ++++++ pages/chart/samber_zerolog/MemAllocs.svg | 73 ++++++ pages/chart/samber_zerolog/MemBytes.svg | 73 ++++++ pages/chart/samber_zerolog/Nanos.svg | 73 ++++++ pages/chart/slog_JSONHandler/GbPerSec.svg | 73 ++++++ pages/chart/slog_JSONHandler/MemAllocs.svg | 73 ++++++ pages/chart/slog_JSONHandler/MemBytes.svg | 73 ++++++ pages/chart/slog_JSONHandler/Nanos.svg | 73 ++++++ pages/handler/darvaza_zerolog.html | 180 ++++++++++++++ pages/handler/phsym_zerolog.html | 225 ++++++++++++++++++ pages/handler/samber_zap.html | 225 ++++++++++++++++++ pages/handler/samber_zerolog.html | 225 ++++++++++++++++++ pages/handler/slog_JSONHandler.html | 225 ++++++++++++++++++ pages/home.svg | 55 +++++ pages/index.html | 87 +++++++ pages/style.css | 77 ++++++ pages/test/Attributes.html | 161 +++++++++++++ pages/test/Big_Group.html | 161 +++++++++++++ pages/test/Disabled.html | 161 +++++++++++++ pages/test/Key_Values.html | 161 +++++++++++++ pages/test/Logging.html | 161 +++++++++++++ pages/test/Simple.html | 161 +++++++++++++ pages/test/Simple_Source.html | 161 +++++++++++++ pages/test/With_Attrs_Attributes.html | 152 ++++++++++++ pages/test/With_Attrs_Key_Values.html | 152 ++++++++++++ pages/test/With_Attrs_Simple.html | 152 ++++++++++++ pages/test/With_Group_Attributes.html | 152 ++++++++++++ pages/test/With_Group_Key_Values.html | 152 ++++++++++++ 88 files changed, 6270 insertions(+) create mode 100644 pages/chart/Attributes/GbPerSec.svg create mode 100644 pages/chart/Attributes/MemAllocs.svg create mode 100644 pages/chart/Attributes/MemBytes.svg create mode 100644 pages/chart/Attributes/Nanos.svg create mode 100644 pages/chart/Big_Group/GbPerSec.svg create mode 100644 pages/chart/Big_Group/MemAllocs.svg create mode 100644 pages/chart/Big_Group/MemBytes.svg create mode 100644 pages/chart/Big_Group/Nanos.svg create mode 100644 pages/chart/Disabled/GbPerSec.svg create mode 100644 pages/chart/Disabled/MemAllocs.svg create mode 100644 pages/chart/Disabled/MemBytes.svg create mode 100644 pages/chart/Disabled/Nanos.svg create mode 100644 pages/chart/Key_Values/GbPerSec.svg create mode 100644 pages/chart/Key_Values/MemAllocs.svg create mode 100644 pages/chart/Key_Values/MemBytes.svg create mode 100644 pages/chart/Key_Values/Nanos.svg create mode 100644 pages/chart/Logging/GbPerSec.svg create mode 100644 pages/chart/Logging/MemAllocs.svg create mode 100644 pages/chart/Logging/MemBytes.svg create mode 100644 pages/chart/Logging/Nanos.svg create mode 100644 pages/chart/Simple/GbPerSec.svg create mode 100644 pages/chart/Simple/MemAllocs.svg create mode 100644 pages/chart/Simple/MemBytes.svg create mode 100644 pages/chart/Simple/Nanos.svg create mode 100644 pages/chart/Simple_Source/GbPerSec.svg create mode 100644 pages/chart/Simple_Source/MemAllocs.svg create mode 100644 pages/chart/Simple_Source/MemBytes.svg create mode 100644 pages/chart/Simple_Source/Nanos.svg create mode 100644 pages/chart/With_Attrs_Attributes/GbPerSec.svg create mode 100644 pages/chart/With_Attrs_Attributes/MemAllocs.svg create mode 100644 pages/chart/With_Attrs_Attributes/MemBytes.svg create mode 100644 pages/chart/With_Attrs_Attributes/Nanos.svg create mode 100644 pages/chart/With_Attrs_Key_Values/GbPerSec.svg create mode 100644 pages/chart/With_Attrs_Key_Values/MemAllocs.svg create mode 100644 pages/chart/With_Attrs_Key_Values/MemBytes.svg create mode 100644 pages/chart/With_Attrs_Key_Values/Nanos.svg create mode 100644 pages/chart/With_Attrs_Simple/GbPerSec.svg create mode 100644 pages/chart/With_Attrs_Simple/MemAllocs.svg create mode 100644 pages/chart/With_Attrs_Simple/MemBytes.svg create mode 100644 pages/chart/With_Attrs_Simple/Nanos.svg create mode 100644 pages/chart/With_Group_Attributes/GbPerSec.svg create mode 100644 pages/chart/With_Group_Attributes/MemAllocs.svg create mode 100644 pages/chart/With_Group_Attributes/MemBytes.svg create mode 100644 pages/chart/With_Group_Attributes/Nanos.svg create mode 100644 pages/chart/With_Group_Key_Values/GbPerSec.svg create mode 100644 pages/chart/With_Group_Key_Values/MemAllocs.svg create mode 100644 pages/chart/With_Group_Key_Values/MemBytes.svg create mode 100644 pages/chart/With_Group_Key_Values/Nanos.svg create mode 100644 pages/chart/darvaza_zerolog/GbPerSec.svg create mode 100644 pages/chart/darvaza_zerolog/MemAllocs.svg create mode 100644 pages/chart/darvaza_zerolog/MemBytes.svg create mode 100644 pages/chart/darvaza_zerolog/Nanos.svg create mode 100644 pages/chart/phsym_zerolog/GbPerSec.svg create mode 100644 pages/chart/phsym_zerolog/MemAllocs.svg create mode 100644 pages/chart/phsym_zerolog/MemBytes.svg create mode 100644 pages/chart/phsym_zerolog/Nanos.svg create mode 100644 pages/chart/samber_zap/GbPerSec.svg create mode 100644 pages/chart/samber_zap/MemAllocs.svg create mode 100644 pages/chart/samber_zap/MemBytes.svg create mode 100644 pages/chart/samber_zap/Nanos.svg create mode 100644 pages/chart/samber_zerolog/GbPerSec.svg create mode 100644 pages/chart/samber_zerolog/MemAllocs.svg create mode 100644 pages/chart/samber_zerolog/MemBytes.svg create mode 100644 pages/chart/samber_zerolog/Nanos.svg create mode 100644 pages/chart/slog_JSONHandler/GbPerSec.svg create mode 100644 pages/chart/slog_JSONHandler/MemAllocs.svg create mode 100644 pages/chart/slog_JSONHandler/MemBytes.svg create mode 100644 pages/chart/slog_JSONHandler/Nanos.svg create mode 100644 pages/handler/darvaza_zerolog.html create mode 100644 pages/handler/phsym_zerolog.html create mode 100644 pages/handler/samber_zap.html create mode 100644 pages/handler/samber_zerolog.html create mode 100644 pages/handler/slog_JSONHandler.html create mode 100644 pages/home.svg create mode 100644 pages/index.html create mode 100644 pages/style.css create mode 100644 pages/test/Attributes.html create mode 100644 pages/test/Big_Group.html create mode 100644 pages/test/Disabled.html create mode 100644 pages/test/Key_Values.html create mode 100644 pages/test/Logging.html create mode 100644 pages/test/Simple.html create mode 100644 pages/test/Simple_Source.html create mode 100644 pages/test/With_Attrs_Attributes.html create mode 100644 pages/test/With_Attrs_Key_Values.html create mode 100644 pages/test/With_Attrs_Simple.html create mode 100644 pages/test/With_Group_Attributes.html create mode 100644 pages/test/With_Group_Key_Values.html diff --git a/pages/chart/Attributes/GbPerSec.svg b/pages/chart/Attributes/GbPerSec.svg new file mode 100644 index 00000000..2834b9c9 --- /dev/null +++ b/pages/chart/Attributes/GbPerSec.svg @@ -0,0 +1,38 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0182.2k364.4k546.6k \ No newline at end of file diff --git a/pages/chart/Attributes/MemAllocs.svg b/pages/chart/Attributes/MemAllocs.svg new file mode 100644 index 00000000..c9e93d63 --- /dev/null +++ b/pages/chart/Attributes/MemAllocs.svg @@ -0,0 +1,38 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0153045607590 \ No newline at end of file diff --git a/pages/chart/Attributes/MemBytes.svg b/pages/chart/Attributes/MemBytes.svg new file mode 100644 index 00000000..ec3a5ac3 --- /dev/null +++ b/pages/chart/Attributes/MemBytes.svg @@ -0,0 +1,38 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog02.36k4.72k7.08k \ No newline at end of file diff --git a/pages/chart/Attributes/Nanos.svg b/pages/chart/Attributes/Nanos.svg new file mode 100644 index 00000000..9c9b7f67 --- /dev/null +++ b/pages/chart/Attributes/Nanos.svg @@ -0,0 +1,38 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog01.88k3.76k5.64k \ No newline at end of file diff --git a/pages/chart/Big_Group/GbPerSec.svg b/pages/chart/Big_Group/GbPerSec.svg new file mode 100644 index 00000000..c4153515 --- /dev/null +++ b/pages/chart/Big_Group/GbPerSec.svg @@ -0,0 +1,38 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0160320480 \ No newline at end of file diff --git a/pages/chart/Big_Group/MemAllocs.svg b/pages/chart/Big_Group/MemAllocs.svg new file mode 100644 index 00000000..11fa0ee9 --- /dev/null +++ b/pages/chart/Big_Group/MemAllocs.svg @@ -0,0 +1,38 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog2.76k5.52k8.28k11.04k \ No newline at end of file diff --git a/pages/chart/Big_Group/MemBytes.svg b/pages/chart/Big_Group/MemBytes.svg new file mode 100644 index 00000000..b3115f0e --- /dev/null +++ b/pages/chart/Big_Group/MemBytes.svg @@ -0,0 +1,38 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog160.16k320.32k480.48k640.64k \ No newline at end of file diff --git a/pages/chart/Big_Group/Nanos.svg b/pages/chart/Big_Group/Nanos.svg new file mode 100644 index 00000000..c62dc6bb --- /dev/null +++ b/pages/chart/Big_Group/Nanos.svg @@ -0,0 +1,38 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog187.2k374.4k561.6k748.8k \ No newline at end of file diff --git a/pages/chart/Disabled/GbPerSec.svg b/pages/chart/Disabled/GbPerSec.svg new file mode 100644 index 00000000..f88ac056 --- /dev/null +++ b/pages/chart/Disabled/GbPerSec.svg @@ -0,0 +1,38 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0000000 \ No newline at end of file diff --git a/pages/chart/Disabled/MemAllocs.svg b/pages/chart/Disabled/MemAllocs.svg new file mode 100644 index 00000000..4dd32168 --- /dev/null +++ b/pages/chart/Disabled/MemAllocs.svg @@ -0,0 +1,38 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0000000 \ No newline at end of file diff --git a/pages/chart/Disabled/MemBytes.svg b/pages/chart/Disabled/MemBytes.svg new file mode 100644 index 00000000..6dcb1fe3 --- /dev/null +++ b/pages/chart/Disabled/MemBytes.svg @@ -0,0 +1,38 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0000000 \ No newline at end of file diff --git a/pages/chart/Disabled/Nanos.svg b/pages/chart/Disabled/Nanos.svg new file mode 100644 index 00000000..df0d8b2e --- /dev/null +++ b/pages/chart/Disabled/Nanos.svg @@ -0,0 +1,38 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog2345678 \ No newline at end of file diff --git a/pages/chart/Key_Values/GbPerSec.svg b/pages/chart/Key_Values/GbPerSec.svg new file mode 100644 index 00000000..5de735b2 --- /dev/null +++ b/pages/chart/Key_Values/GbPerSec.svg @@ -0,0 +1,38 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0144.08k288.16k432.24k \ No newline at end of file diff --git a/pages/chart/Key_Values/MemAllocs.svg b/pages/chart/Key_Values/MemAllocs.svg new file mode 100644 index 00000000..619b8519 --- /dev/null +++ b/pages/chart/Key_Values/MemAllocs.svg @@ -0,0 +1,38 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0153045607590 \ No newline at end of file diff --git a/pages/chart/Key_Values/MemBytes.svg b/pages/chart/Key_Values/MemBytes.svg new file mode 100644 index 00000000..20c3465c --- /dev/null +++ b/pages/chart/Key_Values/MemBytes.svg @@ -0,0 +1,38 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog02.4k4.8k7.2k \ No newline at end of file diff --git a/pages/chart/Key_Values/Nanos.svg b/pages/chart/Key_Values/Nanos.svg new file mode 100644 index 00000000..305100ca --- /dev/null +++ b/pages/chart/Key_Values/Nanos.svg @@ -0,0 +1,38 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog02.12k4.24k6.36k \ No newline at end of file diff --git a/pages/chart/Logging/GbPerSec.svg b/pages/chart/Logging/GbPerSec.svg new file mode 100644 index 00000000..0fab3124 --- /dev/null +++ b/pages/chart/Logging/GbPerSec.svg @@ -0,0 +1,38 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog013.44k26.88k40.32k \ No newline at end of file diff --git a/pages/chart/Logging/MemAllocs.svg b/pages/chart/Logging/MemAllocs.svg new file mode 100644 index 00000000..486aeda4 --- /dev/null +++ b/pages/chart/Logging/MemAllocs.svg @@ -0,0 +1,38 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog04408801.32k \ No newline at end of file diff --git a/pages/chart/Logging/MemBytes.svg b/pages/chart/Logging/MemBytes.svg new file mode 100644 index 00000000..56ed8ff8 --- /dev/null +++ b/pages/chart/Logging/MemBytes.svg @@ -0,0 +1,38 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog044.6k89.2k133.8k \ No newline at end of file diff --git a/pages/chart/Logging/Nanos.svg b/pages/chart/Logging/Nanos.svg new file mode 100644 index 00000000..517f1b53 --- /dev/null +++ b/pages/chart/Logging/Nanos.svg @@ -0,0 +1,38 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog033.36k66.72k100.08k \ No newline at end of file diff --git a/pages/chart/Simple/GbPerSec.svg b/pages/chart/Simple/GbPerSec.svg new file mode 100644 index 00000000..d04c98f2 --- /dev/null +++ b/pages/chart/Simple/GbPerSec.svg @@ -0,0 +1,38 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog272.94k818.82k1.36M1.91M \ No newline at end of file diff --git a/pages/chart/Simple/MemAllocs.svg b/pages/chart/Simple/MemAllocs.svg new file mode 100644 index 00000000..07f7b22c --- /dev/null +++ b/pages/chart/Simple/MemAllocs.svg @@ -0,0 +1,38 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0123456 \ No newline at end of file diff --git a/pages/chart/Simple/MemBytes.svg b/pages/chart/Simple/MemBytes.svg new file mode 100644 index 00000000..d3cea2f4 --- /dev/null +++ b/pages/chart/Simple/MemBytes.svg @@ -0,0 +1,38 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0160320480 \ No newline at end of file diff --git a/pages/chart/Simple/Nanos.svg b/pages/chart/Simple/Nanos.svg new file mode 100644 index 00000000..6b546149 --- /dev/null +++ b/pages/chart/Simple/Nanos.svg @@ -0,0 +1,38 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog180300420540 \ No newline at end of file diff --git a/pages/chart/Simple_Source/GbPerSec.svg b/pages/chart/Simple_Source/GbPerSec.svg new file mode 100644 index 00000000..9e28ebec --- /dev/null +++ b/pages/chart/Simple_Source/GbPerSec.svg @@ -0,0 +1,38 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog185.08k370.16k555.24k740.32k \ No newline at end of file diff --git a/pages/chart/Simple_Source/MemAllocs.svg b/pages/chart/Simple_Source/MemAllocs.svg new file mode 100644 index 00000000..8ab45e99 --- /dev/null +++ b/pages/chart/Simple_Source/MemAllocs.svg @@ -0,0 +1,38 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog2468101214 \ No newline at end of file diff --git a/pages/chart/Simple_Source/MemBytes.svg b/pages/chart/Simple_Source/MemBytes.svg new file mode 100644 index 00000000..18aeb161 --- /dev/null +++ b/pages/chart/Simple_Source/MemBytes.svg @@ -0,0 +1,38 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog1805409001.26k \ No newline at end of file diff --git a/pages/chart/Simple_Source/Nanos.svg b/pages/chart/Simple_Source/Nanos.svg new file mode 100644 index 00000000..7ecd751c --- /dev/null +++ b/pages/chart/Simple_Source/Nanos.svg @@ -0,0 +1,38 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog4808001.12k1.44k \ No newline at end of file diff --git a/pages/chart/With_Attrs_Attributes/GbPerSec.svg b/pages/chart/With_Attrs_Attributes/GbPerSec.svg new file mode 100644 index 00000000..73f5a9ab --- /dev/null +++ b/pages/chart/With_Attrs_Attributes/GbPerSec.svg @@ -0,0 +1,33 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0314.16k628.32k942.48k \ No newline at end of file diff --git a/pages/chart/With_Attrs_Attributes/MemAllocs.svg b/pages/chart/With_Attrs_Attributes/MemAllocs.svg new file mode 100644 index 00000000..b3080cd4 --- /dev/null +++ b/pages/chart/With_Attrs_Attributes/MemAllocs.svg @@ -0,0 +1,33 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04080120 \ No newline at end of file diff --git a/pages/chart/With_Attrs_Attributes/MemBytes.svg b/pages/chart/With_Attrs_Attributes/MemBytes.svg new file mode 100644 index 00000000..a089ebdd --- /dev/null +++ b/pages/chart/With_Attrs_Attributes/MemBytes.svg @@ -0,0 +1,33 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.4k8.8k13.2k \ No newline at end of file diff --git a/pages/chart/With_Attrs_Attributes/Nanos.svg b/pages/chart/With_Attrs_Attributes/Nanos.svg new file mode 100644 index 00000000..bafc73b0 --- /dev/null +++ b/pages/chart/With_Attrs_Attributes/Nanos.svg @@ -0,0 +1,33 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog03.68k7.36k11.04k \ No newline at end of file diff --git a/pages/chart/With_Attrs_Key_Values/GbPerSec.svg b/pages/chart/With_Attrs_Key_Values/GbPerSec.svg new file mode 100644 index 00000000..67466c7f --- /dev/null +++ b/pages/chart/With_Attrs_Key_Values/GbPerSec.svg @@ -0,0 +1,33 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0180.76k361.52k542.28k \ No newline at end of file diff --git a/pages/chart/With_Attrs_Key_Values/MemAllocs.svg b/pages/chart/With_Attrs_Key_Values/MemAllocs.svg new file mode 100644 index 00000000..7ef845b9 --- /dev/null +++ b/pages/chart/With_Attrs_Key_Values/MemAllocs.svg @@ -0,0 +1,33 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04080120 \ No newline at end of file diff --git a/pages/chart/With_Attrs_Key_Values/MemBytes.svg b/pages/chart/With_Attrs_Key_Values/MemBytes.svg new file mode 100644 index 00000000..3ee2956d --- /dev/null +++ b/pages/chart/With_Attrs_Key_Values/MemBytes.svg @@ -0,0 +1,33 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.44k8.88k13.32k \ No newline at end of file diff --git a/pages/chart/With_Attrs_Key_Values/Nanos.svg b/pages/chart/With_Attrs_Key_Values/Nanos.svg new file mode 100644 index 00000000..c3a13c68 --- /dev/null +++ b/pages/chart/With_Attrs_Key_Values/Nanos.svg @@ -0,0 +1,33 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog03.52k7.04k10.56k \ No newline at end of file diff --git a/pages/chart/With_Attrs_Simple/GbPerSec.svg b/pages/chart/With_Attrs_Simple/GbPerSec.svg new file mode 100644 index 00000000..cedf0504 --- /dev/null +++ b/pages/chart/With_Attrs_Simple/GbPerSec.svg @@ -0,0 +1,33 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog02.83M5.66M8.50M \ No newline at end of file diff --git a/pages/chart/With_Attrs_Simple/MemAllocs.svg b/pages/chart/With_Attrs_Simple/MemAllocs.svg new file mode 100644 index 00000000..0ea0eaa1 --- /dev/null +++ b/pages/chart/With_Attrs_Simple/MemAllocs.svg @@ -0,0 +1,33 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0102030405060 \ No newline at end of file diff --git a/pages/chart/With_Attrs_Simple/MemBytes.svg b/pages/chart/With_Attrs_Simple/MemBytes.svg new file mode 100644 index 00000000..d827f541 --- /dev/null +++ b/pages/chart/With_Attrs_Simple/MemBytes.svg @@ -0,0 +1,33 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog02.08k4.16k6.24k \ No newline at end of file diff --git a/pages/chart/With_Attrs_Simple/Nanos.svg b/pages/chart/With_Attrs_Simple/Nanos.svg new file mode 100644 index 00000000..6a5b9840 --- /dev/null +++ b/pages/chart/With_Attrs_Simple/Nanos.svg @@ -0,0 +1,33 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog02.36k4.72k7.08k \ No newline at end of file diff --git a/pages/chart/With_Group_Attributes/GbPerSec.svg b/pages/chart/With_Group_Attributes/GbPerSec.svg new file mode 100644 index 00000000..6d0b01ff --- /dev/null +++ b/pages/chart/With_Group_Attributes/GbPerSec.svg @@ -0,0 +1,33 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0156.56k313.12k469.68k \ No newline at end of file diff --git a/pages/chart/With_Group_Attributes/MemAllocs.svg b/pages/chart/With_Group_Attributes/MemAllocs.svg new file mode 100644 index 00000000..72c6ca8b --- /dev/null +++ b/pages/chart/With_Group_Attributes/MemAllocs.svg @@ -0,0 +1,33 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog060120180 \ No newline at end of file diff --git a/pages/chart/With_Group_Attributes/MemBytes.svg b/pages/chart/With_Group_Attributes/MemBytes.svg new file mode 100644 index 00000000..8e1d40af --- /dev/null +++ b/pages/chart/With_Group_Attributes/MemBytes.svg @@ -0,0 +1,33 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.68k9.36k14.04k \ No newline at end of file diff --git a/pages/chart/With_Group_Attributes/Nanos.svg b/pages/chart/With_Group_Attributes/Nanos.svg new file mode 100644 index 00000000..aaa1557f --- /dev/null +++ b/pages/chart/With_Group_Attributes/Nanos.svg @@ -0,0 +1,33 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.28k8.56k12.84k \ No newline at end of file diff --git a/pages/chart/With_Group_Key_Values/GbPerSec.svg b/pages/chart/With_Group_Key_Values/GbPerSec.svg new file mode 100644 index 00000000..1aec812e --- /dev/null +++ b/pages/chart/With_Group_Key_Values/GbPerSec.svg @@ -0,0 +1,33 @@ +\nGigabytes processed per secondSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0122.44k244.88k367.32k \ No newline at end of file diff --git a/pages/chart/With_Group_Key_Values/MemAllocs.svg b/pages/chart/With_Group_Key_Values/MemAllocs.svg new file mode 100644 index 00000000..8777da2d --- /dev/null +++ b/pages/chart/With_Group_Key_Values/MemAllocs.svg @@ -0,0 +1,33 @@ +\nMemory allocations per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog060120180 \ No newline at end of file diff --git a/pages/chart/With_Group_Key_Values/MemBytes.svg b/pages/chart/With_Group_Key_Values/MemBytes.svg new file mode 100644 index 00000000..cb64f8ed --- /dev/null +++ b/pages/chart/With_Group_Key_Values/MemBytes.svg @@ -0,0 +1,33 @@ +\nBytes allocated per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.72k9.44k14.16k \ No newline at end of file diff --git a/pages/chart/With_Group_Key_Values/Nanos.svg b/pages/chart/With_Group_Key_Values/Nanos.svg new file mode 100644 index 00000000..463707ce --- /dev/null +++ b/pages/chart/With_Group_Key_Values/Nanos.svg @@ -0,0 +1,33 @@ +\nNanoseconds per operationSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.52k9.04k13.56k \ No newline at end of file diff --git a/pages/chart/darvaza_zerolog/GbPerSec.svg b/pages/chart/darvaza_zerolog/GbPerSec.svg new file mode 100644 index 00000000..a5e2056e --- /dev/null +++ b/pages/chart/darvaza_zerolog/GbPerSec.svg @@ -0,0 +1,48 @@ +\nGigabytes processed per secondSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0000000 \ No newline at end of file diff --git a/pages/chart/darvaza_zerolog/MemAllocs.svg b/pages/chart/darvaza_zerolog/MemAllocs.svg new file mode 100644 index 00000000..9c8423ae --- /dev/null +++ b/pages/chart/darvaza_zerolog/MemAllocs.svg @@ -0,0 +1,48 @@ +\nMemory allocations per operationSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes03.84k7.68k11.52k \ No newline at end of file diff --git a/pages/chart/darvaza_zerolog/MemBytes.svg b/pages/chart/darvaza_zerolog/MemBytes.svg new file mode 100644 index 00000000..0861d926 --- /dev/null +++ b/pages/chart/darvaza_zerolog/MemBytes.svg @@ -0,0 +1,48 @@ +\nBytes allocated per operationSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0236.88k473.76k710.64k \ No newline at end of file diff --git a/pages/chart/darvaza_zerolog/Nanos.svg b/pages/chart/darvaza_zerolog/Nanos.svg new file mode 100644 index 00000000..66905dca --- /dev/null +++ b/pages/chart/darvaza_zerolog/Nanos.svg @@ -0,0 +1,48 @@ +\nNanoseconds per operationSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0208.68k417.36k626.04k \ No newline at end of file diff --git a/pages/chart/phsym_zerolog/GbPerSec.svg b/pages/chart/phsym_zerolog/GbPerSec.svg new file mode 100644 index 00000000..2aaa192b --- /dev/null +++ b/pages/chart/phsym_zerolog/GbPerSec.svg @@ -0,0 +1,73 @@ +\nGigabytes processed per secondWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0000000 \ No newline at end of file diff --git a/pages/chart/phsym_zerolog/MemAllocs.svg b/pages/chart/phsym_zerolog/MemAllocs.svg new file mode 100644 index 00000000..d5ce1dc6 --- /dev/null +++ b/pages/chart/phsym_zerolog/MemAllocs.svg @@ -0,0 +1,73 @@ +\nMemory allocations per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes01.44k2.88k4.32k \ No newline at end of file diff --git a/pages/chart/phsym_zerolog/MemBytes.svg b/pages/chart/phsym_zerolog/MemBytes.svg new file mode 100644 index 00000000..8bf95ba7 --- /dev/null +++ b/pages/chart/phsym_zerolog/MemBytes.svg @@ -0,0 +1,73 @@ +\nBytes allocated per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0140.64k281.28k \ No newline at end of file diff --git a/pages/chart/phsym_zerolog/Nanos.svg b/pages/chart/phsym_zerolog/Nanos.svg new file mode 100644 index 00000000..e5ecdace --- /dev/null +++ b/pages/chart/phsym_zerolog/Nanos.svg @@ -0,0 +1,73 @@ +\nNanoseconds per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0135.48k270.96k \ No newline at end of file diff --git a/pages/chart/samber_zap/GbPerSec.svg b/pages/chart/samber_zap/GbPerSec.svg new file mode 100644 index 00000000..2aaa192b --- /dev/null +++ b/pages/chart/samber_zap/GbPerSec.svg @@ -0,0 +1,73 @@ +\nGigabytes processed per secondWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0000000 \ No newline at end of file diff --git a/pages/chart/samber_zap/MemAllocs.svg b/pages/chart/samber_zap/MemAllocs.svg new file mode 100644 index 00000000..4675f3c8 --- /dev/null +++ b/pages/chart/samber_zap/MemAllocs.svg @@ -0,0 +1,73 @@ +\nMemory allocations per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes05.88k11.76k \ No newline at end of file diff --git a/pages/chart/samber_zap/MemBytes.svg b/pages/chart/samber_zap/MemBytes.svg new file mode 100644 index 00000000..57e79d73 --- /dev/null +++ b/pages/chart/samber_zap/MemBytes.svg @@ -0,0 +1,73 @@ +\nBytes allocated per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0352.86k705.72k \ No newline at end of file diff --git a/pages/chart/samber_zap/Nanos.svg b/pages/chart/samber_zap/Nanos.svg new file mode 100644 index 00000000..b247c4b2 --- /dev/null +++ b/pages/chart/samber_zap/Nanos.svg @@ -0,0 +1,73 @@ +\nNanoseconds per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0384.48k768.96k \ No newline at end of file diff --git a/pages/chart/samber_zerolog/GbPerSec.svg b/pages/chart/samber_zerolog/GbPerSec.svg new file mode 100644 index 00000000..2aaa192b --- /dev/null +++ b/pages/chart/samber_zerolog/GbPerSec.svg @@ -0,0 +1,73 @@ +\nGigabytes processed per secondWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0000000 \ No newline at end of file diff --git a/pages/chart/samber_zerolog/MemAllocs.svg b/pages/chart/samber_zerolog/MemAllocs.svg new file mode 100644 index 00000000..cb089e96 --- /dev/null +++ b/pages/chart/samber_zerolog/MemAllocs.svg @@ -0,0 +1,73 @@ +\nMemory allocations per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes05.76k11.52k \ No newline at end of file diff --git a/pages/chart/samber_zerolog/MemBytes.svg b/pages/chart/samber_zerolog/MemBytes.svg new file mode 100644 index 00000000..9df83505 --- /dev/null +++ b/pages/chart/samber_zerolog/MemBytes.svg @@ -0,0 +1,73 @@ +\nBytes allocated per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0353.52k707.04k \ No newline at end of file diff --git a/pages/chart/samber_zerolog/Nanos.svg b/pages/chart/samber_zerolog/Nanos.svg new file mode 100644 index 00000000..f0b34814 --- /dev/null +++ b/pages/chart/samber_zerolog/Nanos.svg @@ -0,0 +1,73 @@ +\nNanoseconds per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0391.62k783.24k \ No newline at end of file diff --git a/pages/chart/slog_JSONHandler/GbPerSec.svg b/pages/chart/slog_JSONHandler/GbPerSec.svg new file mode 100644 index 00000000..2aaa192b --- /dev/null +++ b/pages/chart/slog_JSONHandler/GbPerSec.svg @@ -0,0 +1,73 @@ +\nGigabytes processed per secondWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0000000 \ No newline at end of file diff --git a/pages/chart/slog_JSONHandler/MemAllocs.svg b/pages/chart/slog_JSONHandler/MemAllocs.svg new file mode 100644 index 00000000..bce9d565 --- /dev/null +++ b/pages/chart/slog_JSONHandler/MemAllocs.svg @@ -0,0 +1,73 @@ +\nMemory allocations per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes01.44k2.88k4.32k \ No newline at end of file diff --git a/pages/chart/slog_JSONHandler/MemBytes.svg b/pages/chart/slog_JSONHandler/MemBytes.svg new file mode 100644 index 00000000..98158348 --- /dev/null +++ b/pages/chart/slog_JSONHandler/MemBytes.svg @@ -0,0 +1,73 @@ +\nBytes allocated per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0158.88k317.76k \ No newline at end of file diff --git a/pages/chart/slog_JSONHandler/Nanos.svg b/pages/chart/slog_JSONHandler/Nanos.svg new file mode 100644 index 00000000..16f06180 --- /dev/null +++ b/pages/chart/slog_JSONHandler/Nanos.svg @@ -0,0 +1,73 @@ +\nNanoseconds per operationWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0201.72k403.44k \ No newline at end of file diff --git a/pages/handler/darvaza_zerolog.html b/pages/handler/darvaza_zerolog.html new file mode 100644 index 00000000..3e587f7f --- /dev/null +++ b/pages/handler/darvaza_zerolog.html @@ -0,0 +1,180 @@ + + + Benchmark Data + + + + +
- Home + Home

Handler {{ .Data.HandlerName .Handler }}

diff --git a/cmd/server/embed/test.tmpl b/cmd/server/embed/test.tmpl index 7d30a413..d81bbb65 100644 --- a/cmd/server/embed/test.tmpl +++ b/cmd/server/embed/test.tmpl @@ -8,7 +8,7 @@ diff --git a/cmd/server/embed/root.tmpl b/cmd/server/embed/root.tmpl index 5a0601bc..22af1438 100644 --- a/cmd/server/embed/root.tmpl +++ b/cmd/server/embed/root.tmpl @@ -11,7 +11,7 @@ Tests
- Home + Home

Test {{ .Data.TestName .Test }}

diff --git a/cmd/server/server.go b/cmd/server/server.go index ca193b8f..6e712967 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -59,7 +59,9 @@ func main() { } router := gin.Default() - router.GET("/", pageFunction(pageRoot)) + rootPageFn := pageFunction(pageRoot) + router.GET("/", rootPageFn) + router.GET("/index.html", rootPageFn) router.GET("/test/:tag", pageFunction(pageTest)) router.GET("/handler/:tag", pageFunction(pageHandler)) router.GET("/chart/:tag/:item", chartFunction) From 0e693e6e0989efd504364500ed1dc595dc83f8b7 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 12:27:25 -0800 Subject: [PATCH 03/22] Add appropriate suffixes to server products --- cmd/server/embed/choices.tmpl | 4 ++-- cmd/server/embed/handler.tmpl | 8 ++++---- cmd/server/embed/root.tmpl | 4 ++-- cmd/server/embed/test.tmpl | 8 ++++---- cmd/server/server.go | 14 +++++++++----- 5 files changed, 21 insertions(+), 17 deletions(-) diff --git a/cmd/server/embed/choices.tmpl b/cmd/server/embed/choices.tmpl index 76249925..b6e7dfec 100644 --- a/cmd/server/embed/choices.tmpl +++ b/cmd/server/embed/choices.tmpl @@ -1,10 +1,10 @@ diff --git a/cmd/server/embed/handler.tmpl b/cmd/server/embed/handler.tmpl index ab87e5b4..0eb8b2c2 100644 --- a/cmd/server/embed/handler.tmpl +++ b/cmd/server/embed/handler.tmpl @@ -43,12 +43,12 @@ - - + + - - + +
{{ .Data.HandlerName .Handler }} Ns/Op{{ .Data.HandlerName .Handler }} Allocs/Op{{ .Data.HandlerName .Handler }} Ns/Op{{ .Data.HandlerName .Handler }} Allocs/Op
{{ .Data.HandlerName .Handler }} Bytes/Op{{ .Data.HandlerName .Handler }} GB/Sec{{ .Data.HandlerName .Handler }} Bytes/Op{{ .Data.HandlerName .Handler }} GB/Sec
{{ range .Data.TestTags }} - + {{ end }}
{{ $.Data.TestName . }}
{{ $.Data.TestName . }}
@@ -20,7 +20,7 @@ Handlers {{ range .Data.HandlerTags }} - + {{ end }}
{{ $.Data.HandlerName . }}
{{ $.Data.HandlerName . }}
diff --git a/cmd/server/embed/test.tmpl b/cmd/server/embed/test.tmpl index d81bbb65..02b88a2d 100644 --- a/cmd/server/embed/test.tmpl +++ b/cmd/server/embed/test.tmpl @@ -43,12 +43,12 @@
- - + + - - + +
{{ .Data.TestName .Test }} Ns/Op{{ .Data.TestName .Test }} Allocs/Op{{ .Data.TestName .Test }} Ns/Op{{ .Data.TestName .Test }} Allocs/Op
{{ .Data.TestName .Test }} Bytes/Op{{ .Data.TestName .Test }} GB/Sec{{ .Data.TestName .Test }} Bytes/Op{{ .Data.TestName .Test }} GB/Sec
+ + + + + + + + + + +
+ Home +

Handler Darvaza Zerolog

+
+ + + + + + + + + + +
Test: + + + +
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BenchmarkRunsNs/OpAllocs/OpBytes/OpGB/Sec
Attributes342,7863,663.00584,9790.00
Big Group2,020569,022.0010,464645,9530.00
Disabled500,431,2362.43000.00
Key Values255,5175,451.00595,3630.00
Logging17,12270,924.001,17381,6950.00
Simple2,828,911411.2033600.00
Simple Source1,000,0001,169.00121,2420.00
+
+ + + + + + + + + +
Darvaza Zerolog Ns/OpDarvaza Zerolog Allocs/Op
Darvaza Zerolog Bytes/OpDarvaza Zerolog GB/Sec
+
+ + + diff --git a/pages/handler/phsym_zerolog.html b/pages/handler/phsym_zerolog.html new file mode 100644 index 00000000..53c98aab --- /dev/null +++ b/pages/handler/phsym_zerolog.html @@ -0,0 +1,225 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Handler Phsym Zerolog

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BenchmarkRunsNs/OpAllocs/OpBytes/OpGB/Sec
Attributes1,301,8631,043.0022720.00
Big Group5,037246,222.003,869255,6570.00
Disabled447,516,2492.65000.00
Key Values1,000,0001,010.0036570.00
Logging71,31716,844.00000.00
Simple5,075,420232.20000.00
Simple Source2,463,811633.3043280.00
With Attrs Attributes1,165,8631,031.0022720.00
With Attrs Key Values1,049,1921,606.0036570.00
With Attrs Simple4,586,815259.50000.00
With Group Attributes1,091,0361,067.0035610.00
With Group Key Values1,000,0001,250.0049450.00
+
+ + + + + + + + + +
Phsym Zerolog Ns/OpPhsym Zerolog Allocs/Op
Phsym Zerolog Bytes/OpPhsym Zerolog GB/Sec
+
+ + + diff --git a/pages/handler/samber_zap.html b/pages/handler/samber_zap.html new file mode 100644 index 00000000..29ce36eb --- /dev/null +++ b/pages/handler/samber_zap.html @@ -0,0 +1,225 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Handler Samber Zap

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BenchmarkRunsNs/OpAllocs/OpBytes/OpGB/Sec
Attributes182,8935,936.00496,6400.00
Big Group1,712699,008.0010,612641,4650.00
Disabled377,747,3833.20000.00
Key Values179,5706,568.00507,0250.00
Logging11,058104,667.001,021121,5310.00
Simple2,378,572499.3023370.00
Simple Source939,1801,303.00101,1410.00
With Attrs Attributes112,52610,867.007012,1700.00
With Attrs Key Values103,81610,806.007112,5630.00
With Attrs Simple215,0606,609.00445,5940.00
With Group Attributes96,53612,385.0012212,9300.00
With Group Key Values90,21912,930.0012313,3120.00
+
+ + + + + + + + + +
Samber Zap Ns/OpSamber Zap Allocs/Op
Samber Zap Bytes/OpSamber Zap GB/Sec
+
+ + + diff --git a/pages/handler/samber_zerolog.html b/pages/handler/samber_zerolog.html new file mode 100644 index 00000000..cce15754 --- /dev/null +++ b/pages/handler/samber_zerolog.html @@ -0,0 +1,225 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Handler Samber Zerolog

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BenchmarkRunsNs/OpAllocs/OpBytes/OpGB/Sec
Attributes193,9545,324.00584,9810.00
Big Group1,580711,938.0010,448642,6660.00
Disabled399,546,1602.92000.00
Key Values171,0975,853.00595,3650.00
Logging14,17085,838.001,17381,7050.00
Simple2,572,143451.8033600.00
Simple Source970,1081,223.00121,2430.00
With Attrs Attributes132,3978,874.00868,7310.00
With Attrs Key Values125,0319,381.00879,1160.00
With Attrs Simple263,1334,647.00533,9370.00
With Group Attributes90,32212,539.0012413,1120.00
With Group Key Values90,32113,274.0012513,4960.00
+
+ + + + + + + + + +
Samber Zerolog Ns/OpSamber Zerolog Allocs/Op
Samber Zerolog Bytes/OpSamber Zerolog GB/Sec
+
+ + + diff --git a/pages/handler/slog_JSONHandler.html b/pages/handler/slog_JSONHandler.html new file mode 100644 index 00000000..48bfbe79 --- /dev/null +++ b/pages/handler/slog_JSONHandler.html @@ -0,0 +1,225 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Handler Slog JSONHandler

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BenchmarkRunsNs/OpAllocs/OpBytes/OpGB/Sec
Attributes792,9381,422.0064720.00
Big Group3,622366,731.003,843288,8250.00
Disabled380,096,7913.59000.00
Key Values596,1141,873.0078570.00
Logging40,63430,199.00000.00
Simple3,118,756402.90000.00
Simple Source1,000,0001,008.0065680.00
With Attrs Attributes766,3361,527.0064720.00
With Attrs Key Values599,7912,317.0078580.00
With Attrs Simple2,989,066408.70000.00
With Group Attributes827,4501,511.0064720.00
With Group Key Values630,0791,697.0078570.00
+
+ + + + + + + + + +
Slog JSONHandler Ns/OpSlog JSONHandler Allocs/Op
Slog JSONHandler Bytes/OpSlog JSONHandler GB/Sec
+
+ + + diff --git a/pages/home.svg b/pages/home.svg new file mode 100644 index 00000000..0e32e2d1 --- /dev/null +++ b/pages/home.svg @@ -0,0 +1,55 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + diff --git a/pages/index.html b/pages/index.html new file mode 100644 index 00000000..a2ed3f11 --- /dev/null +++ b/pages/index.html @@ -0,0 +1,87 @@ + + + Benchmarks + + + + + + + + + +
+
+ Tests + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attributes
Big Group
Disabled
Key Values
Logging
Simple
Simple Source
With Attrs Attributes
With Attrs Key Values
With Attrs Simple
With Group Attributes
With Group Key Values
+
+
+
+ Handlers + + + + + + + + + + + + +
Darvaza Zerolog
Phsym Zerolog
Samber Zap
Samber Zerolog
Slog JSONHandler
+
+
+
+Warnings for darvaza/zerolog:
+  Administrative
+     5 [NoHandlerCreation] Test depends on unavailable handler creation
+         Benchmark_With_Attrs_Attributes
+         Benchmark_With_Attrs_Key_Values
+         Benchmark_With_Attrs_Simple
+         Benchmark_With_Group_Attributes
+         Benchmark_With_Group_Key_Values
+
+Warnings for phsym/zeroslog:
+  Implied
+     1 [SourceKey] Source data not logged when AddSource flag set
+         Benchmark_slog_phsym_zerolog: Simple_Source: no source key
+           {"level":"info","caller":"/home/marc/work/go/src/github.com/madkins23/go-slog/bench/tests/benchmarks.go:69","time":"2024-02-12T09:00:09-08:00","message":"This is a message"}
+
+ Handlers by warning:
+  Implied
+    [SourceKey] Source data not logged when AddSource flag set
+      phsym/zeroslog
+  Administrative
+    [NoHandlerCreation] Test depends on unavailable handler creation
+      darvaza/zerolog
+
+ + diff --git a/pages/style.css b/pages/style.css new file mode 100644 index 00000000..33abbb0c --- /dev/null +++ b/pages/style.css @@ -0,0 +1,77 @@ +body { + background-color: gray; + justify-content: center; + height: fit-content; +} + +fieldset { + margin-left: auto; + margin-right: auto; +} + +form.choice { + margin-bottom: 0; +} + +h1.home { + display: inline-block; +} + +img.chart { + border: 2px inset white; +} + +img.home { + display: inline-block; + height: 2em; + width: 2em; + vertical-align: text-bottom; +} + +legend { + font-weight: bold; + padding: 0.5em; +} + +table.data { + margin: 5px; + padding: 5px; +} + +table.data td, th { + margin: 5px; + padding: 5px; +} + +table.data td { + border: 2px inset darkgray; +} + +table.root { + margin-left: auto; + margin-right: auto; +} + +table.root td { + vertical-align: top; +} + +table.root td.warnings { + background-color: white; + border: 2px inset white; + overflow: scroll; +} + +table.root td.warnings pre { + width: 800; +} + +table.top { + margin-left: auto; + margin-right: auto; +} + +.number { + font-family: monospace; + text-align: right; +} diff --git a/pages/test/Attributes.html b/pages/test/Attributes.html new file mode 100644 index 00000000..2f1c31e0 --- /dev/null +++ b/pages/test/Attributes.html @@ -0,0 +1,161 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test Attributes

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Darvaza Zerolog342,7863,663.00584,97937,996.85
Phsym Zerolog1,301,8631,043.002272506,897.70
Samber Zap182,8935,936.00496,64012,293.98
Samber Zerolog193,9545,324.00584,98114,791.12
Slog JSONHandler792,9381,422.006472238,635.29
+
+ + + + + + + + + +
Attributes Ns/OpAttributes Allocs/Op
Attributes Bytes/OpAttributes GB/Sec
+
+ + diff --git a/pages/test/Big_Group.html b/pages/test/Big_Group.html new file mode 100644 index 00000000..d4829ee9 --- /dev/null +++ b/pages/test/Big_Group.html @@ -0,0 +1,161 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test Big Group

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Darvaza Zerolog2,020569,022.0010,464645,95363.24
Phsym Zerolog5,037246,222.003,869255,657366.81
Samber Zap1,712699,008.0010,612641,46544.22
Samber Zerolog1,580711,938.0010,448642,66639.48
Slog JSONHandler3,622366,731.003,843288,825175.82
+
+ + + + + + + + + +
Big Group Ns/OpBig Group Allocs/Op
Big Group Bytes/OpBig Group GB/Sec
+
+ + diff --git a/pages/test/Disabled.html b/pages/test/Disabled.html new file mode 100644 index 00000000..124ffe0d --- /dev/null +++ b/pages/test/Disabled.html @@ -0,0 +1,161 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test Disabled

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Darvaza Zerolog500,431,2362.43000.00
Phsym Zerolog447,516,2492.65000.00
Samber Zap377,747,3833.20000.00
Samber Zerolog399,546,1602.92000.00
Slog JSONHandler380,096,7913.59000.00
+
+ + + + + + + + + +
Disabled Ns/OpDisabled Allocs/Op
Disabled Bytes/OpDisabled GB/Sec
+
+ + diff --git a/pages/test/Key_Values.html b/pages/test/Key_Values.html new file mode 100644 index 00000000..7bbbe2a5 --- /dev/null +++ b/pages/test/Key_Values.html @@ -0,0 +1,161 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test Key Values

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Darvaza Zerolog255,5175,451.00595,36319,030.82
Phsym Zerolog1,000,0001,010.003657401,800.49
Samber Zap179,5706,568.00507,02510,907.93
Samber Zerolog171,0975,853.00595,36511,867.81
Slog JSONHandler596,1141,873.007857136,190.53
+
+ + + + + + + + + +
Key Values Ns/OpKey Values Allocs/Op
Key Values Bytes/OpKey Values GB/Sec
+
+ + diff --git a/pages/test/Logging.html b/pages/test/Logging.html new file mode 100644 index 00000000..fa15b0d3 --- /dev/null +++ b/pages/test/Logging.html @@ -0,0 +1,161 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test Logging

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Darvaza Zerolog17,12270,924.001,17381,6952,131.91
Phsym Zerolog71,31716,844.000037,389.80
Samber Zap11,058104,667.001,021121,531911.43
Samber Zerolog14,17085,838.001,17381,7051,457.82
Slog JSONHandler40,63430,199.000012,286.50
+
+ + + + + + + + + +
Logging Ns/OpLogging Allocs/Op
Logging Bytes/OpLogging GB/Sec
+
+ + diff --git a/pages/test/Simple.html b/pages/test/Simple.html new file mode 100644 index 00000000..d6bddf96 --- /dev/null +++ b/pages/test/Simple.html @@ -0,0 +1,161 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test Simple

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Darvaza Zerolog2,828,911411.203360564,080.92
Phsym Zerolog5,075,420232.20001,792,717.73
Samber Zap2,378,572499.302337371,542.67
Samber Zerolog2,572,143451.803360466,866.01
Slog JSONHandler3,118,756402.9000680,372.13
+
+ + + + + + + + + +
Simple Ns/OpSimple Allocs/Op
Simple Bytes/OpSimple GB/Sec
+
+ + diff --git a/pages/test/Simple_Source.html b/pages/test/Simple_Source.html new file mode 100644 index 00000000..2990e9d8 --- /dev/null +++ b/pages/test/Simple_Source.html @@ -0,0 +1,161 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test Simple Source

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Darvaza Zerolog1,000,0001,169.00121,242253,162.17
Phsym Zerolog2,463,811633.304328676,938.06
Samber Zap939,1801,303.00101,141210,520.38
Samber Zerolog970,1081,223.00121,243234,853.54
Slog JSONHandler1,000,0001,008.006568299,611.49
+
+ + + + + + + + + +
Simple Source Ns/OpSimple Source Allocs/Op
Simple Source Bytes/OpSimple Source GB/Sec
+
+ + diff --git a/pages/test/With_Attrs_Attributes.html b/pages/test/With_Attrs_Attributes.html new file mode 100644 index 00000000..31a6626a --- /dev/null +++ b/pages/test/With_Attrs_Attributes.html @@ -0,0 +1,152 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test With Attrs Attributes

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Phsym Zerolog1,165,8631,031.002272862,053.02
Samber Zap112,52610,867.007012,1706,450.94
Samber Zerolog132,3978,874.00868,7319,444.05
Slog JSONHandler766,3361,527.006472401,324.10
+
+ + + + + + + + + +
With Attrs Attributes Ns/OpWith Attrs Attributes Allocs/Op
With Attrs Attributes Bytes/OpWith Attrs Attributes GB/Sec
+
+ + diff --git a/pages/test/With_Attrs_Key_Values.html b/pages/test/With_Attrs_Key_Values.html new file mode 100644 index 00000000..ccdc6e8b --- /dev/null +++ b/pages/test/With_Attrs_Key_Values.html @@ -0,0 +1,152 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test With Attrs Key Values

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Phsym Zerolog1,049,1921,606.003657497,820.55
Samber Zap103,81610,806.007112,5635,985.58
Samber Zerolog125,0319,381.00879,1168,436.75
Slog JSONHandler599,7912,317.007858207,103.01
+
+ + + + + + + + + +
With Attrs Key Values Ns/OpWith Attrs Key Values Allocs/Op
With Attrs Key Values Bytes/OpWith Attrs Key Values GB/Sec
+
+ + diff --git a/pages/test/With_Attrs_Simple.html b/pages/test/With_Attrs_Simple.html new file mode 100644 index 00000000..c69d98f6 --- /dev/null +++ b/pages/test/With_Attrs_Simple.html @@ -0,0 +1,152 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test With Attrs Simple

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Phsym Zerolog4,586,815259.50007,740,973.23
Samber Zap215,0606,609.00445,59414,025.83
Samber Zerolog263,1334,647.00533,93724,801.14
Slog JSONHandler2,989,066408.70003,363,263.05
+
+ + + + + + + + + +
With Attrs Simple Ns/OpWith Attrs Simple Allocs/Op
With Attrs Simple Bytes/OpWith Attrs Simple GB/Sec
+
+ + diff --git a/pages/test/With_Group_Attributes.html b/pages/test/With_Group_Attributes.html new file mode 100644 index 00000000..803b0e62 --- /dev/null +++ b/pages/test/With_Group_Attributes.html @@ -0,0 +1,152 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test With Group Attributes

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Phsym Zerolog1,091,0361,067.003561429,268.71
Samber Zap96,53612,385.0012212,9303,024.37
Samber Zerolog90,32212,539.0012413,1122,823.76
Slog JSONHandler827,4501,511.006472241,966.37
+
+ + + + + + + + + +
With Group Attributes Ns/OpWith Group Attributes Allocs/Op
With Group Attributes Bytes/OpWith Group Attributes GB/Sec
+
+ + diff --git a/pages/test/With_Group_Key_Values.html b/pages/test/With_Group_Key_Values.html new file mode 100644 index 00000000..f1f2a230 --- /dev/null +++ b/pages/test/With_Group_Key_Values.html @@ -0,0 +1,152 @@ + + + Benchmark Data + + + + + + + + + + + + + + + +
+ Home +

Test With Group Key Values

+
+ + + + + + + + + + +
Test: +
+ +
+
Handler: +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HandlerRunsNs/OpAllocs/OpBytes/OpGB/Sec
Phsym Zerolog1,000,0001,250.004945336,011.95
Samber Zap90,21912,930.0012313,3122,707.19
Samber Zerolog90,32113,274.0012513,4962,667.25
Slog JSONHandler630,0791,697.007857164,092.06
+
+ + + + + + + + + +
With Group Key Values Ns/OpWith Group Key Values Allocs/Op
With Group Key Values Bytes/OpWith Group Key Values GB/Sec
+
+ + From e260cc3be77d2d924f3b7e1b5cf1863ead8010aa Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 15:59:57 -0800 Subject: [PATCH 06/22] Move pages directory to docs because github only supports that one --- .github/workflows/pages.yml | 35 +++++++++++++++++++ {pages => docs}/chart/Attributes/GbPerSec.svg | 0 .../chart/Attributes/MemAllocs.svg | 0 {pages => docs}/chart/Attributes/MemBytes.svg | 0 {pages => docs}/chart/Attributes/Nanos.svg | 0 {pages => docs}/chart/Big_Group/GbPerSec.svg | 0 {pages => docs}/chart/Big_Group/MemAllocs.svg | 0 {pages => docs}/chart/Big_Group/MemBytes.svg | 0 {pages => docs}/chart/Big_Group/Nanos.svg | 0 {pages => docs}/chart/Disabled/GbPerSec.svg | 0 {pages => docs}/chart/Disabled/MemAllocs.svg | 0 {pages => docs}/chart/Disabled/MemBytes.svg | 0 {pages => docs}/chart/Disabled/Nanos.svg | 0 {pages => docs}/chart/Key_Values/GbPerSec.svg | 0 .../chart/Key_Values/MemAllocs.svg | 0 {pages => docs}/chart/Key_Values/MemBytes.svg | 0 {pages => docs}/chart/Key_Values/Nanos.svg | 0 {pages => docs}/chart/Logging/GbPerSec.svg | 0 {pages => docs}/chart/Logging/MemAllocs.svg | 0 {pages => docs}/chart/Logging/MemBytes.svg | 0 {pages => docs}/chart/Logging/Nanos.svg | 0 {pages => docs}/chart/Simple/GbPerSec.svg | 0 {pages => docs}/chart/Simple/MemAllocs.svg | 0 {pages => docs}/chart/Simple/MemBytes.svg | 0 {pages => docs}/chart/Simple/Nanos.svg | 0 .../chart/Simple_Source/GbPerSec.svg | 0 .../chart/Simple_Source/MemAllocs.svg | 0 .../chart/Simple_Source/MemBytes.svg | 0 {pages => docs}/chart/Simple_Source/Nanos.svg | 0 .../chart/With_Attrs_Attributes/GbPerSec.svg | 0 .../chart/With_Attrs_Attributes/MemAllocs.svg | 0 .../chart/With_Attrs_Attributes/MemBytes.svg | 0 .../chart/With_Attrs_Attributes/Nanos.svg | 0 .../chart/With_Attrs_Key_Values/GbPerSec.svg | 0 .../chart/With_Attrs_Key_Values/MemAllocs.svg | 0 .../chart/With_Attrs_Key_Values/MemBytes.svg | 0 .../chart/With_Attrs_Key_Values/Nanos.svg | 0 .../chart/With_Attrs_Simple/GbPerSec.svg | 0 .../chart/With_Attrs_Simple/MemAllocs.svg | 0 .../chart/With_Attrs_Simple/MemBytes.svg | 0 .../chart/With_Attrs_Simple/Nanos.svg | 0 .../chart/With_Group_Attributes/GbPerSec.svg | 0 .../chart/With_Group_Attributes/MemAllocs.svg | 0 .../chart/With_Group_Attributes/MemBytes.svg | 0 .../chart/With_Group_Attributes/Nanos.svg | 0 .../chart/With_Group_Key_Values/GbPerSec.svg | 0 .../chart/With_Group_Key_Values/MemAllocs.svg | 0 .../chart/With_Group_Key_Values/MemBytes.svg | 0 .../chart/With_Group_Key_Values/Nanos.svg | 0 .../chart/darvaza_zerolog/GbPerSec.svg | 0 .../chart/darvaza_zerolog/MemAllocs.svg | 0 .../chart/darvaza_zerolog/MemBytes.svg | 0 .../chart/darvaza_zerolog/Nanos.svg | 0 .../chart/phsym_zerolog/GbPerSec.svg | 0 .../chart/phsym_zerolog/MemAllocs.svg | 0 .../chart/phsym_zerolog/MemBytes.svg | 0 {pages => docs}/chart/phsym_zerolog/Nanos.svg | 0 {pages => docs}/chart/samber_zap/GbPerSec.svg | 0 .../chart/samber_zap/MemAllocs.svg | 0 {pages => docs}/chart/samber_zap/MemBytes.svg | 0 {pages => docs}/chart/samber_zap/Nanos.svg | 0 .../chart/samber_zerolog/GbPerSec.svg | 0 .../chart/samber_zerolog/MemAllocs.svg | 0 .../chart/samber_zerolog/MemBytes.svg | 0 .../chart/samber_zerolog/Nanos.svg | 0 .../chart/slog_JSONHandler/GbPerSec.svg | 0 .../chart/slog_JSONHandler/MemAllocs.svg | 0 .../chart/slog_JSONHandler/MemBytes.svg | 0 .../chart/slog_JSONHandler/Nanos.svg | 0 {pages => docs}/handler/darvaza_zerolog.html | 0 {pages => docs}/handler/phsym_zerolog.html | 0 {pages => docs}/handler/samber_zap.html | 0 {pages => docs}/handler/samber_zerolog.html | 0 {pages => docs}/handler/slog_JSONHandler.html | 0 {pages => docs}/home.svg | 0 {pages => docs}/index.html | 0 {pages => docs}/style.css | 0 {pages => docs}/test/Attributes.html | 0 {pages => docs}/test/Big_Group.html | 0 {pages => docs}/test/Disabled.html | 0 {pages => docs}/test/Key_Values.html | 0 {pages => docs}/test/Logging.html | 0 {pages => docs}/test/Simple.html | 0 {pages => docs}/test/Simple_Source.html | 0 .../test/With_Attrs_Attributes.html | 0 .../test/With_Attrs_Key_Values.html | 0 {pages => docs}/test/With_Attrs_Simple.html | 0 .../test/With_Group_Attributes.html | 0 .../test/With_Group_Key_Values.html | 0 scripts/pages | 2 +- 90 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pages.yml rename {pages => docs}/chart/Attributes/GbPerSec.svg (100%) rename {pages => docs}/chart/Attributes/MemAllocs.svg (100%) rename {pages => docs}/chart/Attributes/MemBytes.svg (100%) rename {pages => docs}/chart/Attributes/Nanos.svg (100%) rename {pages => docs}/chart/Big_Group/GbPerSec.svg (100%) rename {pages => docs}/chart/Big_Group/MemAllocs.svg (100%) rename {pages => docs}/chart/Big_Group/MemBytes.svg (100%) rename {pages => docs}/chart/Big_Group/Nanos.svg (100%) rename {pages => docs}/chart/Disabled/GbPerSec.svg (100%) rename {pages => docs}/chart/Disabled/MemAllocs.svg (100%) rename {pages => docs}/chart/Disabled/MemBytes.svg (100%) rename {pages => docs}/chart/Disabled/Nanos.svg (100%) rename {pages => docs}/chart/Key_Values/GbPerSec.svg (100%) rename {pages => docs}/chart/Key_Values/MemAllocs.svg (100%) rename {pages => docs}/chart/Key_Values/MemBytes.svg (100%) rename {pages => docs}/chart/Key_Values/Nanos.svg (100%) rename {pages => docs}/chart/Logging/GbPerSec.svg (100%) rename {pages => docs}/chart/Logging/MemAllocs.svg (100%) rename {pages => docs}/chart/Logging/MemBytes.svg (100%) rename {pages => docs}/chart/Logging/Nanos.svg (100%) rename {pages => docs}/chart/Simple/GbPerSec.svg (100%) rename {pages => docs}/chart/Simple/MemAllocs.svg (100%) rename {pages => docs}/chart/Simple/MemBytes.svg (100%) rename {pages => docs}/chart/Simple/Nanos.svg (100%) rename {pages => docs}/chart/Simple_Source/GbPerSec.svg (100%) rename {pages => docs}/chart/Simple_Source/MemAllocs.svg (100%) rename {pages => docs}/chart/Simple_Source/MemBytes.svg (100%) rename {pages => docs}/chart/Simple_Source/Nanos.svg (100%) rename {pages => docs}/chart/With_Attrs_Attributes/GbPerSec.svg (100%) rename {pages => docs}/chart/With_Attrs_Attributes/MemAllocs.svg (100%) rename {pages => docs}/chart/With_Attrs_Attributes/MemBytes.svg (100%) rename {pages => docs}/chart/With_Attrs_Attributes/Nanos.svg (100%) rename {pages => docs}/chart/With_Attrs_Key_Values/GbPerSec.svg (100%) rename {pages => docs}/chart/With_Attrs_Key_Values/MemAllocs.svg (100%) rename {pages => docs}/chart/With_Attrs_Key_Values/MemBytes.svg (100%) rename {pages => docs}/chart/With_Attrs_Key_Values/Nanos.svg (100%) rename {pages => docs}/chart/With_Attrs_Simple/GbPerSec.svg (100%) rename {pages => docs}/chart/With_Attrs_Simple/MemAllocs.svg (100%) rename {pages => docs}/chart/With_Attrs_Simple/MemBytes.svg (100%) rename {pages => docs}/chart/With_Attrs_Simple/Nanos.svg (100%) rename {pages => docs}/chart/With_Group_Attributes/GbPerSec.svg (100%) rename {pages => docs}/chart/With_Group_Attributes/MemAllocs.svg (100%) rename {pages => docs}/chart/With_Group_Attributes/MemBytes.svg (100%) rename {pages => docs}/chart/With_Group_Attributes/Nanos.svg (100%) rename {pages => docs}/chart/With_Group_Key_Values/GbPerSec.svg (100%) rename {pages => docs}/chart/With_Group_Key_Values/MemAllocs.svg (100%) rename {pages => docs}/chart/With_Group_Key_Values/MemBytes.svg (100%) rename {pages => docs}/chart/With_Group_Key_Values/Nanos.svg (100%) rename {pages => docs}/chart/darvaza_zerolog/GbPerSec.svg (100%) rename {pages => docs}/chart/darvaza_zerolog/MemAllocs.svg (100%) rename {pages => docs}/chart/darvaza_zerolog/MemBytes.svg (100%) rename {pages => docs}/chart/darvaza_zerolog/Nanos.svg (100%) rename {pages => docs}/chart/phsym_zerolog/GbPerSec.svg (100%) rename {pages => docs}/chart/phsym_zerolog/MemAllocs.svg (100%) rename {pages => docs}/chart/phsym_zerolog/MemBytes.svg (100%) rename {pages => docs}/chart/phsym_zerolog/Nanos.svg (100%) rename {pages => docs}/chart/samber_zap/GbPerSec.svg (100%) rename {pages => docs}/chart/samber_zap/MemAllocs.svg (100%) rename {pages => docs}/chart/samber_zap/MemBytes.svg (100%) rename {pages => docs}/chart/samber_zap/Nanos.svg (100%) rename {pages => docs}/chart/samber_zerolog/GbPerSec.svg (100%) rename {pages => docs}/chart/samber_zerolog/MemAllocs.svg (100%) rename {pages => docs}/chart/samber_zerolog/MemBytes.svg (100%) rename {pages => docs}/chart/samber_zerolog/Nanos.svg (100%) rename {pages => docs}/chart/slog_JSONHandler/GbPerSec.svg (100%) rename {pages => docs}/chart/slog_JSONHandler/MemAllocs.svg (100%) rename {pages => docs}/chart/slog_JSONHandler/MemBytes.svg (100%) rename {pages => docs}/chart/slog_JSONHandler/Nanos.svg (100%) rename {pages => docs}/handler/darvaza_zerolog.html (100%) rename {pages => docs}/handler/phsym_zerolog.html (100%) rename {pages => docs}/handler/samber_zap.html (100%) rename {pages => docs}/handler/samber_zerolog.html (100%) rename {pages => docs}/handler/slog_JSONHandler.html (100%) rename {pages => docs}/home.svg (100%) rename {pages => docs}/index.html (100%) rename {pages => docs}/style.css (100%) rename {pages => docs}/test/Attributes.html (100%) rename {pages => docs}/test/Big_Group.html (100%) rename {pages => docs}/test/Disabled.html (100%) rename {pages => docs}/test/Key_Values.html (100%) rename {pages => docs}/test/Logging.html (100%) rename {pages => docs}/test/Simple.html (100%) rename {pages => docs}/test/Simple_Source.html (100%) rename {pages => docs}/test/With_Attrs_Attributes.html (100%) rename {pages => docs}/test/With_Attrs_Key_Values.html (100%) rename {pages => docs}/test/With_Attrs_Simple.html (100%) rename {pages => docs}/test/With_Group_Attributes.html (100%) rename {pages => docs}/test/With_Group_Key_Values.html (100%) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..0f7dff45 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,35 @@ +name: Update benchmark pages +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * 0' + push: + branches: + - server-pages + +jobs: + run_benchmark: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + check-latest: true + + - name: Install the latest versions of each library + run: go get -u ./... && go mod tidy + + - name: Benchmark Go Logging Libraries + run: go test -bench=. bench/*.go > /tmp/bench.txt + +# - name: Commit benchmark results to repo +# uses: EndBug/add-and-commit@v9 +# with: +# message: Update benchmark results +# commit: '--no-verify' diff --git a/pages/chart/Attributes/GbPerSec.svg b/docs/chart/Attributes/GbPerSec.svg similarity index 100% rename from pages/chart/Attributes/GbPerSec.svg rename to docs/chart/Attributes/GbPerSec.svg diff --git a/pages/chart/Attributes/MemAllocs.svg b/docs/chart/Attributes/MemAllocs.svg similarity index 100% rename from pages/chart/Attributes/MemAllocs.svg rename to docs/chart/Attributes/MemAllocs.svg diff --git a/pages/chart/Attributes/MemBytes.svg b/docs/chart/Attributes/MemBytes.svg similarity index 100% rename from pages/chart/Attributes/MemBytes.svg rename to docs/chart/Attributes/MemBytes.svg diff --git a/pages/chart/Attributes/Nanos.svg b/docs/chart/Attributes/Nanos.svg similarity index 100% rename from pages/chart/Attributes/Nanos.svg rename to docs/chart/Attributes/Nanos.svg diff --git a/pages/chart/Big_Group/GbPerSec.svg b/docs/chart/Big_Group/GbPerSec.svg similarity index 100% rename from pages/chart/Big_Group/GbPerSec.svg rename to docs/chart/Big_Group/GbPerSec.svg diff --git a/pages/chart/Big_Group/MemAllocs.svg b/docs/chart/Big_Group/MemAllocs.svg similarity index 100% rename from pages/chart/Big_Group/MemAllocs.svg rename to docs/chart/Big_Group/MemAllocs.svg diff --git a/pages/chart/Big_Group/MemBytes.svg b/docs/chart/Big_Group/MemBytes.svg similarity index 100% rename from pages/chart/Big_Group/MemBytes.svg rename to docs/chart/Big_Group/MemBytes.svg diff --git a/pages/chart/Big_Group/Nanos.svg b/docs/chart/Big_Group/Nanos.svg similarity index 100% rename from pages/chart/Big_Group/Nanos.svg rename to docs/chart/Big_Group/Nanos.svg diff --git a/pages/chart/Disabled/GbPerSec.svg b/docs/chart/Disabled/GbPerSec.svg similarity index 100% rename from pages/chart/Disabled/GbPerSec.svg rename to docs/chart/Disabled/GbPerSec.svg diff --git a/pages/chart/Disabled/MemAllocs.svg b/docs/chart/Disabled/MemAllocs.svg similarity index 100% rename from pages/chart/Disabled/MemAllocs.svg rename to docs/chart/Disabled/MemAllocs.svg diff --git a/pages/chart/Disabled/MemBytes.svg b/docs/chart/Disabled/MemBytes.svg similarity index 100% rename from pages/chart/Disabled/MemBytes.svg rename to docs/chart/Disabled/MemBytes.svg diff --git a/pages/chart/Disabled/Nanos.svg b/docs/chart/Disabled/Nanos.svg similarity index 100% rename from pages/chart/Disabled/Nanos.svg rename to docs/chart/Disabled/Nanos.svg diff --git a/pages/chart/Key_Values/GbPerSec.svg b/docs/chart/Key_Values/GbPerSec.svg similarity index 100% rename from pages/chart/Key_Values/GbPerSec.svg rename to docs/chart/Key_Values/GbPerSec.svg diff --git a/pages/chart/Key_Values/MemAllocs.svg b/docs/chart/Key_Values/MemAllocs.svg similarity index 100% rename from pages/chart/Key_Values/MemAllocs.svg rename to docs/chart/Key_Values/MemAllocs.svg diff --git a/pages/chart/Key_Values/MemBytes.svg b/docs/chart/Key_Values/MemBytes.svg similarity index 100% rename from pages/chart/Key_Values/MemBytes.svg rename to docs/chart/Key_Values/MemBytes.svg diff --git a/pages/chart/Key_Values/Nanos.svg b/docs/chart/Key_Values/Nanos.svg similarity index 100% rename from pages/chart/Key_Values/Nanos.svg rename to docs/chart/Key_Values/Nanos.svg diff --git a/pages/chart/Logging/GbPerSec.svg b/docs/chart/Logging/GbPerSec.svg similarity index 100% rename from pages/chart/Logging/GbPerSec.svg rename to docs/chart/Logging/GbPerSec.svg diff --git a/pages/chart/Logging/MemAllocs.svg b/docs/chart/Logging/MemAllocs.svg similarity index 100% rename from pages/chart/Logging/MemAllocs.svg rename to docs/chart/Logging/MemAllocs.svg diff --git a/pages/chart/Logging/MemBytes.svg b/docs/chart/Logging/MemBytes.svg similarity index 100% rename from pages/chart/Logging/MemBytes.svg rename to docs/chart/Logging/MemBytes.svg diff --git a/pages/chart/Logging/Nanos.svg b/docs/chart/Logging/Nanos.svg similarity index 100% rename from pages/chart/Logging/Nanos.svg rename to docs/chart/Logging/Nanos.svg diff --git a/pages/chart/Simple/GbPerSec.svg b/docs/chart/Simple/GbPerSec.svg similarity index 100% rename from pages/chart/Simple/GbPerSec.svg rename to docs/chart/Simple/GbPerSec.svg diff --git a/pages/chart/Simple/MemAllocs.svg b/docs/chart/Simple/MemAllocs.svg similarity index 100% rename from pages/chart/Simple/MemAllocs.svg rename to docs/chart/Simple/MemAllocs.svg diff --git a/pages/chart/Simple/MemBytes.svg b/docs/chart/Simple/MemBytes.svg similarity index 100% rename from pages/chart/Simple/MemBytes.svg rename to docs/chart/Simple/MemBytes.svg diff --git a/pages/chart/Simple/Nanos.svg b/docs/chart/Simple/Nanos.svg similarity index 100% rename from pages/chart/Simple/Nanos.svg rename to docs/chart/Simple/Nanos.svg diff --git a/pages/chart/Simple_Source/GbPerSec.svg b/docs/chart/Simple_Source/GbPerSec.svg similarity index 100% rename from pages/chart/Simple_Source/GbPerSec.svg rename to docs/chart/Simple_Source/GbPerSec.svg diff --git a/pages/chart/Simple_Source/MemAllocs.svg b/docs/chart/Simple_Source/MemAllocs.svg similarity index 100% rename from pages/chart/Simple_Source/MemAllocs.svg rename to docs/chart/Simple_Source/MemAllocs.svg diff --git a/pages/chart/Simple_Source/MemBytes.svg b/docs/chart/Simple_Source/MemBytes.svg similarity index 100% rename from pages/chart/Simple_Source/MemBytes.svg rename to docs/chart/Simple_Source/MemBytes.svg diff --git a/pages/chart/Simple_Source/Nanos.svg b/docs/chart/Simple_Source/Nanos.svg similarity index 100% rename from pages/chart/Simple_Source/Nanos.svg rename to docs/chart/Simple_Source/Nanos.svg diff --git a/pages/chart/With_Attrs_Attributes/GbPerSec.svg b/docs/chart/With_Attrs_Attributes/GbPerSec.svg similarity index 100% rename from pages/chart/With_Attrs_Attributes/GbPerSec.svg rename to docs/chart/With_Attrs_Attributes/GbPerSec.svg diff --git a/pages/chart/With_Attrs_Attributes/MemAllocs.svg b/docs/chart/With_Attrs_Attributes/MemAllocs.svg similarity index 100% rename from pages/chart/With_Attrs_Attributes/MemAllocs.svg rename to docs/chart/With_Attrs_Attributes/MemAllocs.svg diff --git a/pages/chart/With_Attrs_Attributes/MemBytes.svg b/docs/chart/With_Attrs_Attributes/MemBytes.svg similarity index 100% rename from pages/chart/With_Attrs_Attributes/MemBytes.svg rename to docs/chart/With_Attrs_Attributes/MemBytes.svg diff --git a/pages/chart/With_Attrs_Attributes/Nanos.svg b/docs/chart/With_Attrs_Attributes/Nanos.svg similarity index 100% rename from pages/chart/With_Attrs_Attributes/Nanos.svg rename to docs/chart/With_Attrs_Attributes/Nanos.svg diff --git a/pages/chart/With_Attrs_Key_Values/GbPerSec.svg b/docs/chart/With_Attrs_Key_Values/GbPerSec.svg similarity index 100% rename from pages/chart/With_Attrs_Key_Values/GbPerSec.svg rename to docs/chart/With_Attrs_Key_Values/GbPerSec.svg diff --git a/pages/chart/With_Attrs_Key_Values/MemAllocs.svg b/docs/chart/With_Attrs_Key_Values/MemAllocs.svg similarity index 100% rename from pages/chart/With_Attrs_Key_Values/MemAllocs.svg rename to docs/chart/With_Attrs_Key_Values/MemAllocs.svg diff --git a/pages/chart/With_Attrs_Key_Values/MemBytes.svg b/docs/chart/With_Attrs_Key_Values/MemBytes.svg similarity index 100% rename from pages/chart/With_Attrs_Key_Values/MemBytes.svg rename to docs/chart/With_Attrs_Key_Values/MemBytes.svg diff --git a/pages/chart/With_Attrs_Key_Values/Nanos.svg b/docs/chart/With_Attrs_Key_Values/Nanos.svg similarity index 100% rename from pages/chart/With_Attrs_Key_Values/Nanos.svg rename to docs/chart/With_Attrs_Key_Values/Nanos.svg diff --git a/pages/chart/With_Attrs_Simple/GbPerSec.svg b/docs/chart/With_Attrs_Simple/GbPerSec.svg similarity index 100% rename from pages/chart/With_Attrs_Simple/GbPerSec.svg rename to docs/chart/With_Attrs_Simple/GbPerSec.svg diff --git a/pages/chart/With_Attrs_Simple/MemAllocs.svg b/docs/chart/With_Attrs_Simple/MemAllocs.svg similarity index 100% rename from pages/chart/With_Attrs_Simple/MemAllocs.svg rename to docs/chart/With_Attrs_Simple/MemAllocs.svg diff --git a/pages/chart/With_Attrs_Simple/MemBytes.svg b/docs/chart/With_Attrs_Simple/MemBytes.svg similarity index 100% rename from pages/chart/With_Attrs_Simple/MemBytes.svg rename to docs/chart/With_Attrs_Simple/MemBytes.svg diff --git a/pages/chart/With_Attrs_Simple/Nanos.svg b/docs/chart/With_Attrs_Simple/Nanos.svg similarity index 100% rename from pages/chart/With_Attrs_Simple/Nanos.svg rename to docs/chart/With_Attrs_Simple/Nanos.svg diff --git a/pages/chart/With_Group_Attributes/GbPerSec.svg b/docs/chart/With_Group_Attributes/GbPerSec.svg similarity index 100% rename from pages/chart/With_Group_Attributes/GbPerSec.svg rename to docs/chart/With_Group_Attributes/GbPerSec.svg diff --git a/pages/chart/With_Group_Attributes/MemAllocs.svg b/docs/chart/With_Group_Attributes/MemAllocs.svg similarity index 100% rename from pages/chart/With_Group_Attributes/MemAllocs.svg rename to docs/chart/With_Group_Attributes/MemAllocs.svg diff --git a/pages/chart/With_Group_Attributes/MemBytes.svg b/docs/chart/With_Group_Attributes/MemBytes.svg similarity index 100% rename from pages/chart/With_Group_Attributes/MemBytes.svg rename to docs/chart/With_Group_Attributes/MemBytes.svg diff --git a/pages/chart/With_Group_Attributes/Nanos.svg b/docs/chart/With_Group_Attributes/Nanos.svg similarity index 100% rename from pages/chart/With_Group_Attributes/Nanos.svg rename to docs/chart/With_Group_Attributes/Nanos.svg diff --git a/pages/chart/With_Group_Key_Values/GbPerSec.svg b/docs/chart/With_Group_Key_Values/GbPerSec.svg similarity index 100% rename from pages/chart/With_Group_Key_Values/GbPerSec.svg rename to docs/chart/With_Group_Key_Values/GbPerSec.svg diff --git a/pages/chart/With_Group_Key_Values/MemAllocs.svg b/docs/chart/With_Group_Key_Values/MemAllocs.svg similarity index 100% rename from pages/chart/With_Group_Key_Values/MemAllocs.svg rename to docs/chart/With_Group_Key_Values/MemAllocs.svg diff --git a/pages/chart/With_Group_Key_Values/MemBytes.svg b/docs/chart/With_Group_Key_Values/MemBytes.svg similarity index 100% rename from pages/chart/With_Group_Key_Values/MemBytes.svg rename to docs/chart/With_Group_Key_Values/MemBytes.svg diff --git a/pages/chart/With_Group_Key_Values/Nanos.svg b/docs/chart/With_Group_Key_Values/Nanos.svg similarity index 100% rename from pages/chart/With_Group_Key_Values/Nanos.svg rename to docs/chart/With_Group_Key_Values/Nanos.svg diff --git a/pages/chart/darvaza_zerolog/GbPerSec.svg b/docs/chart/darvaza_zerolog/GbPerSec.svg similarity index 100% rename from pages/chart/darvaza_zerolog/GbPerSec.svg rename to docs/chart/darvaza_zerolog/GbPerSec.svg diff --git a/pages/chart/darvaza_zerolog/MemAllocs.svg b/docs/chart/darvaza_zerolog/MemAllocs.svg similarity index 100% rename from pages/chart/darvaza_zerolog/MemAllocs.svg rename to docs/chart/darvaza_zerolog/MemAllocs.svg diff --git a/pages/chart/darvaza_zerolog/MemBytes.svg b/docs/chart/darvaza_zerolog/MemBytes.svg similarity index 100% rename from pages/chart/darvaza_zerolog/MemBytes.svg rename to docs/chart/darvaza_zerolog/MemBytes.svg diff --git a/pages/chart/darvaza_zerolog/Nanos.svg b/docs/chart/darvaza_zerolog/Nanos.svg similarity index 100% rename from pages/chart/darvaza_zerolog/Nanos.svg rename to docs/chart/darvaza_zerolog/Nanos.svg diff --git a/pages/chart/phsym_zerolog/GbPerSec.svg b/docs/chart/phsym_zerolog/GbPerSec.svg similarity index 100% rename from pages/chart/phsym_zerolog/GbPerSec.svg rename to docs/chart/phsym_zerolog/GbPerSec.svg diff --git a/pages/chart/phsym_zerolog/MemAllocs.svg b/docs/chart/phsym_zerolog/MemAllocs.svg similarity index 100% rename from pages/chart/phsym_zerolog/MemAllocs.svg rename to docs/chart/phsym_zerolog/MemAllocs.svg diff --git a/pages/chart/phsym_zerolog/MemBytes.svg b/docs/chart/phsym_zerolog/MemBytes.svg similarity index 100% rename from pages/chart/phsym_zerolog/MemBytes.svg rename to docs/chart/phsym_zerolog/MemBytes.svg diff --git a/pages/chart/phsym_zerolog/Nanos.svg b/docs/chart/phsym_zerolog/Nanos.svg similarity index 100% rename from pages/chart/phsym_zerolog/Nanos.svg rename to docs/chart/phsym_zerolog/Nanos.svg diff --git a/pages/chart/samber_zap/GbPerSec.svg b/docs/chart/samber_zap/GbPerSec.svg similarity index 100% rename from pages/chart/samber_zap/GbPerSec.svg rename to docs/chart/samber_zap/GbPerSec.svg diff --git a/pages/chart/samber_zap/MemAllocs.svg b/docs/chart/samber_zap/MemAllocs.svg similarity index 100% rename from pages/chart/samber_zap/MemAllocs.svg rename to docs/chart/samber_zap/MemAllocs.svg diff --git a/pages/chart/samber_zap/MemBytes.svg b/docs/chart/samber_zap/MemBytes.svg similarity index 100% rename from pages/chart/samber_zap/MemBytes.svg rename to docs/chart/samber_zap/MemBytes.svg diff --git a/pages/chart/samber_zap/Nanos.svg b/docs/chart/samber_zap/Nanos.svg similarity index 100% rename from pages/chart/samber_zap/Nanos.svg rename to docs/chart/samber_zap/Nanos.svg diff --git a/pages/chart/samber_zerolog/GbPerSec.svg b/docs/chart/samber_zerolog/GbPerSec.svg similarity index 100% rename from pages/chart/samber_zerolog/GbPerSec.svg rename to docs/chart/samber_zerolog/GbPerSec.svg diff --git a/pages/chart/samber_zerolog/MemAllocs.svg b/docs/chart/samber_zerolog/MemAllocs.svg similarity index 100% rename from pages/chart/samber_zerolog/MemAllocs.svg rename to docs/chart/samber_zerolog/MemAllocs.svg diff --git a/pages/chart/samber_zerolog/MemBytes.svg b/docs/chart/samber_zerolog/MemBytes.svg similarity index 100% rename from pages/chart/samber_zerolog/MemBytes.svg rename to docs/chart/samber_zerolog/MemBytes.svg diff --git a/pages/chart/samber_zerolog/Nanos.svg b/docs/chart/samber_zerolog/Nanos.svg similarity index 100% rename from pages/chart/samber_zerolog/Nanos.svg rename to docs/chart/samber_zerolog/Nanos.svg diff --git a/pages/chart/slog_JSONHandler/GbPerSec.svg b/docs/chart/slog_JSONHandler/GbPerSec.svg similarity index 100% rename from pages/chart/slog_JSONHandler/GbPerSec.svg rename to docs/chart/slog_JSONHandler/GbPerSec.svg diff --git a/pages/chart/slog_JSONHandler/MemAllocs.svg b/docs/chart/slog_JSONHandler/MemAllocs.svg similarity index 100% rename from pages/chart/slog_JSONHandler/MemAllocs.svg rename to docs/chart/slog_JSONHandler/MemAllocs.svg diff --git a/pages/chart/slog_JSONHandler/MemBytes.svg b/docs/chart/slog_JSONHandler/MemBytes.svg similarity index 100% rename from pages/chart/slog_JSONHandler/MemBytes.svg rename to docs/chart/slog_JSONHandler/MemBytes.svg diff --git a/pages/chart/slog_JSONHandler/Nanos.svg b/docs/chart/slog_JSONHandler/Nanos.svg similarity index 100% rename from pages/chart/slog_JSONHandler/Nanos.svg rename to docs/chart/slog_JSONHandler/Nanos.svg diff --git a/pages/handler/darvaza_zerolog.html b/docs/handler/darvaza_zerolog.html similarity index 100% rename from pages/handler/darvaza_zerolog.html rename to docs/handler/darvaza_zerolog.html diff --git a/pages/handler/phsym_zerolog.html b/docs/handler/phsym_zerolog.html similarity index 100% rename from pages/handler/phsym_zerolog.html rename to docs/handler/phsym_zerolog.html diff --git a/pages/handler/samber_zap.html b/docs/handler/samber_zap.html similarity index 100% rename from pages/handler/samber_zap.html rename to docs/handler/samber_zap.html diff --git a/pages/handler/samber_zerolog.html b/docs/handler/samber_zerolog.html similarity index 100% rename from pages/handler/samber_zerolog.html rename to docs/handler/samber_zerolog.html diff --git a/pages/handler/slog_JSONHandler.html b/docs/handler/slog_JSONHandler.html similarity index 100% rename from pages/handler/slog_JSONHandler.html rename to docs/handler/slog_JSONHandler.html diff --git a/pages/home.svg b/docs/home.svg similarity index 100% rename from pages/home.svg rename to docs/home.svg diff --git a/pages/index.html b/docs/index.html similarity index 100% rename from pages/index.html rename to docs/index.html diff --git a/pages/style.css b/docs/style.css similarity index 100% rename from pages/style.css rename to docs/style.css diff --git a/pages/test/Attributes.html b/docs/test/Attributes.html similarity index 100% rename from pages/test/Attributes.html rename to docs/test/Attributes.html diff --git a/pages/test/Big_Group.html b/docs/test/Big_Group.html similarity index 100% rename from pages/test/Big_Group.html rename to docs/test/Big_Group.html diff --git a/pages/test/Disabled.html b/docs/test/Disabled.html similarity index 100% rename from pages/test/Disabled.html rename to docs/test/Disabled.html diff --git a/pages/test/Key_Values.html b/docs/test/Key_Values.html similarity index 100% rename from pages/test/Key_Values.html rename to docs/test/Key_Values.html diff --git a/pages/test/Logging.html b/docs/test/Logging.html similarity index 100% rename from pages/test/Logging.html rename to docs/test/Logging.html diff --git a/pages/test/Simple.html b/docs/test/Simple.html similarity index 100% rename from pages/test/Simple.html rename to docs/test/Simple.html diff --git a/pages/test/Simple_Source.html b/docs/test/Simple_Source.html similarity index 100% rename from pages/test/Simple_Source.html rename to docs/test/Simple_Source.html diff --git a/pages/test/With_Attrs_Attributes.html b/docs/test/With_Attrs_Attributes.html similarity index 100% rename from pages/test/With_Attrs_Attributes.html rename to docs/test/With_Attrs_Attributes.html diff --git a/pages/test/With_Attrs_Key_Values.html b/docs/test/With_Attrs_Key_Values.html similarity index 100% rename from pages/test/With_Attrs_Key_Values.html rename to docs/test/With_Attrs_Key_Values.html diff --git a/pages/test/With_Attrs_Simple.html b/docs/test/With_Attrs_Simple.html similarity index 100% rename from pages/test/With_Attrs_Simple.html rename to docs/test/With_Attrs_Simple.html diff --git a/pages/test/With_Group_Attributes.html b/docs/test/With_Group_Attributes.html similarity index 100% rename from pages/test/With_Group_Attributes.html rename to docs/test/With_Group_Attributes.html diff --git a/pages/test/With_Group_Key_Values.html b/docs/test/With_Group_Key_Values.html similarity index 100% rename from pages/test/With_Group_Key_Values.html rename to docs/test/With_Group_Key_Values.html diff --git a/scripts/pages b/scripts/pages index c7574219..a3395117 100755 --- a/scripts/pages +++ b/scripts/pages @@ -2,4 +2,4 @@ # Get pages from server -wget -r localhost:8080 -nH -P pages +wget -r localhost:8080 -nH -P docs From 6fdc369b962b88f9b99087e849381a0f6bf63865 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 16:23:12 -0800 Subject: [PATCH 07/22] Update pages.yml workflow to use actions/setup-go@v5 --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 0f7dff45..1c7f810b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -17,7 +17,7 @@ jobs: ref: ${{ github.head_ref }} - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.21' check-latest: true From cf35d86d1b19103b02068e0a84523b533dc5a568 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 16:42:32 -0800 Subject: [PATCH 08/22] Add 'go-slog' into server URLs so they will match the github pages configuration --- cmd/server/embed/choices.tmpl | 4 ++-- cmd/server/embed/handler.tmpl | 12 +++++----- cmd/server/embed/root.tmpl | 6 ++--- cmd/server/embed/test.tmpl | 12 +++++----- cmd/server/server.go | 16 ++++++------- docs/handler/darvaza_zerolog.html | 16 ++++++------- docs/handler/phsym_zerolog.html | 16 ++++++------- docs/handler/samber_zap.html | 16 ++++++------- docs/handler/samber_zerolog.html | 16 ++++++------- docs/handler/slog_JSONHandler.html | 16 ++++++------- docs/index.html | 36 ++++++++++++++-------------- docs/test/Attributes.html | 16 ++++++------- docs/test/Big_Group.html | 16 ++++++------- docs/test/Disabled.html | 16 ++++++------- docs/test/Key_Values.html | 16 ++++++------- docs/test/Logging.html | 16 ++++++------- docs/test/Simple.html | 16 ++++++------- docs/test/Simple_Source.html | 16 ++++++------- docs/test/With_Attrs_Attributes.html | 16 ++++++------- docs/test/With_Attrs_Key_Values.html | 16 ++++++------- docs/test/With_Attrs_Simple.html | 16 ++++++------- docs/test/With_Group_Attributes.html | 16 ++++++------- docs/test/With_Group_Key_Values.html | 16 ++++++------- scripts/pages | 2 +- 24 files changed, 180 insertions(+), 180 deletions(-) diff --git a/cmd/server/embed/choices.tmpl b/cmd/server/embed/choices.tmpl index b6e7dfec..32d61d8c 100644 --- a/cmd/server/embed/choices.tmpl +++ b/cmd/server/embed/choices.tmpl @@ -1,10 +1,10 @@ diff --git a/cmd/server/embed/handler.tmpl b/cmd/server/embed/handler.tmpl index 0eb8b2c2..e9732569 100644 --- a/cmd/server/embed/handler.tmpl +++ b/cmd/server/embed/handler.tmpl @@ -1,14 +1,14 @@ Benchmark Data - + diff --git a/cmd/server/embed/root.tmpl b/cmd/server/embed/root.tmpl index 22af1438..c0c3dcab 100644 --- a/cmd/server/embed/root.tmpl +++ b/cmd/server/embed/root.tmpl @@ -1,7 +1,7 @@ Benchmarks - + @@ -11,7 +11,7 @@ Tests
- Home + Home

Handler {{ .Data.HandlerName .Handler }}

@@ -43,12 +43,12 @@ - - + + - - + +
{{ .Data.HandlerName .Handler }} Ns/Op{{ .Data.HandlerName .Handler }} Allocs/Op{{ .Data.HandlerName .Handler }} Ns/Op{{ .Data.HandlerName .Handler }} Allocs/Op
{{ .Data.HandlerName .Handler }} Bytes/Op{{ .Data.HandlerName .Handler }} GB/Sec{{ .Data.HandlerName .Handler }} Bytes/Op{{ .Data.HandlerName .Handler }} GB/Sec
{{ range .Data.TestTags }} - + {{ end }}
{{ $.Data.TestName . }}
{{ $.Data.TestName . }}
@@ -20,7 +20,7 @@ Handlers {{ range .Data.HandlerTags }} - + {{ end }}
{{ $.Data.HandlerName . }}
{{ $.Data.HandlerName . }}
diff --git a/cmd/server/embed/test.tmpl b/cmd/server/embed/test.tmpl index 02b88a2d..c23e4dfa 100644 --- a/cmd/server/embed/test.tmpl +++ b/cmd/server/embed/test.tmpl @@ -1,14 +1,14 @@ Benchmark Data - + diff --git a/cmd/server/server.go b/cmd/server/server.go index db599fe4..3ab78861 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -61,13 +61,13 @@ func main() { router := gin.Default() rootPageFn := pageFunction(pageRoot) - router.GET("/", rootPageFn) - router.GET("/index.html", rootPageFn) - router.GET("/test/:tag", pageFunction(pageTest)) - router.GET("/handler/:tag", pageFunction(pageHandler)) - router.GET("/chart/:tag/:item", chartFunction) - router.GET("/home.svg", svgFunction(home)) - router.GET("/style.css", textFunction(css)) + router.GET("/go-slog/", rootPageFn) + router.GET("/go-slog/index.html", rootPageFn) + router.GET("/go-slog/test/:tag", pageFunction(pageTest)) + router.GET("/go-slog/handler/:tag", pageFunction(pageHandler)) + router.GET("/go-slog/chart/:tag/:item", chartFunction) + router.GET("/go-slog/home.svg", svgFunction(home)) + router.GET("/go-slog/style.css", textFunction(css)) if err := router.SetTrustedProxies(nil); err != nil { slog.Error("Don't trust proxies", "err", err) @@ -75,7 +75,7 @@ func main() { } // Listen and serve on 0.0.0.0:8080 (for windows "localhost:8080"). { - slog.Info("Web Server @ http://localhost:8080") + slog.Info("Web Server @ http://localhost:8080/go-slog") if err := router.Run(); err != nil { slog.Error("Error during ListenAndServe()", "err", err) } diff --git a/docs/handler/darvaza_zerolog.html b/docs/handler/darvaza_zerolog.html index 3e587f7f..67fea455 100644 --- a/docs/handler/darvaza_zerolog.html +++ b/docs/handler/darvaza_zerolog.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test {{ .Data.TestName .Test }}

@@ -43,12 +43,12 @@ - - + + - - + +
{{ .Data.TestName .Test }} Ns/Op{{ .Data.TestName .Test }} Allocs/Op{{ .Data.TestName .Test }} Ns/Op{{ .Data.TestName .Test }} Allocs/Op
{{ .Data.TestName .Test }} Bytes/Op{{ .Data.TestName .Test }} GB/Sec{{ .Data.TestName .Test }} Bytes/Op{{ .Data.TestName .Test }} GB/Sec
diff --git a/docs/handler/phsym_zerolog.html b/docs/handler/phsym_zerolog.html index 53c98aab..4e882fe3 100644 --- a/docs/handler/phsym_zerolog.html +++ b/docs/handler/phsym_zerolog.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Handler Darvaza Zerolog

@@ -164,12 +164,12 @@

Handler Darvaza Zerolog

- - + + - - + +
Darvaza Zerolog Ns/OpDarvaza Zerolog Allocs/OpDarvaza Zerolog Ns/OpDarvaza Zerolog Allocs/Op
Darvaza Zerolog Bytes/OpDarvaza Zerolog GB/SecDarvaza Zerolog Bytes/OpDarvaza Zerolog GB/Sec
diff --git a/docs/handler/samber_zap.html b/docs/handler/samber_zap.html index 29ce36eb..5705b499 100644 --- a/docs/handler/samber_zap.html +++ b/docs/handler/samber_zap.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Handler Phsym Zerolog

@@ -209,12 +209,12 @@

Handler Phsym Zerolog

- - + + - - + +
Phsym Zerolog Ns/OpPhsym Zerolog Allocs/OpPhsym Zerolog Ns/OpPhsym Zerolog Allocs/Op
Phsym Zerolog Bytes/OpPhsym Zerolog GB/SecPhsym Zerolog Bytes/OpPhsym Zerolog GB/Sec
diff --git a/docs/handler/samber_zerolog.html b/docs/handler/samber_zerolog.html index cce15754..955d5431 100644 --- a/docs/handler/samber_zerolog.html +++ b/docs/handler/samber_zerolog.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Handler Samber Zap

@@ -209,12 +209,12 @@

Handler Samber Zap

- - + + - - + +
Samber Zap Ns/OpSamber Zap Allocs/OpSamber Zap Ns/OpSamber Zap Allocs/Op
Samber Zap Bytes/OpSamber Zap GB/SecSamber Zap Bytes/OpSamber Zap GB/Sec
diff --git a/docs/handler/slog_JSONHandler.html b/docs/handler/slog_JSONHandler.html index 48bfbe79..9f3a981e 100644 --- a/docs/handler/slog_JSONHandler.html +++ b/docs/handler/slog_JSONHandler.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Handler Samber Zerolog

@@ -209,12 +209,12 @@

Handler Samber Zerolog

- - + + - - + +
Samber Zerolog Ns/OpSamber Zerolog Allocs/OpSamber Zerolog Ns/OpSamber Zerolog Allocs/Op
Samber Zerolog Bytes/OpSamber Zerolog GB/SecSamber Zerolog Bytes/OpSamber Zerolog GB/Sec
diff --git a/docs/index.html b/docs/index.html index a2ed3f11..cef6fe57 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,7 +1,7 @@ Benchmarks - + @@ -11,29 +11,29 @@ Tests
- Home + Home

Handler Slog JSONHandler

@@ -209,12 +209,12 @@

Handler Slog JSONHandler

- - + + - - + +
Slog JSONHandler Ns/OpSlog JSONHandler Allocs/OpSlog JSONHandler Ns/OpSlog JSONHandler Allocs/Op
Slog JSONHandler Bytes/OpSlog JSONHandler GB/SecSlog JSONHandler Bytes/OpSlog JSONHandler GB/Sec
- + - + - + - + - + - + - + - + - + - + - + - +
Attributes
Attributes
Big Group
Big Group
Disabled
Disabled
Key Values
Key Values
Logging
Logging
Simple
Simple
Simple Source
Simple Source
With Attrs Attributes
With Attrs Attributes
With Attrs Key Values
With Attrs Key Values
With Attrs Simple
With Attrs Simple
With Group Attributes
With Group Attributes
With Group Key Values
With Group Key Values
@@ -42,15 +42,15 @@ Handlers - + - + - + - + - +
Darvaza Zerolog
Darvaza Zerolog
Phsym Zerolog
Phsym Zerolog
Samber Zap
Samber Zap
Samber Zerolog
Samber Zerolog
Slog JSONHandler
Slog JSONHandler
diff --git a/docs/test/Attributes.html b/docs/test/Attributes.html index 2f1c31e0..0dc43e99 100644 --- a/docs/test/Attributes.html +++ b/docs/test/Attributes.html @@ -1,24 +1,24 @@ Benchmark Data - + diff --git a/docs/test/Big_Group.html b/docs/test/Big_Group.html index d4829ee9..b3deaabf 100644 --- a/docs/test/Big_Group.html +++ b/docs/test/Big_Group.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test Attributes

@@ -146,12 +146,12 @@

Test Attributes

- - + + - - + +
Attributes Ns/OpAttributes Allocs/OpAttributes Ns/OpAttributes Allocs/Op
Attributes Bytes/OpAttributes GB/SecAttributes Bytes/OpAttributes GB/Sec
diff --git a/docs/test/Disabled.html b/docs/test/Disabled.html index 124ffe0d..c9c7289a 100644 --- a/docs/test/Disabled.html +++ b/docs/test/Disabled.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test Big Group

@@ -146,12 +146,12 @@

Test Big Group

- - + + - - + +
Big Group Ns/OpBig Group Allocs/OpBig Group Ns/OpBig Group Allocs/Op
Big Group Bytes/OpBig Group GB/SecBig Group Bytes/OpBig Group GB/Sec
diff --git a/docs/test/Key_Values.html b/docs/test/Key_Values.html index 7bbbe2a5..40cb4753 100644 --- a/docs/test/Key_Values.html +++ b/docs/test/Key_Values.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test Disabled

@@ -146,12 +146,12 @@

Test Disabled

- - + + - - + +
Disabled Ns/OpDisabled Allocs/OpDisabled Ns/OpDisabled Allocs/Op
Disabled Bytes/OpDisabled GB/SecDisabled Bytes/OpDisabled GB/Sec
diff --git a/docs/test/Logging.html b/docs/test/Logging.html index fa15b0d3..3672555b 100644 --- a/docs/test/Logging.html +++ b/docs/test/Logging.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test Key Values

@@ -146,12 +146,12 @@

Test Key Values

- - + + - - + +
Key Values Ns/OpKey Values Allocs/OpKey Values Ns/OpKey Values Allocs/Op
Key Values Bytes/OpKey Values GB/SecKey Values Bytes/OpKey Values GB/Sec
diff --git a/docs/test/Simple.html b/docs/test/Simple.html index d6bddf96..847fcce0 100644 --- a/docs/test/Simple.html +++ b/docs/test/Simple.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test Logging

@@ -146,12 +146,12 @@

Test Logging

- - + + - - + +
Logging Ns/OpLogging Allocs/OpLogging Ns/OpLogging Allocs/Op
Logging Bytes/OpLogging GB/SecLogging Bytes/OpLogging GB/Sec
diff --git a/docs/test/Simple_Source.html b/docs/test/Simple_Source.html index 2990e9d8..1f9211bd 100644 --- a/docs/test/Simple_Source.html +++ b/docs/test/Simple_Source.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test Simple

@@ -146,12 +146,12 @@

Test Simple

- - + + - - + +
Simple Ns/OpSimple Allocs/OpSimple Ns/OpSimple Allocs/Op
Simple Bytes/OpSimple GB/SecSimple Bytes/OpSimple GB/Sec
diff --git a/docs/test/With_Attrs_Attributes.html b/docs/test/With_Attrs_Attributes.html index 31a6626a..6e2d6263 100644 --- a/docs/test/With_Attrs_Attributes.html +++ b/docs/test/With_Attrs_Attributes.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test Simple Source

@@ -146,12 +146,12 @@

Test Simple Source

- - + + - - + +
Simple Source Ns/OpSimple Source Allocs/OpSimple Source Ns/OpSimple Source Allocs/Op
Simple Source Bytes/OpSimple Source GB/SecSimple Source Bytes/OpSimple Source GB/Sec
diff --git a/docs/test/With_Attrs_Key_Values.html b/docs/test/With_Attrs_Key_Values.html index ccdc6e8b..ad5e2e06 100644 --- a/docs/test/With_Attrs_Key_Values.html +++ b/docs/test/With_Attrs_Key_Values.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test With Attrs Attributes

@@ -137,12 +137,12 @@

Test With Attrs Attributes

- - + + - - + +
With Attrs Attributes Ns/OpWith Attrs Attributes Allocs/OpWith Attrs Attributes Ns/OpWith Attrs Attributes Allocs/Op
With Attrs Attributes Bytes/OpWith Attrs Attributes GB/SecWith Attrs Attributes Bytes/OpWith Attrs Attributes GB/Sec
diff --git a/docs/test/With_Attrs_Simple.html b/docs/test/With_Attrs_Simple.html index c69d98f6..8d41ff00 100644 --- a/docs/test/With_Attrs_Simple.html +++ b/docs/test/With_Attrs_Simple.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test With Attrs Key Values

@@ -137,12 +137,12 @@

Test With Attrs Key Values

- - + + - - + +
With Attrs Key Values Ns/OpWith Attrs Key Values Allocs/OpWith Attrs Key Values Ns/OpWith Attrs Key Values Allocs/Op
With Attrs Key Values Bytes/OpWith Attrs Key Values GB/SecWith Attrs Key Values Bytes/OpWith Attrs Key Values GB/Sec
diff --git a/docs/test/With_Group_Attributes.html b/docs/test/With_Group_Attributes.html index 803b0e62..44ad0a9e 100644 --- a/docs/test/With_Group_Attributes.html +++ b/docs/test/With_Group_Attributes.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test With Attrs Simple

@@ -137,12 +137,12 @@

Test With Attrs Simple

- - + + - - + +
With Attrs Simple Ns/OpWith Attrs Simple Allocs/OpWith Attrs Simple Ns/OpWith Attrs Simple Allocs/Op
With Attrs Simple Bytes/OpWith Attrs Simple GB/SecWith Attrs Simple Bytes/OpWith Attrs Simple GB/Sec
diff --git a/docs/test/With_Group_Key_Values.html b/docs/test/With_Group_Key_Values.html index f1f2a230..02ba78fe 100644 --- a/docs/test/With_Group_Key_Values.html +++ b/docs/test/With_Group_Key_Values.html @@ -1,24 +1,24 @@ Benchmark Data - +
- Home + Home

Test With Group Attributes

@@ -137,12 +137,12 @@

Test With Group Attributes

- - + + - - + +
With Group Attributes Ns/OpWith Group Attributes Allocs/OpWith Group Attributes Ns/OpWith Group Attributes Allocs/Op
With Group Attributes Bytes/OpWith Group Attributes GB/SecWith Group Attributes Bytes/OpWith Group Attributes GB/Sec
diff --git a/scripts/pages b/scripts/pages index a3395117..79659957 100755 --- a/scripts/pages +++ b/scripts/pages @@ -2,4 +2,4 @@ # Get pages from server -wget -r localhost:8080 -nH -P docs +wget -r localhost:8080/go-slog -nH --cut-dirs=1 -P docs From e2c7a8f06a6ba94ff68b7ecead1b4cbe2f8ecccf Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 16:49:14 -0800 Subject: [PATCH 09/22] Add link to github pages from README.md --- README.md | 2 ++ bench/README.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 352905aa..54980961 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,8 @@ The benchmark data generated can be processed by two applications: * [`server`](cmd/server/server.go) runs a simple web server showing the same tables plus bar charts. +[Recent benchmark data](https://madkins23.github.io/go-slog/index.html). + ## Gin Logging Redirect Package `gin` contains utilities for using `slog` with `gin-gonic/gin`. diff --git a/bench/README.md b/bench/README.md index 64f8dcb1..02b01fe6 100644 --- a/bench/README.md +++ b/bench/README.md @@ -318,6 +318,8 @@ The root page shows links to various test data pages and the warnings: Test pages show the same tables as `tabular` plus charts comparing the results: ![Test pages show the same tables as `tabular` plus charts comparing the results.](../cmd/server/images/test.png) +[Recent benchmark data](https://madkins23.github.io/go-slog/index.html). + --- [^1]: Don't use `-v` in the `go test -bench` command when using `gobenchdata`. From 18678d908f6b66bb4b751cd87749af3090469069 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 17:02:34 -0800 Subject: [PATCH 10/22] Fix comment --- cmd/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server/server.go b/cmd/server/server.go index 3ab78861..2a41fdca 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -44,7 +44,7 @@ var ( ) func main() { - flag.Parse() // Necessary for -json= argument defined in infra package. + flag.Parse() // Necessary for -from= argument defined in internal/bench package. gin.DefaultWriter = ginslog.NewWriter(&ginslog.Options{}) gin.DefaultErrorWriter = ginslog.NewWriter(&ginslog.Options{Level: slog.LevelError}) From 991a5e148e13f54844cc931ef5f9096eef56e968 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 17:03:03 -0800 Subject: [PATCH 11/22] Another try at the pages.yml workflow --- .github/workflows/pages.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 1c7f810b..fae4444d 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -14,7 +14,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} + ref: ${{ github.ref }} - name: Set up Go uses: actions/setup-go@v5 @@ -25,11 +25,14 @@ jobs: - name: Install the latest versions of each library run: go get -u ./... && go mod tidy - - name: Benchmark Go Logging Libraries - run: go test -bench=. bench/*.go > /tmp/bench.txt + - name: Benchmark Go logging libraries + run: go test -bench=. bench/*.go | go run cmd/server/server.go -# - name: Commit benchmark results to repo -# uses: EndBug/add-and-commit@v9 -# with: -# message: Update benchmark results -# commit: '--no-verify' + - name: Get Pages from server + run: wget -r localhost:8080/go-slog -nH --cut-dirs=1 -P docs + + - name: Commit benchmark results to repo + uses: EndBug/add-and-commit@v9 + with: + message: Update benchmark results + commit: '--no-verify' From d4d3476223ba1565f2361bbbeb3261cdf159ad4c Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 17:36:15 -0800 Subject: [PATCH 12/22] Try to write to /tmp again --- .github/workflows/pages.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index fae4444d..b9355501 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -26,13 +26,16 @@ jobs: run: go get -u ./... && go mod tidy - name: Benchmark Go logging libraries - run: go test -bench=. bench/*.go | go run cmd/server/server.go + run: go test -bench=. bench/*.go > /tmp/bench.txt - - name: Get Pages from server - run: wget -r localhost:8080/go-slog -nH --cut-dirs=1 -P docs - - - name: Commit benchmark results to repo - uses: EndBug/add-and-commit@v9 - with: - message: Update benchmark results - commit: '--no-verify' +# - name: Benchmark Go logging libraries +# run: go run cmd/server/server.go -from=/tmp/bench.txt +# +# - name: Get Pages from server +# run: wget -r localhost:8080/go-slog -nH --cut-dirs=1 -P docs +# +# - name: Commit benchmark results to repo +# uses: EndBug/add-and-commit@v9 +# with: +# message: Update benchmark results +# commit: '--no-verify' From c3d389bd961617e2071209e889a807fbf49f1885 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 17:43:41 -0800 Subject: [PATCH 13/22] Wrap command in quotes due to use of '>' --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b9355501..bb8d6c90 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -26,7 +26,7 @@ jobs: run: go get -u ./... && go mod tidy - name: Benchmark Go logging libraries - run: go test -bench=. bench/*.go > /tmp/bench.txt + run: 'go test -bench=. bench/*.go > /tmp/bench.txt' # - name: Benchmark Go logging libraries # run: go run cmd/server/server.go -from=/tmp/bench.txt From bb0879fb37dcad56a11885e057008a5a4482542f Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 18:40:49 -0800 Subject: [PATCH 14/22] Update dependencies and add gin-utils --- go.mod | 21 +++++++++++---------- go.sum | 26 ++++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index f3da7a0a..9cfb6a9d 100644 --- a/go.mod +++ b/go.mod @@ -6,14 +6,15 @@ require ( github.com/dmarkham/enumer v1.5.9 github.com/gertd/go-pluralize v0.2.1 github.com/gin-gonic/gin v1.9.1 + github.com/madkins23/gin-utils v1.4.1 github.com/madkins23/go-utils v1.44.0 github.com/phsym/console-slog v0.3.1 github.com/phsym/zeroslog v0.1.0 github.com/rs/zerolog v1.31.0 - github.com/samber/slog-zap/v2 v2.2.0 + github.com/samber/slog-zap/v2 v2.3.0 github.com/samber/slog-zerolog/v2 v2.2.0 github.com/stretchr/testify v1.8.4 - github.com/vicanso/go-charts/v2 v2.6.3 + github.com/vicanso/go-charts/v2 v2.6.4 go.uber.org/zap v1.26.0 golang.org/x/text v0.14.0 ) @@ -29,12 +30,12 @@ require ( github.com/gin-contrib/sse v0.1.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/go-playground/validator/v10 v10.17.0 // indirect + github.com/go-playground/validator/v10 v10.18.0 // indirect github.com/goccy/go-json v0.10.2 // indirect github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/cpuid/v2 v2.2.6 // indirect - github.com/leodido/go-urn v1.2.4 // indirect + github.com/leodido/go-urn v1.4.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect @@ -49,13 +50,13 @@ require ( github.com/wcharczuk/go-chart/v2 v2.1.1 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/arch v0.7.0 // indirect - golang.org/x/crypto v0.18.0 // indirect - golang.org/x/exp v0.0.0-20240119083558-1b970713d09a // indirect + golang.org/x/crypto v0.19.0 // indirect + golang.org/x/exp v0.0.0-20240213143201-ec583247a57a // indirect golang.org/x/image v0.15.0 // indirect - golang.org/x/mod v0.14.0 // indirect - golang.org/x/net v0.20.0 // indirect - golang.org/x/sys v0.16.0 // indirect - golang.org/x/tools v0.17.0 // indirect + golang.org/x/mod v0.15.0 // indirect + golang.org/x/net v0.21.0 // indirect + golang.org/x/sys v0.17.0 // indirect + golang.org/x/tools v0.18.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 4da33d06..d4febd4c 100644 --- a/go.sum +++ b/go.sum @@ -35,6 +35,8 @@ github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJn github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= github.com/go-playground/validator/v10 v10.17.0 h1:SmVVlfAOtlZncTxRuinDPomC2DkXJ4E5T9gDA0AIH74= github.com/go-playground/validator/v10 v10.17.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= +github.com/go-playground/validator/v10 v10.18.0 h1:BvolUXjp4zuvkZ5YN5t7ebzbhlUtPsPm2S9NAZ5nl9U= +github.com/go-playground/validator/v10 v10.18.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -53,6 +55,10 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= +github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ= +github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI= +github.com/madkins23/gin-utils v1.4.1 h1:brlbRxgUdCH5wqQFjV7bis9DtSs4y+NG70tm8OlaXrQ= +github.com/madkins23/gin-utils v1.4.1/go.mod h1:EiZHG6Qh+eTFbIXAYNLsRQNsB7iqLCLwCUNGty8IMD0= github.com/madkins23/go-utils v1.44.0 h1:liX2csY9AX8yl74O/5hz1eXXn2UIgxyZAWi1CPya75E= github.com/madkins23/go-utils v1.44.0/go.mod h1:UcYKE2WuNHfln6era5gIGctgz8O0Rv9FkmavxJfdTuM= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= @@ -70,8 +76,6 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/pascaldekloe/name v1.0.0 h1:n7LKFgHixETzxpRv2R77YgPUFo85QHGZKrdaYm7eY5U= -github.com/pascaldekloe/name v1.0.0/go.mod h1:Z//MfYJnH4jVpQ9wkclwu2I2MkHmXTlT9wR5UZScttM= github.com/pascaldekloe/name v1.0.1 h1:9lnXOHeqeHHnWLbKfH6X98+4+ETVqFqxN09UXSjcMb0= github.com/pascaldekloe/name v1.0.1/go.mod h1:Z//MfYJnH4jVpQ9wkclwu2I2MkHmXTlT9wR5UZScttM= github.com/pelletier/go-toml/v2 v2.1.1 h1:LWAJwfNvjQZCFIDKWYQaM62NcYeYViCmWIwmOStowAI= @@ -86,12 +90,16 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A= github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= +github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= +github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/samber/lo v1.39.0 h1:4gTz1wUhNYLhFSKl6O+8peW0v2F4BCY034GRpU9WnuA= github.com/samber/lo v1.39.0/go.mod h1:+m/ZKRl6ClXCE2Lgf3MsQlWfh4bn1bz6CXEOxnEXnEA= github.com/samber/slog-common v0.15.0 h1:pPUhFBPsKwjdzmUyOj1F5Ow5bw3w6hkole5CqJDNZoY= github.com/samber/slog-common v0.15.0/go.mod h1:Qjrfhwk79XiCIhBj8+jTq1Cr0u9rlWbjawh3dWXzaHk= github.com/samber/slog-zap/v2 v2.2.0 h1:O9FevxkLKqv+7jxluk8krVlcdI9G+W8HlPv8WDvHbLQ= github.com/samber/slog-zap/v2 v2.2.0/go.mod h1:QOtMMGqrKKQHkljDp9W6jUgEkImPOWgqHPvlRdyexLo= +github.com/samber/slog-zap/v2 v2.3.0 h1:llAvuHMc1N9GL76Yf1FKqWYhWRcwVFVv0XCx8gLo6Uk= +github.com/samber/slog-zap/v2 v2.3.0/go.mod h1:QOtMMGqrKKQHkljDp9W6jUgEkImPOWgqHPvlRdyexLo= github.com/samber/slog-zerolog/v2 v2.2.0 h1:GuhJLIJbzDnFvQPbuef+XF9FNtGMkrgKgnA8LKh2eF0= github.com/samber/slog-zerolog/v2 v2.2.0/go.mod h1:oxa8Slik/+fvMZrl3Rln1lmX9QDVhb2Xf7A30Ve7XbM= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -111,6 +119,8 @@ github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65E github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= github.com/vicanso/go-charts/v2 v2.6.3 h1:AP+zVZw27nt7kjxY5js70M3YfroDRCodrpdqW/Gdxh4= github.com/vicanso/go-charts/v2 v2.6.3/go.mod h1:Ii2KDI3udTG1wPtiTnntzjlUBJVJTqNscMzh3oYHzUk= +github.com/vicanso/go-charts/v2 v2.6.4 h1:sXVZ9nXK/aS/Ic7z8Z7Di77tF9u0BdAK3RpZ1xPuJXM= +github.com/vicanso/go-charts/v2 v2.6.4/go.mod h1:Ii2KDI3udTG1wPtiTnntzjlUBJVJTqNscMzh3oYHzUk= github.com/wcharczuk/go-chart/v2 v2.1.1 h1:2u7na789qiD5WzccZsFz4MJWOJP72G+2kUuJoSNqWnE= github.com/wcharczuk/go-chart/v2 v2.1.1/go.mod h1:CyCAUt2oqvfhCl6Q5ZvAZwItgpQKZOkCJGb+VGv6l14= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= @@ -127,8 +137,12 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= +golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo= +golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/exp v0.0.0-20240119083558-1b970713d09a h1:Q8/wZp0KX97QFTc2ywcOE0YRjZPVIx+MXInMzdvQqcA= golang.org/x/exp v0.0.0-20240119083558-1b970713d09a/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08= +golang.org/x/exp v0.0.0-20240213143201-ec583247a57a h1:HinSgX1tJRX3KsL//Gxynpw5CTOAIPhgL4W8PNiIpVE= +golang.org/x/exp v0.0.0-20240213143201-ec583247a57a/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc= golang.org/x/image v0.11.0/go.mod h1:bglhjqbqVuEb9e9+eNR45Jfu7D+T4Qan+NhQk8Ck2P8= golang.org/x/image v0.15.0 h1:kOELfmgrmJlw4Cdb7g/QGuB3CvDrXbqEIww/pNtNBm8= golang.org/x/image v0.15.0/go.mod h1:HUYqC05R2ZcZ3ejNQsIHQDQiwWM4JBqmm6MKANTp4LE= @@ -136,12 +150,16 @@ golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91 golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= +golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= +golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -158,6 +176,8 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= @@ -174,6 +194,8 @@ golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= +golang.org/x/tools v0.18.0 h1:k8NLag8AGHnn+PHbl7g43CtqZAwG60vZkLqgyZgIHgQ= +golang.org/x/tools v0.18.0/go.mod h1:GL7B4CwcLLeo59yx/9UWWuNOW1n3VZ4f5axWfML7Lcg= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= From 0aeccb34faf1e3f4a6b4d99ba3e200acd64f9f51 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 18:41:38 -0800 Subject: [PATCH 15/22] Add graceful exit to server --- cmd/server/server.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/cmd/server/server.go b/cmd/server/server.go index 2a41fdca..55478b7b 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -17,6 +17,9 @@ import ( "github.com/vicanso/go-charts/v2" "golang.org/x/text/message" + "github.com/madkins23/gin-utils/pkg/handler" + "github.com/madkins23/gin-utils/pkg/shutdown" + ginslog "github.com/madkins23/go-slog/gin" "github.com/madkins23/go-slog/internal/bench" "github.com/madkins23/go-slog/internal/language" @@ -27,6 +30,8 @@ import ( type pageType string +const port = 8080 + const ( pageRoot = "root" pageTest = "bench" @@ -59,6 +64,10 @@ func main() { return } + graceful := &shutdown.Graceful{} + graceful.Initialize() + defer graceful.Close() + router := gin.Default() rootPageFn := pageFunction(pageRoot) router.GET("/go-slog/", rootPageFn) @@ -68,6 +77,7 @@ func main() { router.GET("/go-slog/chart/:tag/:item", chartFunction) router.GET("/go-slog/home.svg", svgFunction(home)) router.GET("/go-slog/style.css", textFunction(css)) + router.GET("/go-slog/exit", handler.Exit) if err := router.SetTrustedProxies(nil); err != nil { slog.Error("Don't trust proxies", "err", err) @@ -76,8 +86,9 @@ func main() { // Listen and serve on 0.0.0.0:8080 (for windows "localhost:8080"). { slog.Info("Web Server @ http://localhost:8080/go-slog") - if err := router.Run(); err != nil { - slog.Error("Error during ListenAndServe()", "err", err) + + if err := graceful.Serve(router, port); err != nil { + slog.Error("Running gin server", "err", err) } } From 870686135c4df2c1b9289573d5bd86870bac1381 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 18:42:25 -0800 Subject: [PATCH 16/22] Fix script/pages to wait for server to start and then exit server after downloading pages --- scripts/pages | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/pages b/scripts/pages index 79659957..a6d98f40 100755 --- a/scripts/pages +++ b/scripts/pages @@ -1,5 +1,10 @@ #!/bin/bash +# Wait for server to be available +curl -s --head -X GET --retry 10 --retry-connrefused --retry-delay 5 http://localhost:8080/go-slog/ + # Get pages from server +wget -r localhost:8080/go-slog -nH -nv --cut-dirs=1 -P docs -wget -r localhost:8080/go-slog -nH --cut-dirs=1 -P docs +# Shut down server +curl -s -X GET http://localhost:8080/go-slog/exit From f23d5ad8c46d85ea6450f54be992fa662109fc46 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 18:45:59 -0800 Subject: [PATCH 17/22] Don't download /go-slog/, use /go-slog/index.html --- scripts/pages | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pages b/scripts/pages index a6d98f40..5d0e4709 100755 --- a/scripts/pages +++ b/scripts/pages @@ -1,10 +1,10 @@ #!/bin/bash # Wait for server to be available -curl -s --head -X GET --retry 10 --retry-connrefused --retry-delay 5 http://localhost:8080/go-slog/ +curl -s --head -X GET --retry 10 --retry-connrefused --retry-delay 5 http://localhost:8080/go-slog/index.html # Get pages from server -wget -r localhost:8080/go-slog -nH -nv --cut-dirs=1 -P docs +wget -r localhost:8080/go-slog/index.html -nH -nv --cut-dirs=1 -P docs # Shut down server curl -s -X GET http://localhost:8080/go-slog/exit From 7e18bc4d07a65a0c65b7080d942c8b0024510df8 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 18:51:07 -0800 Subject: [PATCH 18/22] Replace /tmp with runner.temp --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index bb8d6c90..f59946e8 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -26,7 +26,7 @@ jobs: run: go get -u ./... && go mod tidy - name: Benchmark Go logging libraries - run: 'go test -bench=. bench/*.go > /tmp/bench.txt' + run: go test -bench=. bench/*.go > ${{ runner.temp }}/bench.txt # - name: Benchmark Go logging libraries # run: go run cmd/server/server.go -from=/tmp/bench.txt From 2a1363defc5494f0e7d78e1cec6b0c3a6d084c7d Mon Sep 17 00:00:00 2001 From: mAdkins Date: Wed, 14 Feb 2024 19:01:35 -0800 Subject: [PATCH 19/22] Why won't the benchmark work? --- .github/workflows/pages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f59946e8..72068e7b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -26,7 +26,8 @@ jobs: run: go get -u ./... && go mod tidy - name: Benchmark Go logging libraries - run: go test -bench=. bench/*.go > ${{ runner.temp }}/bench.txt + run: go test -bench=. bench/*.go +# run: go test -bench=. bench/*.go > ${{ runner.temp }}/bench.txt # - name: Benchmark Go logging libraries # run: go run cmd/server/server.go -from=/tmp/bench.txt From fe5276c5822639fc48f21a0d80867345184df59f Mon Sep 17 00:00:00 2001 From: mAdkins Date: Thu, 15 Feb 2024 05:55:03 -0800 Subject: [PATCH 20/22] Don't update all libraries before running, zerolog has broken zeroslog --- .github/workflows/pages.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 72068e7b..98dced5b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -22,12 +22,11 @@ jobs: go-version: '1.21' check-latest: true - - name: Install the latest versions of each library - run: go get -u ./... && go mod tidy +# - name: Install the latest versions of each library +# run: go get -u ./... && go mod tidy - name: Benchmark Go logging libraries - run: go test -bench=. bench/*.go -# run: go test -bench=. bench/*.go > ${{ runner.temp }}/bench.txt + run: go test -bench=. bench/*.go > ${{ runner.temp }}/bench.txt # - name: Benchmark Go logging libraries # run: go run cmd/server/server.go -from=/tmp/bench.txt From d190b8f43e7db68fa80b44c967eac6c23e4ec271 Mon Sep 17 00:00:00 2001 From: mAdkins Date: Thu, 15 Feb 2024 06:01:01 -0800 Subject: [PATCH 21/22] Add server, wget, and commit to pages.yml workflow --- .github/workflows/pages.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 98dced5b..0d171f57 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -28,14 +28,17 @@ jobs: - name: Benchmark Go logging libraries run: go test -bench=. bench/*.go > ${{ runner.temp }}/bench.txt + - name: Run Server / Get Pages + run: go run cmd/server/server.go -from=${{ runner.temp }}/bench.txt & scripts/pages + # - name: Benchmark Go logging libraries # run: go run cmd/server/server.go -from=/tmp/bench.txt # # - name: Get Pages from server # run: wget -r localhost:8080/go-slog -nH --cut-dirs=1 -P docs -# -# - name: Commit benchmark results to repo -# uses: EndBug/add-and-commit@v9 -# with: -# message: Update benchmark results -# commit: '--no-verify' + + - name: Commit benchmark results to repo + uses: EndBug/add-and-commit@v9 + with: + message: Update benchmark results + commit: '--no-verify' From 1e0eb5ef8c350f213cb1a5e838c6db17d5bec15d Mon Sep 17 00:00:00 2001 From: madkins23 Date: Thu, 15 Feb 2024 15:37:04 +0000 Subject: [PATCH 22/22] Update benchmark results --- docs/chart/Attributes/GbPerSec.svg | 22 +++--- docs/chart/Attributes/MemBytes.svg | 12 +-- docs/chart/Attributes/Nanos.svg | 22 +++--- docs/chart/Big_Group/GbPerSec.svg | 20 ++--- docs/chart/Big_Group/MemAllocs.svg | 22 +++--- docs/chart/Big_Group/MemBytes.svg | 22 +++--- docs/chart/Big_Group/Nanos.svg | 22 +++--- docs/chart/Disabled/Nanos.svg | 22 +++--- docs/chart/Key_Values/GbPerSec.svg | 22 +++--- docs/chart/Key_Values/MemBytes.svg | 4 +- docs/chart/Key_Values/Nanos.svg | 22 +++--- docs/chart/Logging/GbPerSec.svg | 22 +++--- docs/chart/Logging/MemBytes.svg | 2 +- docs/chart/Logging/Nanos.svg | 22 +++--- docs/chart/Simple/GbPerSec.svg | 22 +++--- docs/chart/Simple/Nanos.svg | 22 +++--- docs/chart/Simple_Source/GbPerSec.svg | 22 +++--- docs/chart/Simple_Source/MemAllocs.svg | 4 +- docs/chart/Simple_Source/MemBytes.svg | 16 ++-- docs/chart/Simple_Source/Nanos.svg | 22 +++--- docs/chart/With_Attrs_Attributes/GbPerSec.svg | 18 ++--- docs/chart/With_Attrs_Attributes/Nanos.svg | 18 ++--- docs/chart/With_Attrs_Key_Values/GbPerSec.svg | 18 ++--- docs/chart/With_Attrs_Key_Values/MemBytes.svg | 14 ++-- docs/chart/With_Attrs_Key_Values/Nanos.svg | 10 +-- docs/chart/With_Attrs_Simple/GbPerSec.svg | 10 +-- docs/chart/With_Attrs_Simple/Nanos.svg | 18 ++--- docs/chart/With_Group_Attributes/GbPerSec.svg | 18 ++--- docs/chart/With_Group_Attributes/MemBytes.svg | 8 +- docs/chart/With_Group_Attributes/Nanos.svg | 18 ++--- docs/chart/With_Group_Key_Values/GbPerSec.svg | 18 ++--- docs/chart/With_Group_Key_Values/MemBytes.svg | 6 +- docs/chart/With_Group_Key_Values/Nanos.svg | 18 ++--- docs/chart/darvaza_zerolog/MemAllocs.svg | 6 +- docs/chart/darvaza_zerolog/MemBytes.svg | 10 +-- docs/chart/darvaza_zerolog/Nanos.svg | 10 +-- docs/chart/phsym_zerolog/MemBytes.svg | 2 +- docs/chart/phsym_zerolog/Nanos.svg | 14 ++-- docs/chart/samber_zap/MemAllocs.svg | 6 +- docs/chart/samber_zap/MemBytes.svg | 6 +- docs/chart/samber_zap/Nanos.svg | 14 ++-- docs/chart/samber_zerolog/MemAllocs.svg | 2 +- docs/chart/samber_zerolog/MemBytes.svg | 6 +- docs/chart/samber_zerolog/Nanos.svg | 22 +++--- docs/chart/slog_JSONHandler/MemAllocs.svg | 4 +- docs/chart/slog_JSONHandler/MemBytes.svg | 2 +- docs/chart/slog_JSONHandler/Nanos.svg | 26 +++---- docs/handler/darvaza_zerolog.html | 38 +++++----- docs/handler/phsym_zerolog.html | 62 +++++++-------- docs/handler/samber_zap.html | 76 +++++++++---------- docs/handler/samber_zerolog.html | 70 ++++++++--------- docs/handler/slog_JSONHandler.html | 58 +++++++------- docs/index.html | 9 ++- docs/test/Attributes.html | 36 ++++----- docs/test/Big_Group.html | 50 ++++++------ docs/test/Disabled.html | 20 ++--- docs/test/Key_Values.html | 40 +++++----- docs/test/Logging.html | 38 +++++----- docs/test/Simple.html | 32 ++++---- docs/test/Simple_Source.html | 38 +++++----- docs/test/With_Attrs_Attributes.html | 28 +++---- docs/test/With_Attrs_Key_Values.html | 32 ++++---- docs/test/With_Attrs_Simple.html | 28 +++---- docs/test/With_Group_Attributes.html | 30 ++++---- docs/test/With_Group_Key_Values.html | 32 ++++---- 65 files changed, 706 insertions(+), 699 deletions(-) diff --git a/docs/chart/Attributes/GbPerSec.svg b/docs/chart/Attributes/GbPerSec.svg index 2834b9c9..75119b0d 100644 --- a/docs/chart/Attributes/GbPerSec.svg +++ b/docs/chart/Attributes/GbPerSec.svg @@ -9,30 +9,30 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0182.2k364.4k546.6kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0131.48k262.96k394.44k \ No newline at end of file diff --git a/docs/chart/Attributes/MemBytes.svg b/docs/chart/Attributes/MemBytes.svg index ec3a5ac3..a3dc121d 100644 --- a/docs/chart/Attributes/MemBytes.svg +++ b/docs/chart/Attributes/MemBytes.svg @@ -16,20 +16,20 @@ L 264 160" style="stroke-width:1;stroke:rgba(224,230,242,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog01.88k3.76k5.64kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog7202.16k3.6k5.04k \ No newline at end of file diff --git a/docs/chart/Big_Group/GbPerSec.svg b/docs/chart/Big_Group/GbPerSec.svg index c4153515..3503c93a 100644 --- a/docs/chart/Big_Group/GbPerSec.svg +++ b/docs/chart/Big_Group/GbPerSec.svg @@ -16,23 +16,23 @@ L 264 160" style="stroke-width:1;stroke:rgba(224,230,242,1.0);fill:none"/> \ No newline at end of file diff --git a/docs/chart/Big_Group/MemAllocs.svg b/docs/chart/Big_Group/MemAllocs.svg index 11fa0ee9..647e3eed 100644 --- a/docs/chart/Big_Group/MemAllocs.svg +++ b/docs/chart/Big_Group/MemAllocs.svg @@ -9,30 +9,30 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog2.76k5.52k8.28k11.04kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog2.72k5.44k8.16k10.88k \ No newline at end of file diff --git a/docs/chart/Big_Group/MemBytes.svg b/docs/chart/Big_Group/MemBytes.svg index b3115f0e..701649f6 100644 --- a/docs/chart/Big_Group/MemBytes.svg +++ b/docs/chart/Big_Group/MemBytes.svg @@ -9,30 +9,30 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog160.16k320.32k480.48k640.64kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog160.44k320.88k481.32k641.76k \ No newline at end of file diff --git a/docs/chart/Big_Group/Nanos.svg b/docs/chart/Big_Group/Nanos.svg index c62dc6bb..f467780c 100644 --- a/docs/chart/Big_Group/Nanos.svg +++ b/docs/chart/Big_Group/Nanos.svg @@ -9,30 +9,30 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog187.2k374.4k561.6k748.8kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog173.72k347.44k521.16k694.88k \ No newline at end of file diff --git a/docs/chart/Disabled/Nanos.svg b/docs/chart/Disabled/Nanos.svg index df0d8b2e..1884758c 100644 --- a/docs/chart/Disabled/Nanos.svg +++ b/docs/chart/Disabled/Nanos.svg @@ -9,30 +9,30 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog2345678Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog34.666.338 \ No newline at end of file diff --git a/docs/chart/Key_Values/GbPerSec.svg b/docs/chart/Key_Values/GbPerSec.svg index 5de735b2..3328f9a2 100644 --- a/docs/chart/Key_Values/GbPerSec.svg +++ b/docs/chart/Key_Values/GbPerSec.svg @@ -9,30 +9,30 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0144.08k288.16k432.24kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog0108.48k216.96k325.44k \ No newline at end of file diff --git a/docs/chart/Key_Values/MemBytes.svg b/docs/chart/Key_Values/MemBytes.svg index 20c3465c..337e0869 100644 --- a/docs/chart/Key_Values/MemBytes.svg +++ b/docs/chart/Key_Values/MemBytes.svg @@ -24,8 +24,8 @@ L 169 119 L 169 132 L 148 132 L 148 119" style="stroke-width:0;stroke:none;fill:rgba(84,112,198,1.0)"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog02.12k4.24k6.36kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog7402.22k3.7k5.18k \ No newline at end of file diff --git a/docs/chart/Logging/GbPerSec.svg b/docs/chart/Logging/GbPerSec.svg index 0fab3124..fcb153c8 100644 --- a/docs/chart/Logging/GbPerSec.svg +++ b/docs/chart/Logging/GbPerSec.svg @@ -9,30 +9,30 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog013.44k26.88k40.32kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog07.8k15.6k23.4k \ No newline at end of file diff --git a/docs/chart/Logging/MemBytes.svg b/docs/chart/Logging/MemBytes.svg index 56ed8ff8..b964c67f 100644 --- a/docs/chart/Logging/MemBytes.svg +++ b/docs/chart/Logging/MemBytes.svg @@ -9,7 +9,7 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog044.6k89.2k133.8kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog044.48k88.96k133.44kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog033.36k66.72k100.08kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog12.86k38.58k64.3k90.02k \ No newline at end of file diff --git a/docs/chart/Simple/GbPerSec.svg b/docs/chart/Simple/GbPerSec.svg index d04c98f2..783e398e 100644 --- a/docs/chart/Simple/GbPerSec.svg +++ b/docs/chart/Simple/GbPerSec.svg @@ -9,30 +9,30 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog272.94k818.82k1.36M1.91MSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog155.34k466.02k776.7k1.08M \ No newline at end of file diff --git a/docs/chart/Simple/Nanos.svg b/docs/chart/Simple/Nanos.svg index 6b546149..b1416549 100644 --- a/docs/chart/Simple/Nanos.svg +++ b/docs/chart/Simple/Nanos.svg @@ -9,30 +9,30 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog180300420540Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog240360480600 \ No newline at end of file diff --git a/docs/chart/Simple_Source/GbPerSec.svg b/docs/chart/Simple_Source/GbPerSec.svg index 9e28ebec..aa554618 100644 --- a/docs/chart/Simple_Source/GbPerSec.svg +++ b/docs/chart/Simple_Source/GbPerSec.svg @@ -9,30 +9,30 @@ L 148 91" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog185.08k370.16k555.24k740.32kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog156.8k313.6k470.4k627.2k \ No newline at end of file diff --git a/docs/chart/Simple_Source/MemAllocs.svg b/docs/chart/Simple_Source/MemAllocs.svg index 8ab45e99..1e37247b 100644 --- a/docs/chart/Simple_Source/MemAllocs.svg +++ b/docs/chart/Simple_Source/MemAllocs.svg @@ -24,8 +24,8 @@ L 186 119 L 186 132 L 148 132 L 148 119" style="stroke-width:0;stroke:none;fill:rgba(84,112,198,1.0)"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog4808001.12k1.44kSlog JSONHandlerSamber ZerologSamber ZapPhsym ZerologDarvaza Zerolog4207009801.26k \ No newline at end of file diff --git a/docs/chart/With_Attrs_Attributes/GbPerSec.svg b/docs/chart/With_Attrs_Attributes/GbPerSec.svg index 73f5a9ab..50efee36 100644 --- a/docs/chart/With_Attrs_Attributes/GbPerSec.svg +++ b/docs/chart/With_Attrs_Attributes/GbPerSec.svg @@ -8,26 +8,26 @@ L 148 68" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0314.16k628.32k942.48kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0252.96k505.92k758.88k \ No newline at end of file diff --git a/docs/chart/With_Attrs_Attributes/Nanos.svg b/docs/chart/With_Attrs_Attributes/Nanos.svg index bafc73b0..1c6340d6 100644 --- a/docs/chart/With_Attrs_Attributes/Nanos.svg +++ b/docs/chart/With_Attrs_Attributes/Nanos.svg @@ -8,26 +8,26 @@ L 148 68" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog03.68k7.36k11.04kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog02.52k5.04k7.56k \ No newline at end of file diff --git a/docs/chart/With_Attrs_Key_Values/GbPerSec.svg b/docs/chart/With_Attrs_Key_Values/GbPerSec.svg index 67466c7f..1aeadcc9 100644 --- a/docs/chart/With_Attrs_Key_Values/GbPerSec.svg +++ b/docs/chart/With_Attrs_Key_Values/GbPerSec.svg @@ -8,26 +8,26 @@ L 148 68" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0180.76k361.52k542.28kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0213k426k639k \ No newline at end of file diff --git a/docs/chart/With_Attrs_Key_Values/MemBytes.svg b/docs/chart/With_Attrs_Key_Values/MemBytes.svg index 3ee2956d..292be765 100644 --- a/docs/chart/With_Attrs_Key_Values/MemBytes.svg +++ b/docs/chart/With_Attrs_Key_Values/MemBytes.svg @@ -8,7 +8,7 @@ L 148 68" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.44k8.88k13.32kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.4k8.8k13.2k \ No newline at end of file diff --git a/docs/chart/With_Attrs_Key_Values/Nanos.svg b/docs/chart/With_Attrs_Key_Values/Nanos.svg index c3a13c68..72c125ae 100644 --- a/docs/chart/With_Attrs_Key_Values/Nanos.svg +++ b/docs/chart/With_Attrs_Key_Values/Nanos.svg @@ -8,7 +8,7 @@ L 148 68" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog03.52k7.04k10.56kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog02.6k5.2k7.8kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog02.83M5.66M8.50MSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog02.19M4.39M6.59M \ No newline at end of file diff --git a/docs/chart/With_Attrs_Simple/Nanos.svg b/docs/chart/With_Attrs_Simple/Nanos.svg index 6a5b9840..6514c8d5 100644 --- a/docs/chart/With_Attrs_Simple/Nanos.svg +++ b/docs/chart/With_Attrs_Simple/Nanos.svg @@ -8,26 +8,26 @@ L 148 68" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog02.36k4.72k7.08kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog01.52k3.04k4.56k \ No newline at end of file diff --git a/docs/chart/With_Group_Attributes/GbPerSec.svg b/docs/chart/With_Group_Attributes/GbPerSec.svg index 6d0b01ff..18716ac8 100644 --- a/docs/chart/With_Group_Attributes/GbPerSec.svg +++ b/docs/chart/With_Group_Attributes/GbPerSec.svg @@ -8,26 +8,26 @@ L 148 68" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0156.56k313.12k469.68kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0126.32k252.64k378.96k \ No newline at end of file diff --git a/docs/chart/With_Group_Attributes/MemBytes.svg b/docs/chart/With_Group_Attributes/MemBytes.svg index 8e1d40af..b3a0d7f9 100644 --- a/docs/chart/With_Group_Attributes/MemBytes.svg +++ b/docs/chart/With_Group_Attributes/MemBytes.svg @@ -19,12 +19,12 @@ L 157 121 L 157 134 L 148 134 L 148 121" style="stroke-width:0;stroke:none;fill:rgba(84,112,198,1.0)"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.28k8.56k12.84kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog02.84k5.68k8.52k \ No newline at end of file diff --git a/docs/chart/With_Group_Key_Values/GbPerSec.svg b/docs/chart/With_Group_Key_Values/GbPerSec.svg index 1aec812e..1ae3d27a 100644 --- a/docs/chart/With_Group_Key_Values/GbPerSec.svg +++ b/docs/chart/With_Group_Key_Values/GbPerSec.svg @@ -8,26 +8,26 @@ L 148 68" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0122.44k244.88k367.32kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog0101.48k202.96k304.44k \ No newline at end of file diff --git a/docs/chart/With_Group_Key_Values/MemBytes.svg b/docs/chart/With_Group_Key_Values/MemBytes.svg index cb64f8ed..853c8cbe 100644 --- a/docs/chart/With_Group_Key_Values/MemBytes.svg +++ b/docs/chart/With_Group_Key_Values/MemBytes.svg @@ -8,7 +8,7 @@ L 148 68" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Slog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.72k9.44k14.16kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.68k9.36k14.04kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog04.52k9.04k13.56kSlog JSONHandlerSamber ZerologSamber ZapPhsym Zerolog02.8k5.6k8.4k \ No newline at end of file diff --git a/docs/chart/darvaza_zerolog/MemAllocs.svg b/docs/chart/darvaza_zerolog/MemAllocs.svg index 9c8423ae..00be3a04 100644 --- a/docs/chart/darvaza_zerolog/MemAllocs.svg +++ b/docs/chart/darvaza_zerolog/MemAllocs.svg @@ -11,7 +11,7 @@ L 120 133" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>Simple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes03.84k7.68k11.52kSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes03.88k7.76k11.64kSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0236.88k473.76k710.64kSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0231.64k463.28k694.92kSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0208.68k417.36k626.04kSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0243.08k486.16k729.24kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0140.64k281.28kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0130.5k261kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0135.48k270.96kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0127.14k254.28k \ No newline at end of file diff --git a/docs/chart/samber_zap/MemAllocs.svg b/docs/chart/samber_zap/MemAllocs.svg index 4675f3c8..139e748d 100644 --- a/docs/chart/samber_zap/MemAllocs.svg +++ b/docs/chart/samber_zap/MemAllocs.svg @@ -16,7 +16,7 @@ L 177 236" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>With Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes05.88k11.76kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes05.76k11.52kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0352.86k705.72kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0337.92k675.84kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0384.48k768.96kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0348.36k696.72k \ No newline at end of file diff --git a/docs/chart/samber_zerolog/MemAllocs.svg b/docs/chart/samber_zerolog/MemAllocs.svg index cb089e96..11edb41e 100644 --- a/docs/chart/samber_zerolog/MemAllocs.svg +++ b/docs/chart/samber_zerolog/MemAllocs.svg @@ -16,7 +16,7 @@ L 177 236" style="stroke-width:1;stroke:rgba(110,112,121,1.0);fill:none"/>With Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes05.76k11.52kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes03.8k7.6k11.4kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0353.52k707.04kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0343.2k686.4kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0391.62k783.24kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0363.72k727.44k \ No newline at end of file diff --git a/docs/chart/slog_JSONHandler/MemAllocs.svg b/docs/chart/slog_JSONHandler/MemAllocs.svg index bce9d565..d5ce1dc6 100644 --- a/docs/chart/slog_JSONHandler/MemAllocs.svg +++ b/docs/chart/slog_JSONHandler/MemAllocs.svg @@ -27,8 +27,8 @@ L 177 283 L 177 294 L 177 294 L 177 283" style="stroke-width:0;stroke:none;fill:rgba(84,112,198,1.0)"/>With Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0158.88k317.76kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0156.78k313.56kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0201.72k403.44kWith Group Key ValuesWith Group AttributesWith Attrs SimpleWith Attrs Key ValuesWith Attrs AttributesSimple SourceSimpleLoggingKey ValuesDisabledBig GroupAttributes0140.04k280.08k \ No newline at end of file diff --git a/docs/handler/darvaza_zerolog.html b/docs/handler/darvaza_zerolog.html index 67fea455..2b879bc4 100644 --- a/docs/handler/darvaza_zerolog.html +++ b/docs/handler/darvaza_zerolog.html @@ -96,26 +96,26 @@

Handler Darvaza Zerolog

- - + + - + - - - - + + + + - - + + @@ -123,26 +123,26 @@

Handler Darvaza Zerolog

- - + + - + - - + + - + - - + + @@ -151,9 +151,9 @@

Handler Darvaza Zerolog

- + - + diff --git a/docs/handler/phsym_zerolog.html b/docs/handler/phsym_zerolog.html index 4e882fe3..153150f9 100644 --- a/docs/handler/phsym_zerolog.html +++ b/docs/handler/phsym_zerolog.html @@ -96,8 +96,8 @@

Handler Phsym Zerolog

- - + + @@ -105,17 +105,17 @@

Handler Phsym Zerolog

- - - - + + + + - - + + @@ -123,17 +123,17 @@

Handler Phsym Zerolog

- - + + - + - - + + @@ -141,8 +141,8 @@

Handler Phsym Zerolog

- - + + @@ -150,17 +150,17 @@

Handler Phsym Zerolog

- - + + - + - - + + @@ -168,17 +168,17 @@

Handler Phsym Zerolog

- - + + - + - - + + @@ -186,19 +186,19 @@

Handler Phsym Zerolog

- - + + - + - - + + - + diff --git a/docs/handler/samber_zap.html b/docs/handler/samber_zap.html index 5705b499..43926c0e 100644 --- a/docs/handler/samber_zap.html +++ b/docs/handler/samber_zap.html @@ -96,26 +96,26 @@

Handler Samber Zap

- - + + - + - - - - + + + + - - + + @@ -123,82 +123,82 @@

Handler Samber Zap

- - + + - + - - - - + + + + - - + + - + - - - - + + + + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + diff --git a/docs/handler/samber_zerolog.html b/docs/handler/samber_zerolog.html index 955d5431..ba932939 100644 --- a/docs/handler/samber_zerolog.html +++ b/docs/handler/samber_zerolog.html @@ -96,26 +96,26 @@

Handler Samber Zerolog

- - + + - + - - - - + + + + - - + + @@ -123,26 +123,26 @@

Handler Samber Zerolog

- - + + - + - - + + - + - - + + @@ -150,55 +150,55 @@

Handler Samber Zerolog

- - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + diff --git a/docs/handler/slog_JSONHandler.html b/docs/handler/slog_JSONHandler.html index 9f3a981e..d31f3d5c 100644 --- a/docs/handler/slog_JSONHandler.html +++ b/docs/handler/slog_JSONHandler.html @@ -96,8 +96,8 @@

Handler Slog JSONHandler

- - + + @@ -105,17 +105,17 @@

Handler Slog JSONHandler

- - - - + + + + - - + + @@ -123,17 +123,17 @@

Handler Slog JSONHandler

- - + + - + - - + + @@ -141,8 +141,8 @@

Handler Slog JSONHandler

- - + + @@ -150,8 +150,8 @@

Handler Slog JSONHandler

- - + + @@ -159,8 +159,8 @@

Handler Slog JSONHandler

- - + + @@ -168,17 +168,17 @@

Handler Slog JSONHandler

- - + + - + - - + + @@ -186,8 +186,8 @@

Handler Slog JSONHandler

- - + + @@ -195,10 +195,10 @@

Handler Slog JSONHandler

- - + + - + diff --git a/docs/index.html b/docs/index.html index cef6fe57..d47cf54d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -71,12 +71,19 @@ Implied 1 [SourceKey] Source data not logged when AddSource flag set Benchmark_slog_phsym_zerolog: Simple_Source: no source key - {"level":"info","caller":"/home/marc/work/go/src/github.com/madkins23/go-slog/bench/tests/benchmarks.go:69","time":"2024-02-12T09:00:09-08:00","message":"This is a message"} + {"level":"info","caller":"/home/runner/work/go-slog/go-slog/bench/tests/benchmarks.go:69","time":"2024-02-15T15:35:48Z","message":"This is a message"} + +Warnings for samber/slog-zap: + Implied + 1 [SourceKey] Source data not logged when AddSource flag set + Benchmark_slog_samber_zap: Simple_Source: no source key + {"level":"info","time":"2024-02-15T15:36:05Z","caller":"tests/benchmarks.go:69","msg":"This is a message"} Handlers by warning: Implied [SourceKey] Source data not logged when AddSource flag set phsym/zeroslog + samber/slog-zap Administrative [NoHandlerCreation] Test depends on unavailable handler creation darvaza/zerolog diff --git a/docs/test/Attributes.html b/docs/test/Attributes.html index 0dc43e99..30134006 100644 --- a/docs/test/Attributes.html +++ b/docs/test/Attributes.html @@ -96,47 +96,47 @@

Test Attributes

- - + + - - + + - - + + - + - - + + - - + + - - + + - - + + - - + + - +
- Home + Home

Test With Group Key Values

@@ -137,12 +137,12 @@

Test With Group Key Values

- - + + - - + +
With Group Key Values Ns/OpWith Group Key Values Allocs/OpWith Group Key Values Ns/OpWith Group Key Values Allocs/Op
With Group Key Values Bytes/OpWith Group Key Values GB/SecWith Group Key Values Bytes/OpWith Group Key Values GB/Sec
Attributes342,7863,663.00270,3724,148.00 584,9794,973 0.00
Big Group2,020569,022.0010,464645,9531,927662,863.0010,480631,661 0.00
Disabled500,431,2362.43322,561,8823.96 0 0 0.00
Key Values255,5175,451.00255,4174,377.00 595,3635,357 0.00
Logging17,12270,924.0017,09870,538.00 1,17381,69581,635 0.00
Simple2,828,911411.202,870,262419.50 3 360 0.00
Simple Source 1,000,0001,169.001,137.00 121,2421,225 0.00
Attributes1,301,8631,043.001,000,0001,055.00 2 272 0.00
Big Group5,037246,222.003,869255,6575,253231,145.003,866237,250 0.00
Disabled447,516,2492.65322,764,5223.79 0 0 0.00
Key Values1,000,0001,010.00968,5581,234.00 3657656 0.00
Logging71,31716,844.0055,69221,413.00 0 0 0.00
Simple5,075,420232.204,214,778287.50 0 0 0.00
Simple Source2,463,811633.302,246,509543.70 4328312 0.00
With Attrs Attributes1,165,8631,031.001,000,0001,068.00 2 272 0.00
With Attrs Key Values1,049,1921,606.00954,5621,209.00 3657656 0.00
With Attrs Simple4,586,815259.504,116,542292.90 0 0 0.00
With Group Attributes1,091,0361,067.00988,6481,160.00 3561560 0.00
With Group Key Values1,000,0001,250.00890,9341,297.00 4945944 0.00
Attributes182,8935,936.00249,1724,739.00 496,6406,619 0.00
Big Group1,712699,008.0010,612641,4651,914633,296.0010,380614,398 0.00
Disabled377,747,3833.20322,708,5463.72 0 0 0.00
Key Values179,5706,568.00232,9204,938.00 507,0257,004 0.00
Logging11,058104,667.001,021121,53113,69887,587.001,020121,299 0.00
Simple2,378,572499.302,386,876506.20 2337336 0.00
Simple Source939,1801,303.00101,1411,644,858733.505592 0.00
With Attrs Attributes112,52610,867.00151,0217,728.00 7012,17012,138 0.00
With Attrs Key Values103,81610,806.00141,2798,060.00 7112,56312,522 0.00
With Attrs Simple215,0606,609.00278,4674,347.00 445,5945,578 0.00
With Group Attributes96,53612,385.00140,3408,626.00 12212,93012,864 0.00
With Group Key Values90,21912,930.00134,0598,629.00 12313,31213,248 0.00
Attributes193,9545,324.00275,0174,252.00 584,9814,973 0.00
Big Group1,580711,938.0010,448642,6661,862661,253.0010,352623,938 0.00
Disabled399,546,1602.92320,242,4553.72 0 0 0.00
Key Values171,0975,853.00275,5414,386.00 595,3655,357 0.00
Logging14,17085,838.0016,52573,010.00 1,17381,70581,636 0.00
Simple2,572,143451.802,810,491426.50 3 360 0.00
Simple Source970,1081,223.001,000,0001,131.00 121,2431,225 0.00
With Attrs Attributes132,3978,874.00177,9986,960.00 868,7318,712 0.00
With Attrs Key Values125,0319,381.00167,9287,094.00 879,1169,097 0.00
With Attrs Simple263,1334,647.00313,5963,797.00 533,9373,932 0.00
With Group Attributes90,32212,539.00143,6948,468.00 12413,11213,069 0.00
With Group Key Values90,32113,274.00141,1168,609.00 12513,49613,453 0.00
Attributes792,9381,422.00777,0191,508.00 6 472 0.00
Big Group3,622366,731.003,843288,8254,906254,562.003,873284,992 0.00
Disabled380,096,7913.59309,246,9503.87 0 0 0.00
Key Values596,1141,873.00712,2001,652.00 7857856 0.00
Logging40,63430,199.0040,92630,500.00 0 0 0.00
Simple3,118,756402.903,289,813356.60 0 0 0.00
Simple Source1,000,0001,008.001,337,883894.50 6 568 0.00
With Attrs Attributes766,3361,527.00765,3011,524.00 6 472 0.00
With Attrs Key Values599,7912,317.00702,2351,692.00 7858856 0.00
With Attrs Simple2,989,066408.703,173,954365.60 0 0 0.00
With Group Attributes827,4501,511.00714,7831,535.00 6 472 0.00
With Group Key Values630,0791,697.00715,0781,668.00 7857856 0.00
Darvaza Zerolog342,7863,663.00270,3724,148.00 584,97937,996.854,97325,812.72
Phsym Zerolog1,301,8631,043.001,000,0001,055.00 2 272506,897.70375,289.60
Samber Zap182,8935,936.00249,1724,739.00 496,64012,293.986,61920,454.74
Samber Zerolog193,9545,324.00275,0174,252.00 584,98114,791.124,97325,613.79
Slog JSONHandler792,9381,422.00777,0191,508.00 6 472238,635.29215,255.73
diff --git a/docs/test/Big_Group.html b/docs/test/Big_Group.html index b3deaabf..a6bed49e 100644 --- a/docs/test/Big_Group.html +++ b/docs/test/Big_Group.html @@ -96,47 +96,47 @@

Test Big Group

Darvaza Zerolog2,020569,022.0010,464645,95363.241,927662,863.0010,480631,66151.89
Phsym Zerolog5,037246,222.003,869255,657366.815,253231,145.003,866237,250407.69
Samber Zap1,712699,008.0010,612641,46544.221,914633,296.0010,380614,39853.41
Samber Zerolog1,580711,938.0010,448642,66639.481,862661,253.0010,352623,93849.65
Slog JSONHandler3,622366,731.003,843288,825175.824,906254,562.003,873284,992345.99
diff --git a/docs/test/Disabled.html b/docs/test/Disabled.html index c9c7289a..146b1288 100644 --- a/docs/test/Disabled.html +++ b/docs/test/Disabled.html @@ -96,8 +96,8 @@

Test Disabled

Darvaza Zerolog - 500,431,236 - 2.43 + 322,561,882 + 3.96 0 0 0.00 @@ -105,8 +105,8 @@

Test Disabled

Phsym Zerolog - 447,516,249 - 2.65 + 322,764,522 + 3.79 0 0 0.00 @@ -114,8 +114,8 @@

Test Disabled

Samber Zap - 377,747,383 - 3.20 + 322,708,546 + 3.72 0 0 0.00 @@ -123,8 +123,8 @@

Test Disabled

Samber Zerolog - 399,546,160 - 2.92 + 320,242,455 + 3.72 0 0 0.00 @@ -132,8 +132,8 @@

Test Disabled

Slog JSONHandler - 380,096,791 - 3.59 + 309,246,950 + 3.87 0 0 0.00 diff --git a/docs/test/Key_Values.html b/docs/test/Key_Values.html index 40cb4753..ba9129ce 100644 --- a/docs/test/Key_Values.html +++ b/docs/test/Key_Values.html @@ -96,47 +96,47 @@

Test Key Values

Darvaza Zerolog - 255,517 - 5,451.00 + 255,417 + 4,377.00 59 - 5,363 - 19,030.82 + 5,357 + 23,105.96 Phsym Zerolog - 1,000,000 - 1,010.00 + 968,558 + 1,234.00 3 - 657 - 401,800.49 + 656 + 310,854.34 Samber Zap - 179,570 - 6,568.00 + 232,920 + 4,938.00 50 - 7,025 - 10,907.93 + 7,004 + 18,350.23 Samber Zerolog - 171,097 - 5,853.00 + 275,541 + 4,386.00 59 - 5,365 - 11,867.81 + 5,357 + 24,880.19 Slog JSONHandler - 596,114 - 1,873.00 + 712,200 + 1,652.00 7 - 857 - 136,190.53 + 856 + 180,204.80 diff --git a/docs/test/Logging.html b/docs/test/Logging.html index 3672555b..4f8a078e 100644 --- a/docs/test/Logging.html +++ b/docs/test/Logging.html @@ -96,47 +96,47 @@

Test Logging

Darvaza Zerolog - 17,122 - 70,924.00 + 17,098 + 70,538.00 1,173 - 81,695 - 2,131.91 + 81,635 + 2,078.79 Phsym Zerolog - 71,317 - 16,844.00 + 55,692 + 21,413.00 0 0 - 37,389.80 + 22,305.36 Samber Zap - 11,058 - 104,667.00 - 1,021 - 121,531 - 911.43 + 13,698 + 87,587.00 + 1,020 + 121,299 + 1,309.33 Samber Zerolog - 14,170 - 85,838.00 + 16,525 + 73,010.00 1,173 - 81,705 - 1,457.82 + 81,636 + 1,941.08 Slog JSONHandler - 40,634 - 30,199.00 + 40,926 + 30,500.00 0 0 - 12,286.50 + 11,910.54 diff --git a/docs/test/Simple.html b/docs/test/Simple.html index 847fcce0..997f2278 100644 --- a/docs/test/Simple.html +++ b/docs/test/Simple.html @@ -96,47 +96,47 @@

Test Simple

Darvaza Zerolog - 2,828,911 - 411.20 + 2,870,262 + 419.50 3 360 - 564,080.92 + 526,792.02 Phsym Zerolog - 5,075,420 - 232.20 + 4,214,778 + 287.50 0 0 - 1,792,717.73 + 1,128,891.88 Samber Zap - 2,378,572 - 499.30 + 2,386,876 + 506.20 2 - 337 - 371,542.67 + 336 + 344,204.06 Samber Zerolog - 2,572,143 - 451.80 + 2,810,491 + 426.50 3 360 - 466,866.01 + 507,409.93 Slog JSONHandler - 3,118,756 - 402.90 + 3,289,813 + 356.60 0 0 - 680,372.13 + 764,648.01 diff --git a/docs/test/Simple_Source.html b/docs/test/Simple_Source.html index 1f9211bd..7b2160e5 100644 --- a/docs/test/Simple_Source.html +++ b/docs/test/Simple_Source.html @@ -97,46 +97,46 @@

Test Simple Source

Darvaza Zerolog 1,000,000 - 1,169.00 + 1,137.00 12 - 1,242 - 253,162.17 + 1,225 + 240,109.07 Phsym Zerolog - 2,463,811 - 633.30 + 2,246,509 + 543.70 4 - 328 - 676,938.06 + 312 + 623,936.81 Samber Zap - 939,180 - 1,303.00 - 10 - 1,141 - 210,520.38 + 1,644,858 + 733.50 + 5 + 592 + 239,930.03 Samber Zerolog - 970,108 - 1,223.00 + 1,000,000 + 1,131.00 12 - 1,243 - 234,853.54 + 1,225 + 241,464.67 Slog JSONHandler - 1,000,000 - 1,008.00 + 1,337,883 + 894.50 6 568 - 299,611.49 + 417,138.61 diff --git a/docs/test/With_Attrs_Attributes.html b/docs/test/With_Attrs_Attributes.html index 6e2d6263..82d7e9ec 100644 --- a/docs/test/With_Attrs_Attributes.html +++ b/docs/test/With_Attrs_Attributes.html @@ -96,38 +96,38 @@

Test With Attrs Attributes

Phsym Zerolog - 1,165,863 - 1,031.00 + 1,000,000 + 1,068.00 2 272 - 862,053.02 + 699,533.50 Samber Zap - 112,526 - 10,867.00 + 151,021 + 7,728.00 70 - 12,170 - 6,450.94 + 12,138 + 11,881.45 Samber Zerolog - 132,397 - 8,874.00 + 177,998 + 6,960.00 86 - 8,731 - 9,444.05 + 8,712 + 15,805.86 Slog JSONHandler - 766,336 - 1,527.00 + 765,301 + 1,524.00 6 472 - 401,324.10 + 394,112.37 diff --git a/docs/test/With_Attrs_Key_Values.html b/docs/test/With_Attrs_Key_Values.html index ad5e2e06..25392a4f 100644 --- a/docs/test/With_Attrs_Key_Values.html +++ b/docs/test/With_Attrs_Key_Values.html @@ -96,38 +96,38 @@

Test With Attrs Key Values

Phsym Zerolog - 1,049,192 - 1,606.00 + 954,562 + 1,209.00 3 - 657 - 497,820.55 + 656 + 589,559.52 Samber Zap - 103,816 - 10,806.00 + 141,279 + 8,060.00 71 - 12,563 - 5,985.58 + 12,522 + 10,656.76 Samber Zerolog - 125,031 - 9,381.00 + 167,928 + 7,094.00 87 - 9,116 - 8,436.75 + 9,097 + 14,629.71 Slog JSONHandler - 599,791 - 2,317.00 + 702,235 + 1,692.00 7 - 858 - 207,103.01 + 856 + 325,706.09 diff --git a/docs/test/With_Attrs_Simple.html b/docs/test/With_Attrs_Simple.html index 8d41ff00..997f1b52 100644 --- a/docs/test/With_Attrs_Simple.html +++ b/docs/test/With_Attrs_Simple.html @@ -96,38 +96,38 @@

Test With Attrs Simple

Phsym Zerolog - 4,586,815 - 259.50 + 4,116,542 + 292.90 0 0 - 7,740,973.23 + 6,015,989.21 Samber Zap - 215,060 - 6,609.00 + 278,467 + 4,347.00 44 - 5,594 - 14,025.83 + 5,578 + 26,969.19 Samber Zerolog - 263,133 - 4,647.00 + 313,596 + 3,797.00 53 - 3,937 - 24,801.14 + 3,932 + 35,349.10 Slog JSONHandler - 2,989,066 - 408.70 + 3,173,954 + 365.60 0 0 - 3,363,263.05 + 3,905,478.71 diff --git a/docs/test/With_Group_Attributes.html b/docs/test/With_Group_Attributes.html index 44ad0a9e..2dad9c18 100644 --- a/docs/test/With_Group_Attributes.html +++ b/docs/test/With_Group_Attributes.html @@ -96,38 +96,38 @@

Test With Group Attributes

Phsym Zerolog - 1,091,036 - 1,067.00 + 988,648 + 1,160.00 3 - 561 - 429,268.71 + 560 + 349,525.31 Samber Zap - 96,536 - 12,385.00 + 140,340 + 8,626.00 122 - 12,930 - 3,024.37 + 12,864 + 6,149.93 Samber Zerolog - 90,322 - 12,539.00 + 143,694 + 8,468.00 124 - 13,112 - 2,823.76 + 13,069 + 6,482.34 Slog JSONHandler - 827,450 - 1,511.00 + 714,783 + 1,535.00 6 472 - 241,966.37 + 201,160.59 diff --git a/docs/test/With_Group_Key_Values.html b/docs/test/With_Group_Key_Values.html index 02ba78fe..a6ffbee0 100644 --- a/docs/test/With_Group_Key_Values.html +++ b/docs/test/With_Group_Key_Values.html @@ -96,38 +96,38 @@

Test With Group Key Values

Phsym Zerolog - 1,000,000 - 1,250.00 + 890,934 + 1,297.00 4 - 945 - 336,011.95 + 944 + 281,553.81 Samber Zap - 90,219 - 12,930.00 + 134,059 + 8,629.00 123 - 13,312 - 2,707.19 + 13,248 + 5,872.53 Samber Zerolog - 90,321 - 13,274.00 + 141,116 + 8,609.00 125 - 13,496 - 2,667.25 + 13,453 + 6,261.57 Slog JSONHandler - 630,079 - 1,697.00 + 715,078 + 1,668.00 7 - 857 - 164,092.06 + 856 + 185,168.10