Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
8000 Improve logger performance · Issue #9 · logur/logur · GitHub {"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve logger performance","articleBody":"Try playing with fields and disabled levels in Zap and Hclog\r\n\r\n\u003cdetails\u003e\u003csummary\u003eOriginal benchmark results\u003c/summary\u003e\u003cbr\u003e\u003cpre\u003e\r\ngoos: darwin\r\ngoarch: amd64\r\npkg: github.com/goph/logur/benchmarks\r\nBenchmarkDisabledWithoutFields/zap-12 \t100000000\t 12.9 ns/op\t 32 B/op\t 2 allocs/op\r\nBenchmarkDisabledWithoutFields/hclog-12 \t50000000\t 33.1 ns/op\t 96 B/op\t 3 allocs/op\r\nBenchmarkDisabledWithoutFields/zerolog-12 \t20000000\t 61.9 ns/op\t 96 B/op\t 3 allocs/op\r\nBenchmarkDisabledWithoutFields/kitlog-12 \t20000000\t 113 ns/op\t 288 B/op\t 8 allocs/op\r\nBenchmarkDisabledWithoutFields/logrus-12 \t100000000\t 13.9 ns/op\t 32 B/op\t 2 allocs/op\r\nBenchmarkDisabledAccumulatedContext/logrus-12 \t100000000\t 13.7 ns/op\t 32 B/op\t 2 allocs/op\r\nBenchmarkDisabledAccumulatedContext/zap-12 \t100000000\t 16.0 ns/op\t 32 B/op\t 2 allocs/op\r\nBenchmarkDisabledAccumulatedContext/hclog-12 \t30000000\t 39.2 ns/op\t 96 B/op\t 3 allocs/op\r\nBenchmarkDisabledAccumulatedContext/zerolog-12 \t20000000\t 75.1 ns/op\t 96 B/op\t 3 allocs/op\r\nBenchmarkDisabledAccumulatedContext/kitlog-12 \t 5000000\t 261 ns/op\t 1249 B/op\t 8 allocs/op\r\nBenchmarkDisabledAddingFields/logrus-12 \t 3000000\t 487 ns/op\t 1580 B/op\t 15 allocs/op\r\nBenchmarkDisabledAddingFields/zap-12 \t 300000\t 4693 ns/op\t 8742 B/op\t 73 allocs/op\r\nBenchmarkDisabledAddingFields/hclog-12 \t 1000000\t 1184 ns/op\t 3507 B/op\t 40 allocs/op\r\nBenchmarkDisabledAddingFields/zerolog-12 \t 300000\t 4690 ns/op\t 7707 B/op\t 58 allocs/op\r\nBenchmarkDisabledAddingFields/kitlog-12 \t 2000000\t 851 ns/op\t 2946 B/op\t 32 allocs/op\r\nBenchmarkWithoutFields/zap-12 \t10000000\t 207 ns/op\t 96 B/op\t 3 allocs/op\r\nBenchmarkWithoutFields/hclog-12 \t 2000000\t 686 ns/op\t 128 B/op\t 4 allocs/op\r\nBenchmarkWithoutFields/zerolog-12 \t20000000\t 71.1 ns/op\t 96 B/op\t 3 allocs/op\r\nBenchmarkWithoutFields/kitlog-12 \t 3000000\t 538 ns/op\t 1058 B/op\t 21 allocs/op\r\nBenchmarkWithoutFields/logrus-12 \t 500000\t 2936 ns/op\t 513 B/op\t 14 allocs/op\r\nBenchmarkAccumulatedContext/logrus-12 \t 50000\t 27717 ns/op\t 4663 B/op\t 92 allocs/op\r\nBenchmarkAccumulatedContext/zap-12 \t10000000\t 214 ns/op\t 96 B/op\t 3 allocs/op\r\nBenchmarkAccumulatedContext/hclog-12 \t 50000\t 26948 ns/op\t 8089 B/op\t 123 allocs/op\r\nBenchmarkAccumulatedContext/zerolog-12 \t20000000\t 78.9 ns/op\t 96 B/op\t 3 allocs/op\r\nBenchmarkAccumulatedContext/kitlog-12 \t 200000\t 6090 ns/op\t 6645 B/op\t 110 allocs/op\r\nBenchmarkAddingFields/logrus-12 \t 50000\t 30147 ns/op\t 6245 B/op\t 106 allocs/op\r\nBenchmarkAddingFields/zap-12 \t 300000\t 5333 ns/op\t 9058 B/op\t 74 allocs/op\r\nBenchmarkAddingFields/hclog-12 \t 50000\t 31727 ns/op\t 11503 B/op\t 160 allocs/op\r\nBenchmarkAddingFields/zerolog-12 \t 300000\t 5021 ns/op\t 7707 B/op\t 58 allocs/op\r\nBenchmarkAddingFields/kitlog-12 \t 200000\t 6988 ns/op\t 8374 B/op\t 134 allocs/op\r\nPASS\r\nok \tgithub.com/goph/logur/benchmarks\t50.774s\r\n\u003c/pre\u003e\u003c/details\u003e\r\n\r\n\u003cdetails\u003e\u003csummary\u003eBenchmark results after single message argument\u003c/summary\u003e\u003cbr\u003e\u003cpre\u003e\r\ngoos: darwin\r\ngoarch: amd64\r\npkg: github.com/goph/logur/benchmarks\r\nBenchmarkDisabledWithoutFields/logrus-12 \t200000000\t 6.94 ns/op\t 16 B/op\t 1 allocs/op\r\nBenchmarkDisabledWithoutFields/zap-12 \t200000000\t 8.82 ns/op\t 16 B/op\t 1 allocs/op\r\nBenchmarkDisabledWithoutFields/hclog-12 \t2000000000\t 1.69 ns/op\t 0 B/op\t 0 allocs/op\r\nBenchmarkDisabledWithoutFields/zerolog-12 \t50000000\t 26.1 ns/op\t 0 B/op\t 0 allocs/op\r\nBenchmarkDisabledWithoutFields/kitlog-12 \t20000000\t 76.5 ns/op\t 192 B/op\t 5 allocs/op\r\nBenchmarkDisabledAccumulatedContext/logrus-12 \t200000000\t 8.26 ns/op\t 16 B/op\t 1 allocs/op\r\nBenchmarkDisabledAccumulatedContext/zap-12 \t100000000\t 10.3 ns/op\t 16 B/op\t 1 allocs/op\r\nBenchmarkDisabledAccumulatedContext/hclog-12 \t2000000000\t 1.77 ns/op\t 0 B/op\t 0 allocs/op\r\nBenchmarkDisabledAccumulatedContext/zerolog-12 \t50000000\t 32.6 ns/op\t 0 B/op\t 0 allocs/op\r\nBenchmarkDisabledAccumulatedContext/kitlog-12 \t 5000000\t 236 ns/op\t 1152 B/op\t 5 allocs/op\r\nBenchmarkDisabledAddingFields/logrus-12 \t 3000000\t 512 ns/op\t 1564 B/op\t 14 allocs/op\r\nBenchmarkDisabledAddingFields/zap-12 \t 300000\t 5107 ns/op\t 8728 B/op\t 72 allocs/op\r\nBenchmarkDisabledAddingFields/hclog-12 \t 1000000\t 1215 ns/op\t 3390 B/op\t 36 allocs/op\r\nBenchmarkDisabledAddingFields/zerolog-12 \t 300000\t 4896 ns/op\t 7586 B/op\t 54 allocs/op\r\nBenchmarkDisabledAddingFields/kitlog-12 \t 2000000\t 854 ns/op\t 2830 B/op\t 28 allocs/op\r\nBenchmarkWithoutFields/logrus-12 \t 500000\t 2981 ns/op\t 497 B/op\t 13 allocs/op\r\nBenchmarkWithoutFields/zap-12 \t10000000\t 200 ns/op\t 80 B/op\t 2 allocs/op\r\nBenchmarkWithoutFields/hclog-12 \t 3000000\t 507 ns/op\t 32 B/op\t 1 allocs/op\r\nBenchmarkWithoutFields/zerolog-12 \t100000000\t 26.2 ns/op\t 0 B/op\t 0 allocs/op\r\nBenchmarkWithoutFields/kitlog-12 \t 3000000\t 501 ns/op\t 961 B/op\t 18 allocs/op\r\nBenchmarkAccumulatedContext/kitlog-12 \t 200000\t 6371 ns/op\t 6534 B/op\t 107 allocs/op\r\nBenchmarkAccumulatedContext/logrus-12 \t 50000\t 28836 ns/op\t 4646 B/op\t 91 allocs/op\r\nBenchmarkAccumulatedContext/zap-12 \t10000000\t 206 ns/op\t 80 B/op\t 2 allocs/op\r\nBenchmarkAccumulatedContext/hclog-12 \t 50000\t 27934 ns/op\t 7993 B/op\t 120 allocs/op\r\nBenchmarkAccumulatedContext/zerolog-12 \t50000000\t 31.1 ns/op\t 0 B/op\t 0 allocs/op\r\nBenchmarkAddingFields/zerolog-12 \t 300000\t 4693 ns/op\t 7587 B/op\t 54 allocs/op\r\nBenchmarkAddingFields/kitlog-12 \t 200000\t 7123 ns/op\t 8243 B/op\t 130 allocs/op\r\nBenchmarkAddingFields/logrus-12 \t 50000\t 31767 ns/op\t 6230 B/op\t 105 allocs/op\r\nBenchmarkAddingFields/zap-12 \t 300000\t 5263 ns/op\t 9048 B/op\t 73 allocs/op\r\nBenchmarkAddingFields/hclog-12 \t 50000\t 32059 ns/op\t 11391 B/op\t 156 allocs/op\r\nPASS\r\nok \tgithub.com/goph/logur/benchmarks\t58.244s\r\n\u003c/pre\u003e\u003c/details\u003e","author":{"url":"https://github.com/sagikazarmark","@type":"Person","name":"sagikazarmark"},"datePublished":"2018-12-11T21:31:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/9/logur/issues/9"}
Nothing Special   »   [go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Improve logger performance #9

@sagikazarmark

Description

@sagikazarmark

Try playing with fields and disabled levels in Zap and Hclog

Original benchmark results
goos: darwin
goarch: amd64
pkg: github.com/goph/logur/benchmarks
BenchmarkDisabledWithoutFields/zap-12     	100000000	        12.9 ns/op	      32 B/op	       2 allocs/op
BenchmarkDisabledWithoutFields/hclog-12   	50000000	        33.1 ns/op	      96 B/op	       3 allocs/op
BenchmarkDisabledWithoutFields/zerolog-12 	20000000	        61.9 ns/op	      96 B/op	       3 allocs/op
BenchmarkDisabledWithoutFields/kitlog-12  	20000000	       113 ns/op	     288 B/op	       8 allocs/op
BenchmarkDisabledWithoutFields/logrus-12  	100000000	        13.9 ns/op	      32 B/op	       2 allocs/op
BenchmarkDisabledAccumulatedContext/logrus-12         	100000000	        13.7 ns/op	      32 B/op	       2 allocs/op
BenchmarkDisabledAccumulatedContext/zap-12            	100000000	        16.0 ns/op	      32 B/op	       2 allocs/op
BenchmarkDisabledAccumulatedContext/hclog-12          	30000000	        39.2 ns/op	      96 B/op	       3 allocs/op
BenchmarkDisabledAccumulatedContext/zerolog-12        	20000000	        75.1 ns/op	      96 B/op	       3 allocs/op
BenchmarkDisabledAccumulatedContext/kitlog-12         	 5000000	       261 ns/op	    1249 B/op	       8 allocs/op
BenchmarkDisabledAddingFields/logrus-12               	 3000000	       487 ns/op	    1580 B/op	      15 allocs/op
BenchmarkDisabledAddingFields/zap-12                  	  300000	      4693 ns/op	    8742 B/op	      73 allocs/op
BenchmarkDisabledAddingFields/hclog-12                	 1000000	      1184 ns/op	    3507 B/op	      40 allocs/op
BenchmarkDisabledAddingFields/zerolog-12              	  300000	      4690 ns/op	    7707 B/op	      58 allocs/op
BenchmarkDisabledAddingFields/kitlog-12               	 2000000	       851 ns/op	    2946 B/op	      32 allocs/op
BenchmarkWithoutFields/zap-12                         	10000000	       207 ns/op	      96 B/op	       3 allocs/op
BenchmarkWithoutFields/hclog-12                       	 2000000	       686 ns/op	     128 B/op	       4 allocs/op
BenchmarkWithoutFields/zerolog-12                     	20000000	        71.1 ns/op	      96 B/op	       3 allocs/op
BenchmarkWithoutFields/kitlog-12                      	 3000000	       538 ns/op	    1058 B/op	      21 allocs/op
BenchmarkWithoutFields/logrus-12                      	  500000	      2936 ns/op	     513 B/op	      14 allocs/op
BenchmarkAccumulatedContext/logrus-12                 	   50000	     27717 ns/op	    4663 B/op	      92 allocs/op
BenchmarkAccumulatedContext/zap-12                    	10000000	       214 ns/op	      96 B/op	       3 allocs/op
BenchmarkAccumulatedContext/hclog-12                  	   50000	     26948 ns/op	    8089 B/op	     123 allocs/op
BenchmarkAccumulatedContext/zerolog-12                	20000000	        78.9 ns/op	      96 B/op	       3 allocs/op
BenchmarkAccumulatedContext/kitlog-12                 	  200000	      6090 ns/op	    6645 B/op	     110 allocs/op
BenchmarkAddingFields/logrus-12                       	   50000	     30147 ns/op	    6245 B/op	     106 allocs/op
BenchmarkAddingFields/zap-12                          	  300000	      5333 ns/op	    9058 B/op	      74 allocs/op
BenchmarkAddingFields/hclog-12                        	   50000	     31727 ns/op	   11503 B/op	     160 allocs/op
BenchmarkAddingFields/zerolog-12                      	  300000	      5021 ns/op	    7707 B/op	      58 allocs/op
BenchmarkAddingFields/kitlog-12                       	  200000	      6988 ns/op	    8374 B/op	     134 allocs/op
PASS
ok  	github.com/goph/logur/benchmarks	50.774s
Benchmark results after single message argument
goos: darwin
goarch: amd64
pkg: github.com/goph/logur/benchmarks
BenchmarkDisabledWithoutFields/logrus-12  	200000000	         6.94 ns/op	      16 B/op	       1 allocs/op
BenchmarkDisabledWithoutFields/zap-12     	200000000	         8.82 ns/op	      16 B/op	       1 allocs/op
BenchmarkDisabledWithoutFields/hclog-12   	2000000000	         1.69 ns/op	       0 B/op	       0 allocs/op
BenchmarkDisabledWithoutFields/zerolog-12 	50000000	        26.1 ns/op	       0 B/op	       0 allocs/op
BenchmarkDisabledWithoutFields/kitlog-12  	20000000	        76.5 ns/op	     192 B/op	       5 allocs/op
BenchmarkDisabledAccumulatedContext/logrus-12         	200000000	         8.26 ns/op	      16 B/op	       1 allocs/op
BenchmarkDisabledAccumulatedContext/zap-12            	100000000	        10.3 ns/op	      16 B/op	       1 allocs/op
BenchmarkDisabledAccumulatedContext/hclog-12          	2000000000	         1.77 ns/op	       0 B/op	       0 allocs/op
BenchmarkDisabledAccumulatedContext/zerolog-12        	50000000	        32.6 ns/op	       0 B/op	       0 allocs/op
BenchmarkDisabledAccumulatedContext/kitlog-12         	 5000000	       236 ns/op	    1152 B/op	       5 allocs/op
BenchmarkDisabledAddingFields/logrus-12               	 3000000	       512 ns/op	    1564 B/op	      14 allocs/op
BenchmarkDisabledAddingFields/zap-12                  	  300000	      5107 ns/op	    8728 B/op	      72 allocs/op
BenchmarkDisabledAddingFields/hclog-12                	 1000000	      1215 ns/op	    3390 B/op	      36 allocs/op
BenchmarkDisabledAddingFields/zerolog-12              	  300000	      4896 ns/op	    7586 B/op	      54 allocs/op
BenchmarkDisabledAddingFields/kitlog-12               	 2000000	       854 ns/op	    2830 B/op	      28 allocs/op
BenchmarkWithoutFields/logrus-12                      	  500000	      2981 ns/op	     497 B/op	      13 allocs/op
BenchmarkWithoutFields/zap-12                         	10000000	       200 ns/op	      80 B/op	       2 allocs/op
BenchmarkWithoutFields/hclog-12                       	 3000000	       507 ns/op	      32 B/op	       1 allocs/op
BenchmarkWithoutFields/zerolog-12                     	100000000	        26.2 ns/op	       0 B/op	       0 allocs/op
BenchmarkWithoutFields/kitlog-12                      	 3000000	       501 ns/op	     961 B/op	      18 allocs/op
BenchmarkAccumulatedContext/kitlog-12                 	  200000	      6371 ns/op	    6534 B/op	     107 allocs/op
BenchmarkAccumulatedContext/logrus-12                 	   50000	     28836 ns/op	    4646 B/op	      91 allocs/op
BenchmarkAccumulatedContext/zap-12                    	10000000	       206 ns/op	      80 B/op	       2 allocs/op
BenchmarkAccumulatedContext/hclog-12                  	   50000	     27934 ns/op	    7993 B/op	     120 allocs/op
BenchmarkAccumulatedContext/zerolog-12                	50000000	        31.1 ns/op	       0 B/op	       0 allocs/op
BenchmarkAddingFields/zerolog-12                      	  300000	      4693 ns/op	    7587 B/op	      54 allocs/op
BenchmarkAddingFields/kitlog-12                       	  200000	      7123 ns/op	    8243 B/op	     130 allocs/op
BenchmarkAddingFields/logrus-12                       	   50000	     31767 ns/op	    6230 B/op	     105 allocs/op
BenchmarkAddingFields/zap-12                          	  300000	      5263 ns/op	    9048 B/op	      73 allocs/op
BenchmarkAddingFields/hclog-12                        	   50000	     32059 ns/op	   11391 B/op	     156 allocs/op
PASS
ok  	github.com/goph/logur/benchmarks	58.244s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0