{"id":16985113,"url":"https://github.com/hejsil/zig-bench","last_synced_at":"2025-03-17T09:30:29.900Z","repository":{"id":37977834,"uuid":"160493177","full_name":"Hejsil/zig-bench","owner":"Hejsil","description":"Simple benchmarking library","archived":false,"fork":false,"pushed_at":"2024-02-24T01:45:29.000Z","size":41,"stargazers_count":64,"open_issues_count":2,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T21:49:53.632Z","etag":null,"topics":["benchmarking","zig","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/Hejsil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["Hejsil"]}},"created_at":"2018-12-05T09:26:06.000Z","updated_at":"2024-10-25T08:33:39.000Z","dependencies_parsed_at":"2024-01-02T08:02:20.030Z","dependency_job_id":"6c5ca234-873a-45c0-ad3a-7fa04cfa4cd5","html_url":"https://github.com/Hejsil/zig-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/Hejsil%2Fzig-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejsil%2Fzig-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejsil%2Fzig-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejsil%2Fzig-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hejsil","download_url":"https://codeload.github.com/Hejsil/zig-bench/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243853683,"owners_count":20358461,"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":["benchmarking","zig","zig-package"],"created_at":"2024-10-14T02:37:01.953Z","updated_at":"2025-03-17T09:30:29.650Z","avatar_url":"https://github.com/Hejsil.png","language":"Zig","funding_links":["https://github.com/sponsors/Hejsil"],"categories":[],"sub_categories":[],"readme":"# zig-bench\n\nA simple benchmarking lib in Zig\n\n```\nTest [0/2] test \"Debug benchmark\"... \nBenchmark             Iterations    Min(ns)    Max(ns)   Variance   Mean(ns)\n----------------------------------------------------------------------------\nsum_slice(block=16)       100000         90       2690        243        107\nsum_slice(block=32)       100000        170       1760        338        190\nsum_slice(block=64)       100000        320       2340        476        352\nsum_slice(block=128)      100000        630       2290        862        678\nsum_slice(block=256)      100000       1270       3170       2402       1336\nsum_slice(block=512)      100000       2550       8490       4835       2651\nsum_reader(block=16)      100000        990       2640       1592       1039\nsum_reader(block=32)      100000       1930       3890       3292       2012\nsum_reader(block=64)      100000       3830       6250       6806       3962\nsum_reader(block=128)      63673       7660      12830      15703       7852\nsum_reader(block=256)      31967      15360      22190      31847      15641\nsum_reader(block=512)      16031      30800      34690      59444      31191\nTest [1/2] test \"Debug benchmark generics\"... \nBenchmark             Iterations    Min(ns)    Max(ns)   Variance   Mean(ns)\n----------------------------------------------------------------------------\nsum_vectors(vec4f16)      100000       2730      13390       3620       2775\nsum_vectors(vec4f32)      100000       1289       5800       1277       1296\nsum_vectors(vec4f64)      100000       1389       6870       1358       1400\nsum_vectors(vec8f16)      100000       4400       9680       4613       4479\nsum_vectors(vec8f32)      100000       1389       5180       1231       1400\nsum_vectors(vec8f64)      100000       1390       6170       2260       1457\nsum_vectors(vec16f16)      61088       8090      13980      15455       8184\nsum_vectors(vec16f32)     100000       1399       4560       2069       1441\nsum_vectors(vec16f64)     100000       1440       6080       1664       1475\nAll 2 tests passed.\nTest [0/2] test \"ReleaseSafe benchmark\"... \nBenchmark             Iterations    Min(ns)    Max(ns)   Variance   Mean(ns)\n----------------------------------------------------------------------------\nsum_slice(block=16)       100000          9       3550        164         18\nsum_slice(block=32)       100000          9        940         22         18\nsum_slice(block=64)       100000         49       1530         66         52\nsum_slice(block=128)      100000         89       1280        102         92\nsum_slice(block=256)      100000        169       1690        210        171\nsum_slice(block=512)      100000        319       5530        724        329\nsum_reader(block=16)      100000         60       2840        180         69\nsum_reader(block=32)      100000        110       3059        288        121\nsum_reader(block=64)      100000        209       2810        323        224\nsum_reader(block=128)     100000        400       1780        387        431\nsum_reader(block=256)     100000        790       2220        681        843\nsum_reader(block=512)     100000       1550       4300       3805       1669\nTest [1/2] test \"ReleaseSafe benchmark generics\"... \nBenchmark             Iterations    Min(ns)    Max(ns)   Variance   Mean(ns)\n----------------------------------------------------------------------------\nsum_vectors(vec4f16)      100000       1269       3790       1799       1283\nsum_vectors(vec4f32)      100000        319       1680        300        328\nsum_vectors(vec4f64)      100000        319       1860        355        329\nsum_vectors(vec8f16)      100000       2399       5010       5014       2420\nsum_vectors(vec8f32)      100000        319       2660        641        329\nsum_vectors(vec8f64)      100000        319       7740       1019        330\nsum_vectors(vec16f16)     100000       4599       9970      22580       4636\nsum_vectors(vec16f32)     100000        319       4310       1231        330\nsum_vectors(vec16f64)     100000        429       4070       1783        439\nAll 2 tests passed.\nTest [0/2] test \"ReleaseFast benchmark\"... \nBenchmark             Iterations    Min(ns)    Max(ns)   Variance   Mean(ns)\n----------------------------------------------------------------------------\nsum_slice(block=16)       100000         19       2840        128         21\nsum_slice(block=32)       100000         19       1600         78         20\nsum_slice(block=64)       100000         19       1970         74         21\nsum_slice(block=128)      100000         19       1530         68         21\nsum_slice(block=256)      100000         39       1250         74         44\nsum_slice(block=512)      100000         59       1150         85         68\nsum_reader(block=16)      100000         19       1170         21         20\nsum_reader(block=32)      100000         19       1650         74         20\nsum_reader(block=64)      100000         19       1250         34         20\nsum_reader(block=128)     100000         19       1240         32         20\nsum_reader(block=256)     100000         39       2180        177         44\nsum_reader(block=512)     100000         59       2470        148         68\nTest [1/2] test \"ReleaseFast benchmark generics\"... \nBenchmark             Iterations    Min(ns)    Max(ns)   Variance   Mean(ns)\n----------------------------------------------------------------------------\nsum_vectors(vec4f16)      100000       1259       8590       1678       1284\nsum_vectors(vec4f32)      100000        319       1440        279        327\nsum_vectors(vec4f64)      100000        319       1760        303        327\nsum_vectors(vec8f16)      100000       2399       5260       1861       2417\nsum_vectors(vec8f32)      100000        319       2080        434        327\nsum_vectors(vec8f64)      100000        319       1710        329        328\nsum_vectors(vec16f16)     100000       4599       9010       3883       4634\nsum_vectors(vec16f32)     100000        319       2800        356        329\nsum_vectors(vec16f64)     100000        429       1750        404        436\nAll 2 tests passed.\nTest [0/2] test \"ReleaseSmall benchmark\"... \nBenchmark             Iterations    Min(ns)    Max(ns)   Variance   Mean(ns)\n----------------------------------------------------------------------------\nsum_slice(block=16)       100000         19       2760        247         27\nsum_slice(block=32)       100000         29       5090        363         37\nsum_slice(block=64)       100000         50       2640        177         63\nsum_slice(block=128)      100000         90       1830        157        102\nsum_slice(block=256)      100000        169       5860        733        201\nsum_slice(block=512)      100000        330       3690       1560        365\nsum_reader(block=16)      100000        219       1430        276        226\nsum_reader(block=32)      100000        420       1870        460        432\nsum_reader(block=64)      100000        819       2690        770        837\nsum_reader(block=128)     100000       1629       5390       1696       1649\nsum_reader(block=256)     100000       3240       9080       3240       3274\nsum_reader(block=512)      76638       6469       9780       5302       6524\nTest [1/2] test \"ReleaseSmall benchmark generics\"... \nBenchmark             Iterations    Min(ns)    Max(ns)   Variance   Mean(ns)\n----------------------------------------------------------------------------\nsum_vectors(vec4f16)      100000       4859      16710       5250       4902\nsum_vectors(vec4f32)      100000        319       1650        326        328\nsum_vectors(vec4f64)      100000        319       1470        295        327\nsum_vectors(vec8f16)      100000       3980       9070       3382       4254\nsum_vectors(vec8f32)      100000        319       3740        459        328\nsum_vectors(vec8f64)      100000        319       4100        534        330\nsum_vectors(vec16f16)      79800       6219      15130      10000       6265\nsum_vectors(vec16f32)     100000        319       3340        455        330\nsum_vectors(vec16f64)     100000        429       2020        454        438\nAll 2 tests passed.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhejsil%2Fzig-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhejsil%2Fzig-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhejsil%2Fzig-bench/lists"}