{"id":15783418,"url":"https://github.com/higebu/go-hello-bench","last_synced_at":"2025-03-31T16:49:24.127Z","repository":{"id":138438024,"uuid":"57036195","full_name":"higebu/go-hello-bench","owner":"higebu","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-25T11:33:54.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-04T19:44:25.940Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/higebu.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":"2016-04-25T11:24:28.000Z","updated_at":"2016-04-25T11:24:56.000Z","dependencies_parsed_at":"2024-03-27T16:22:05.678Z","dependency_job_id":null,"html_url":"https://github.com/higebu/go-hello-bench","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/higebu%2Fgo-hello-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higebu%2Fgo-hello-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higebu%2Fgo-hello-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higebu%2Fgo-hello-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/higebu","download_url":"https://codeload.github.com/higebu/go-hello-bench/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246500354,"owners_count":20787678,"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-10-04T19:41:39.808Z","updated_at":"2025-03-31T16:49:24.082Z","avatar_url":"https://github.com/higebu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-hello-bench\n\nThis is an repository of golang benchmark example.\n\n* c1: the BenchmarkHello function called count\n* c2: the Hello function called count\n\nResult:\n\n```sh\n$ go test -bench .\n2016/04/25 20:18:24 NumCPU: 4\ntesting: warning: no tests to run\nPASS\nBenchmarkHello-4    2016/04/25 20:18:24 c1: 0\n2016/04/25 20:18:24 c2: 1\n2016/04/25 20:18:24 c1: 1\n2016/04/25 20:18:24 c2: 101\n2016/04/25 20:18:24 c1: 2\n2016/04/25 20:18:24 c2: 10101\n2016/04/25 20:18:24 c1: 3\n2016/04/25 20:18:25 c2: 1010101\n2016/04/25 20:18:25 c1: 4\n2016/04/25 20:18:27 c2: 6010101\n 5000000           481 ns/op\n ok     github.com/higebu/go-hello-bench    2.778s\n```\n\nQ. Why Hello function called too many times...\n\nA. See launch() function in [testing/benchmark.go](https://golang.org/src/testing/benchmark.go?#L200)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhigebu%2Fgo-hello-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhigebu%2Fgo-hello-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhigebu%2Fgo-hello-bench/lists"}