{"id":20658609,"url":"https://github.com/gergoerdi/clash-bounce-bench","last_synced_at":"2026-05-08T14:04:48.939Z","repository":{"id":66978039,"uuid":"242265836","full_name":"gergoerdi/clash-bounce-bench","owner":"gergoerdi","description":"Benchmark for various methods of simulating Clash","archived":false,"fork":false,"pushed_at":"2021-07-10T09:59:14.000Z","size":71,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T11:43:55.694Z","etag":null,"topics":["benchmark","c","clash","haskell","sdl2","simulation","verilator","verilog"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/gergoerdi.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":"2020-02-22T02:20:13.000Z","updated_at":"2023-01-11T04:30:53.000Z","dependencies_parsed_at":"2023-02-24T10:30:43.934Z","dependency_job_id":null,"html_url":"https://github.com/gergoerdi/clash-bounce-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/gergoerdi%2Fclash-bounce-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gergoerdi%2Fclash-bounce-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gergoerdi%2Fclash-bounce-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gergoerdi%2Fclash-bounce-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gergoerdi","download_url":"https://codeload.github.com/gergoerdi/clash-bounce-bench/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242768072,"owners_count":20182098,"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":["benchmark","c","clash","haskell","sdl2","simulation","verilator","verilog"],"created_at":"2024-11-16T18:27:07.954Z","updated_at":"2026-05-08T14:04:43.885Z","avatar_url":"https://github.com/gergoerdi.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"1. Run the hand-translated C benchmark:\n\n```\n$ cd csim\n$ make\n$ ../_build/csim/Bounce\nHand-translated C, from C: 4192001 cycles, 61 ms\n```\n\n2. Run the Verilator C++ benchmark:\n\n```\n$ cd verilator\n$ make\n$ ../_build/verilator/SimMain\nVerilator, from C: 4192001 cycles, 125 ms\n```\n\n3. Run the Haskell benchmarks\n\n```\n$ stack build\n$ stack run sim-hs\nClash: 4192001 cycles, 12799 ms\n\n$ stack run sim-ffi\nHand-translated C, from Haskell: 4192001 cycles, 241 ms\n\n$ stack run sim-verilator\nVerilator, from Haskell: 4192000 cycles, 365 ms\n```\n\n4. Marvel at the Haskell SDL frontend with VGA signal interpreter\n\n```\n$ stack run sim-ffi-sdl\n60 frames in 1820 ms, 33.0 fps\n60 frames in 1745 ms, 34.4 fps\n60 frames in 1885 ms, 31.8 fps\n60 frames in 1961 ms, 30.6 fps\n60 frames in 1779 ms, 33.7 fps\n\n$ stack run sim-verilator-sdl\n60 frames in 2948 ms, 20.4 fps\n60 frames in 2609 ms, 23.0 fps\n60 frames in 2524 ms, 23.8 fps\n60 frames in 2593 ms, 23.1 fps\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgergoerdi%2Fclash-bounce-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgergoerdi%2Fclash-bounce-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgergoerdi%2Fclash-bounce-bench/lists"}