{"id":22338260,"url":"https://github.com/ipfans/gobenchtest","last_synced_at":"2025-03-26T08:26:32.679Z","repository":{"id":145342283,"uuid":"71438697","full_name":"ipfans/gobenchtest","owner":"ipfans","description":"Some benchmarks for how to write more powerful golang code.","archived":false,"fork":false,"pushed_at":"2016-10-20T08:30:49.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T10:11:27.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipfans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-10-20T07:57:16.000Z","updated_at":"2016-10-20T08:30:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"214be10e-08fc-46ea-8f3f-9a8fee6aac51","html_url":"https://github.com/ipfans/gobenchtest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fgobenchtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fgobenchtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fgobenchtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fgobenchtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipfans","download_url":"https://codeload.github.com/ipfans/gobenchtest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245617181,"owners_count":20644768,"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":[],"created_at":"2024-12-04T06:13:36.054Z","updated_at":"2025-03-26T08:26:32.673Z","avatar_url":"https://github.com/ipfans.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 字符串拼接测试\n\nfmt.Sprintf等等会带来大量的性能损失，在热路径上尽量避免使用。\n\n```\n➜  test01 git:(master) ✗ go test -v -bench=. -benchmem\ntesting: warning: no tests to run\nBenchmarkSimpleStringAppend-4   \t50000000\t        29.9 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkSimpleStringFormat-4   \t 5000000\t       271 ns/op\t      80 B/op\t       5 allocs/op\nPASS\nok  \tgithub.com/ipfans/gobenchtest/test01\t3.191s\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfans%2Fgobenchtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipfans%2Fgobenchtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfans%2Fgobenchtest/lists"}