{"id":16243738,"url":"https://github.com/dustin/testingbee","last_synced_at":"2025-07-23T20:03:35.054Z","repository":{"id":3737405,"uuid":"4811372","full_name":"dustin/testingbee","owner":"dustin","description":"Port of Go's testing.B to C","archived":false,"fork":false,"pushed_at":"2016-05-02T23:49:52.000Z","size":11,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T05:24:27.235Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dustin.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2012-06-27T17:26:59.000Z","updated_at":"2019-08-13T15:05:14.000Z","dependencies_parsed_at":"2022-09-12T09:02:18.451Z","dependency_job_id":null,"html_url":"https://github.com/dustin/testingbee","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dustin/testingbee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin%2Ftestingbee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin%2Ftestingbee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin%2Ftestingbee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin%2Ftestingbee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dustin","download_url":"https://codeload.github.com/dustin/testingbee/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin%2Ftestingbee/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266738657,"owners_count":23976439,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-10-10T14:16:08.104Z","updated_at":"2025-07-23T20:03:35.028Z","avatar_url":"https://github.com/dustin.png","language":"C","readme":"# Testing Bee\n\nThis is a port of go's [testing.B][testbee] benchmark tool.  The\nexample will show you a specific use of it.  Go's manual provides a\ngood overview.\n\n## Usage\n\nThe usage is modeled after [testing.B][testbee], but in short, the\nframework will decide how many times your test should run a loop by\nprobing it a few times until it runs long enough to provide meaningful\nresults.  Your code just runs that number of times.\n\ne.g.\n\n```C\nvoid test_thing(bee_t *b) {\n    for (int i = 0; i \u003c b-\u003en; i++) {\n        // do the thing that takes the time\n    }\n}\n\nint main(int argc, char **argv) {\n    bench(\"thing\", test_thing);\n}\n```\n\nThat's pretty much it.  You can call `fail_test(bee_t*)` to indicate\nyour test didn't succeed, and `stop_timer(bee_t*)` to stop the timer\nfor a bit while you set up something expensive or perhaps to do\nsomething expensive after your loop you don't want considered part of\nthe execution. `start_timer(bee_t*)` to restart the timer after\nstopping it, or perhaps just `reset_timer(bee_t*)` to clear the timer\nbetween your setup and your test loop.\n\n\n[testbee]: http://golang.org/pkg/testing/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustin%2Ftestingbee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdustin%2Ftestingbee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustin%2Ftestingbee/lists"}