{"id":20388549,"url":"https://github.com/si3nloong/log-benchmark","last_synced_at":"2025-06-26T22:34:50.877Z","repository":{"id":97110074,"uuid":"586749087","full_name":"si3nloong/log-benchmark","owner":"si3nloong","description":"Benchmark for logging and tracing","archived":false,"fork":false,"pushed_at":"2023-03-17T04:06:21.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T16:02:51.987Z","etag":null,"topics":["benchmark","go","logging","tracing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/si3nloong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-09T06:10:46.000Z","updated_at":"2023-03-16T15:55:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff210a0e-8d32-49e4-8ac2-f14b06678fdb","html_url":"https://github.com/si3nloong/log-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/si3nloong/log-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Flog-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Flog-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Flog-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Flog-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/si3nloong","download_url":"https://codeload.github.com/si3nloong/log-benchmark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Flog-benchmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262151860,"owners_count":23266928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmark","go","logging","tracing"],"created_at":"2024-11-15T03:11:23.593Z","updated_at":"2025-06-26T22:34:50.856Z","avatar_url":"https://github.com/si3nloong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Log Benchmarks\n\n\u003e Benchmarks on using logging, tracing and without them.\n\n```bash\n# setup jaeger\ndocker run -d --name jaeger \\\n  -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \\\n  -e COLLECTOR_OTLP_ENABLED=true \\\n  -p 6831:6831/udp \\\n  -p 6832:6832/udp \\\n  -p 5778:5778 \\\n  -p 16686:16686 \\\n  -p 4317:4317 \\\n  -p 4318:4318 \\\n  -p 14250:14250 \\\n  -p 14268:14268 \\\n  -p 14269:14269 \\\n  -p 9411:9411 \\\n  jaegertracing/all-in-one:1.43\n```\n\n| Case                        | Data Size | Total loop | Average elapsed time |\n| --------------------------- | :-------: | ---------: | -------------------: |\n| Without Logging and Tracing |   small   |      15217 |          77804 ns/op |\n| Without Logging and Tracing |    big    |       3790 |         267474 ns/op |\n| With Tracing                |   small   |      13303 |          90404 ns/op |\n| With Tracing                |    big    |       3592 |         308865 ns/op |\n| With Logging                |   small   |       5738 |         240336 ns/op |\n| With Logging                |    big    |       1150 |        1689071 ns/op |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsi3nloong%2Flog-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsi3nloong%2Flog-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsi3nloong%2Flog-benchmark/lists"}