{"id":23674090,"url":"https://github.com/farism/bench","last_synced_at":"2026-01-26T01:32:35.487Z","repository":{"id":75170854,"uuid":"561232419","full_name":"farism/Bench","owner":"farism","description":"Simple Benchmarking for Beef Lang","archived":false,"fork":false,"pushed_at":"2022-11-03T08:48:08.000Z","size":126,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-21T10:49:18.291Z","etag":null,"topics":["beef","beeflang","benchmark"],"latest_commit_sha":null,"homepage":"https://farism.github.io/Bench/html/","language":"Beef","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/farism.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":"2022-11-03T08:43:42.000Z","updated_at":"2023-07-15T15:26:42.000Z","dependencies_parsed_at":"2023-06-05T15:15:41.007Z","dependency_job_id":null,"html_url":"https://github.com/farism/Bench","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/farism/Bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2FBench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2FBench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2FBench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2FBench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farism","download_url":"https://codeload.github.com/farism/Bench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2FBench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28763937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"ssl_error","status_checked_at":"2026-01-26T00:37:25.959Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["beef","beeflang","benchmark"],"created_at":"2024-12-29T12:59:44.860Z","updated_at":"2026-01-26T01:32:35.481Z","avatar_url":"https://github.com/farism.png","language":"Beef","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bench - Benchmark your code\n\n[Reference Docs](https://farism.github.io/Bench/html/)\n\n`Bench` is a simple benchmarking library for Beef lang. It provides a single function: `TimeIt`.\n\nThis library is heavily inspired by [Benchy](https://github.com/treeform/benchy)\n\nExample output:\n\n```\n \u003e    min time       avg time         std dv     runs    name\n \u003e    1.000 ms       1.427 ms         ±0.495    x1000    Sleep 1ms\n \u003e  200.000 ms     200.000 ms         ±0.000      x25    Sleep 200ms\n \u003e    0.000 ms      73.912 ms        ±43.243      x68    Sleep Random\n \u003e   25.000 ms      25.760 ms         ±1.100     x193    Number Counter\n \u003e   72.000 ms      72.939 ms         ±1.477      x68    String Append\n```\n\n# Installing\n\n1. Clone this repo somewhere to your system.\n2. In the Beef IDE, right-click workspace panel select \"Add Existing Project\". Locate the directory you cloned earlier.\n3. For each project that will use `Bench`, right-click \u003e Properties \u003e Dependencies and select `Bench`.\n\n# Usage\n\n```bf\nusing System;\nusing System.Threading;\nusing Bench;\n\nTimeIt(\"Sleep 1000ms\", () =\u003e Thread.Sleep(1000));\n\n// OR specify number of iterations\n\nTimeIt(\"Sleep 5ms x100\", 100, () =\u003e Thread.Sleep(5));\n```\n\nIf no `iterations` are specified, `Bench` will run the code up to `x1000` times or for `5000ms`, whichever comes first.\n\n# Note\n\nIt is recommended to use a release configuration with optimizations turned on when running benchmarking. Beef workspaces make this fairly easy to do.\n\n# License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarism%2Fbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarism%2Fbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarism%2Fbench/lists"}