{"id":27253424,"url":"https://github.com/marselester/perf","last_synced_at":"2025-08-18T20:34:48.061Z","repository":{"id":248432598,"uuid":"821622084","full_name":"marselester/perf","owner":"marselester","description":"Performance tips","archived":false,"fork":false,"pushed_at":"2024-08-15T01:30:33.000Z","size":1054,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T13:42:51.247Z","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/marselester.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":"2024-06-29T01:37:04.000Z","updated_at":"2024-08-15T01:30:36.000Z","dependencies_parsed_at":"2024-08-15T01:58:28.280Z","dependency_job_id":"7f307237-3d95-498a-b115-9cba3222f0a7","html_url":"https://github.com/marselester/perf","commit_stats":null,"previous_names":["marselester/perf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marselester%2Fperf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marselester%2Fperf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marselester%2Fperf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marselester%2Fperf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marselester","download_url":"https://codeload.github.com/marselester/perf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248324229,"owners_count":21084669,"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":"2025-04-11T01:27:19.544Z","updated_at":"2025-04-11T01:27:21.704Z","avatar_url":"https://github.com/marselester.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Systems performance\n\nSlides:\n\n- [Go performance tips](https://go-talks.appspot.com/github.com/marselester/perf/go-tips.slide)\n\nUse `present` tool to view the slides:\n\n```sh\n$ git clone https://github.com/marselester/perf.git\n$ cd ./perf/\n$ go run golang.org/x/tools/cmd/present -notes\n```\n\n## Examples\n\n```sh\n# example/false-sharing\nBenchmarkSumNaive-12                           6451    181812 ns/op\nBenchmarkSumPadded-12                          9349    127138 ns/op\n# example/loop-invariant\nBenchmarkMultiplyNaive-12                      2545    454713 ns/op\nBenchmarkMultiplyInvariant-12                  3445    342182 ns/op\n# example/loop-tiling\nBenchmarkAddNaive-12                            634    1758105 ns/op\nBenchmarkAddTiling-12                           967    1168991 ns/op\n# example/loop-unrolling\nBenchmarkDotNaive-12                        1401841    857.5 ns/op\nBenchmarkDotUnroll-12                       3035698    389.9 ns/op\nBenchmarkDotBoundsCheckingElimination-12    4201716    281.9 ns/op\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarselester%2Fperf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarselester%2Fperf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarselester%2Fperf/lists"}