{"id":16529276,"url":"https://github.com/cometkim/rescript-tinybench","last_synced_at":"2025-03-03T06:26:21.360Z","repository":{"id":65152546,"uuid":"584523399","full_name":"cometkim/rescript-tinybench","owner":"cometkim","description":"ReScript bindings to tinybench","archived":false,"fork":false,"pushed_at":"2023-05-10T14:45:54.000Z","size":864,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T14:48:03.910Z","etag":null,"topics":["benchmark","rescript","rescript-bindings"],"latest_commit_sha":null,"homepage":"","language":"ReScript","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/cometkim.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}},"created_at":"2023-01-02T20:12:39.000Z","updated_at":"2023-06-14T00:17:30.000Z","dependencies_parsed_at":"2024-02-03T02:20:56.556Z","dependency_job_id":"d348b5ad-beb3-4f19-b5ec-e71d08d699a1","html_url":"https://github.com/cometkim/rescript-tinybench","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Frescript-tinybench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Frescript-tinybench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Frescript-tinybench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Frescript-tinybench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cometkim","download_url":"https://codeload.github.com/cometkim/rescript-tinybench/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241618811,"owners_count":19991933,"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","rescript","rescript-bindings"],"created_at":"2024-10-11T17:44:19.540Z","updated_at":"2025-03-03T06:26:21.342Z","avatar_url":"https://github.com/cometkim.png","language":"ReScript","readme":"# rescript-tinybench\n\nReScript bindings to [tinybench](https://github.com/tinylibs/tinybench)\n\n## Usage\n\n```res\nopen RescriptCore\nopen RescriptTinybench\n\nlet bench =\n  Bench.make(~time=100.0, ())\n  -\u003eBench.add(\"switch 1\", () =\u003e {\n    let a = ref(1)\n    let b = ref(2)\n    let c = a.contents\n    a := b.contents\n    b := c\n  })\n  -\u003eBench.add(\"switch 2\", () =\u003e {\n    let a = ref(1)\n    let b = ref(10)\n    a := b.contents + a.contents\n    b := a.contents - b.contents\n    a := b.contents - a.contents\n  })\n\nawait bench.run(.)\nbench.table(.)-\u003eConsole.table\n```\n\n## LICENSE\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcometkim%2Frescript-tinybench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcometkim%2Frescript-tinybench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcometkim%2Frescript-tinybench/lists"}