{"id":19396221,"url":"https://github.com/anvouk/anv_benchmarks","last_synced_at":"2026-04-17T04:34:09.840Z","repository":{"id":160067647,"uuid":"635027490","full_name":"anvouk/anv_benchmarks","owner":"anvouk","description":"benchmarks about various C stuff","archived":false,"fork":false,"pushed_at":"2023-05-07T14:42:46.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-25T20:58:33.535Z","etag":null,"topics":["benchmark","c","cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","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/anvouk.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":"2023-05-01T19:59:28.000Z","updated_at":"2024-09-02T17:50:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9d2ac8a-6795-456a-952a-ecde1dfbf1b6","html_url":"https://github.com/anvouk/anv_benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anvouk/anv_benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anvouk%2Fanv_benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anvouk%2Fanv_benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anvouk%2Fanv_benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anvouk%2Fanv_benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anvouk","download_url":"https://codeload.github.com/anvouk/anv_benchmarks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anvouk%2Fanv_benchmarks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","c","cpp"],"created_at":"2024-11-10T10:34:06.847Z","updated_at":"2026-04-17T04:34:09.817Z","avatar_url":"https://github.com/anvouk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anv_benchmarks\n\nbenchmarks about random stuff I needed at the moment. There's a bit of everything.\n\n## Benchmark results\n\nRun on my workstation:\n```\nCPU Xeon E5-2699 v3\nRAM 2133MHz ECC\nSSD\n```\n\nResults:\n```\nRun on (36 X 3600 MHz CPU s)\nCPU Caches:\n  L1 Data 32 KiB (x18)\n  L1 Instruction 32 KiB (x18)\n  L2 Unified 256 KiB (x18)\n  L3 Unified 46080 KiB (x1)\nLoad Average: 0.95, 0.69, 0.50\n***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead.\n----------------------------------------------------------------------------------------------------\nBenchmark                                                          Time             CPU   Iterations\n----------------------------------------------------------------------------------------------------\nBM_libc_memmove/8                                               2.30 ns         2.30 ns    305865876\nBM_libc_memmove/64                                              2.01 ns         2.01 ns    351023766\nBM_libc_memmove/4096                                            51.5 ns         51.5 ns     13468984\nBM_libc_memcpy/8                                                2.59 ns         2.59 ns    272072177\nBM_libc_memcpy/64                                               2.30 ns         2.30 ns    307727125\nBM_libc_memcpy/4096                                             50.7 ns         50.7 ns     13625703\nBM_libc_malloc_and_free/1                                       10.6 ns         10.6 ns     65523947\nBM_libc_malloc_and_free/8                                       10.6 ns         10.6 ns     66609989\nBM_libc_malloc_and_free/16                                      11.5 ns         11.5 ns     60918143\nBM_libc_malloc_and_free/32                                      11.5 ns         11.5 ns     61400371\nBM_libc_malloc_and_free/64                                      11.5 ns         11.5 ns     60707393\nBM_libc_malloc_and_free/128                                     11.5 ns         11.5 ns     59762447\nBM_libc_malloc_and_free/512                                     11.5 ns         11.5 ns     61173679\nBM_libc_malloc_and_free/2048                                    34.0 ns         34.0 ns     20597330\nBM_libc_malloc_and_free/4096                                    38.5 ns         38.5 ns     18196139\nBM_arr_anv_arr_push                                             4.30 ns         4.30 ns    164012063\nBM_arr_kvec_push                                               0.833 ns        0.833 ns    810187558\nBM_arr_stb_ds_push                                              2.31 ns         2.31 ns    298924491\nBM_arr_stb_stretchy_push/iterations:50000000                    2.30 ns         2.30 ns     50000000\nBM_arr_anv_arr_push_preallocated                                3.94 ns         3.94 ns    178588350\nBM_arr_kvec_push_preallocated                                   1.07 ns         1.07 ns    651092430\nBM_arr_stb_ds_push_preallocated                                 1.34 ns         1.34 ns    504798568\nBM_arr_stb_stretchy_push_preallocated/iterations:50000000       2.25 ns         2.25 ns     50000000\nBM_h_halloc_new_free_root                                       15.5 ns         15.5 ns     43701019\nBM_h_stb_new_free_root                                          14.0 ns         14.0 ns     50096284\nBM_h_halloc_new_children                                        22.5 ns         22.5 ns     26631089\nBM_h_stb_new_children                                           25.9 ns         25.9 ns     54809475\nBM_h_halloc_alloc_free_with_children/8                           206 ns          206 ns      3348285\nBM_h_halloc_alloc_free_with_children/64                         1557 ns         1557 ns       444687\nBM_h_halloc_alloc_free_with_children/512                       12202 ns        12202 ns        56557\nBM_h_halloc_alloc_free_with_children/4096                     103574 ns       103573 ns         6471\nBM_h_halloc_alloc_free_with_children/8192                     216254 ns       216246 ns         3216\nBM_h_stb_alloc_free_with_children/8                              181 ns          181 ns      3864757\nBM_h_stb_alloc_free_with_children/64                            1401 ns         1401 ns       491585\nBM_h_stb_alloc_free_with_children/512                          11242 ns        11242 ns        59957\nBM_h_stb_alloc_free_with_children/4096                         98051 ns        98047 ns         7092\nBM_h_stb_alloc_free_with_children/8192                        205333 ns       205326 ns         3409\nBM_hashs_stbds_hash_bytes_32                                    1.63 ns         1.63 ns    418349970\nBM_hashs_stbds_hash_bytes_accidental_32                         2.23 ns         2.23 ns    309089401\nBM_hashs_stbds_hash_bytes_murmur_32                             2.75 ns         2.75 ns    252926500\nBM_hashs_stbds_hash_bytes_64                                    2.58 ns         2.58 ns    270496151\nBM_hashs_stbds_siphash_bytes_chunk/4                            4.86 ns         4.86 ns    136408431\nBM_hashs_stbds_siphash_bytes_chunk/8                            5.73 ns         5.73 ns    114194444\nBM_hashs_stbds_siphash_bytes_chunk/16                           7.99 ns         7.99 ns     84841059\nBM_hashs_stbds_siphash_bytes_chunk/32                           12.0 ns         12.0 ns     56354520\nBM_hashs_stbds_siphash_bytes_chunk/64                           20.1 ns         20.1 ns     35048980\nBM_hashs_stbds_siphash_bytes_chunk/256                          74.4 ns         74.4 ns      9271830\nBM_hashs_stbds_siphash_2_4_bytes_chunk/4                        10.6 ns         10.6 ns     64597923\nBM_hashs_stbds_siphash_2_4_bytes_chunk/8                        13.1 ns         13.1 ns     53640350\nBM_hashs_stbds_siphash_2_4_bytes_chunk/16                       17.0 ns         17.0 ns     40771580\nBM_hashs_stbds_siphash_2_4_bytes_chunk/32                       24.5 ns         24.5 ns     28379591\nBM_hashs_stbds_siphash_2_4_bytes_chunk/64                       39.9 ns         39.9 ns     17499328\nBM_hashs_stbds_siphash_2_4_bytes_chunk/256                       134 ns          134 ns      5101968\nBM_hashs_fasthash_32_chunk/4                                    5.15 ns         5.15 ns    128435025\nBM_hashs_fasthash_32_chunk/8                                    3.75 ns         3.75 ns    187718529\nBM_hashs_fasthash_32_chunk/16                                   4.85 ns         4.84 ns    144072815\nBM_hashs_fasthash_32_chunk/32                                   7.17 ns         7.17 ns     93973575\nBM_hashs_fasthash_32_chunk/64                                   11.8 ns         11.8 ns     58960543\nBM_hashs_fasthash_32_chunk/256                                  44.3 ns         44.3 ns     15642634\nBM_hashs_murmur2_chunk/4                                        4.28 ns         4.28 ns    160171034\nBM_hashs_murmur2_chunk/8                                        5.19 ns         5.19 ns    124375199\nBM_hashs_murmur2_chunk/16                                       6.85 ns         6.85 ns    100210680\nBM_hashs_murmur2_chunk/32                                       10.3 ns         10.3 ns     66314158\nBM_hashs_murmur2_chunk/64                                       17.3 ns         17.3 ns     40577752\nBM_hashs_murmur2_chunk/256                                      71.0 ns         71.0 ns      9585745\nBM_hashs_murmur3_chunk/4                                        4.90 ns         4.90 ns    142787770\nBM_hashs_murmur3_chunk/8                                        5.98 ns         5.98 ns    112268509\nBM_hashs_murmur3_chunk/16                                       8.35 ns         8.35 ns     83917088\nBM_hashs_murmur3_chunk/32                                       12.5 ns         12.5 ns     52383541\nBM_hashs_murmur3_chunk/64                                       23.1 ns         23.1 ns     29956608\nBM_hashs_murmur3_chunk/256                                      90.0 ns         90.0 ns      7557953\nBM_hashs_fasthash_64_chunk/4                                    5.16 ns         5.16 ns    130337420\nBM_hashs_fasthash_64_chunk/8                                    3.71 ns         3.71 ns    187775039\nBM_hashs_fasthash_64_chunk/16                                   4.85 ns         4.85 ns    135942793\nBM_hashs_fasthash_64_chunk/32                                   7.23 ns         7.23 ns     94617846\nBM_hashs_fasthash_64_chunk/64                                   11.8 ns         11.8 ns     58530990\nBM_hashs_fasthash_64_chunk/256                                  44.0 ns         44.0 ns     15975924\nBM_hashs_murmur2_64_chunk/4                                     4.59 ns         4.59 ns    153125236\nBM_hashs_murmur2_64_chunk/8                                     4.29 ns         4.29 ns    163004207\nBM_hashs_murmur2_64_chunk/16                                    5.12 ns         5.12 ns    132515967\nBM_hashs_murmur2_64_chunk/32                                    6.87 ns         6.87 ns     99431900\nBM_hashs_murmur2_64_chunk/64                                    10.3 ns         10.3 ns     65174332\nBM_hashs_murmur2_64_chunk/256                                   36.5 ns         36.5 ns     18978417\nBM_hashs_murmur3_64_chunk/4                                     8.71 ns         8.71 ns     79839874\nBM_hashs_murmur3_64_chunk/8                                     9.74 ns         9.74 ns     70017598\nBM_hashs_murmur3_64_chunk/16                                    8.03 ns         8.03 ns     84420534\nBM_hashs_murmur3_64_chunk/32                                    9.96 ns         9.96 ns     68345297\nBM_hashs_murmur3_64_chunk/64                                    14.3 ns         14.3 ns     47975639\nBM_hashs_murmur3_64_chunk/256                                   41.6 ns         41.6 ns     16738627\n```\n\n## Setup\n\nThis project uses cmake and [vcpkg](https://vcpkg.io/en/) as dependencies manager.\n\nDownloading vcpkg is not necessary since we use the json manifest in combination\nwith git submodules and [direnv](https://direnv.net/).\n\nenvrc is only needed to add vcpkg submodule to PATH and boostrap its binaries but both\ncan be done by hand with little extra effort.\n\n### Steps\n\n1. clone repo with submodules `git clone --recurse-submodules https://github.com/anvouk/anv_benchmarks.git`\n2. If direnv is installed: `direnv allow .`\n3. If direnv is NOT installed: `cd vcpkg \u0026\u0026 ./bootstrap-vcpkg.sh`\n\nGluing together vcpkg deps and the benchmarks should now be handled by cmake\nwithout further steps.\n\n## License\n\nAll tested libraries are under their respective licenses (see include headers).\n\nRemaining code is under MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanvouk%2Fanv_benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanvouk%2Fanv_benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanvouk%2Fanv_benchmarks/lists"}