{"id":17403742,"url":"https://github.com/bitbacchus/spectre_benchmarks","last_synced_at":"2025-03-27T22:34:18.902Z","repository":{"id":189681236,"uuid":"332809822","full_name":"bitbacchus/spectre_benchmarks","owner":"bitbacchus","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-09T09:24:54.000Z","size":157,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T04:33:10.122Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitbacchus.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}},"created_at":"2021-01-25T16:27:56.000Z","updated_at":"2021-02-09T14:40:03.000Z","dependencies_parsed_at":"2023-08-21T10:10:57.495Z","dependency_job_id":null,"html_url":"https://github.com/bitbacchus/spectre_benchmarks","commit_stats":null,"previous_names":["bitbacchus/spectre_benchmarks"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbacchus%2Fspectre_benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbacchus%2Fspectre_benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbacchus%2Fspectre_benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbacchus%2Fspectre_benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitbacchus","download_url":"https://codeload.github.com/bitbacchus/spectre_benchmarks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245937280,"owners_count":20696974,"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":[],"created_at":"2024-10-16T19:07:49.182Z","updated_at":"2025-03-27T22:34:18.842Z","avatar_url":"https://github.com/bitbacchus.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"https://bitbacchus.github.io/spectre_benchmarks/dev/bench/\n\nC++ example for benchmarking with [Catch2 Framework][tool]\n====================================================================\n\n- [Workflow for this example](../../.github/workflows/catch2.yml)\n- [Action log of this example](https://github.com/rhysd/github-action-benchmark/actions?query=workflow%3A%22Catch2+C%2B%2B+Example%22)\n- [Benchmark results on GitHub pages](https://rhysd.github.io/github-action-benchmark/dev/bench/)\n\nThis directory shows how to use [`github-action-benchmark`][action] with [Catch2 Framework][tool].\n\n\n\n## Run benchmarks\n\nOfficial documentation for usage of Catch2 Framework can be found in its repository:\n\nhttps://github.com/catchorg/Catch2\n\nSince Catch2 is a header-only test framework, you don't need to build it in advance.\nDownload and put the headers in your `include` directory and write your benchmarks.\n\n```cpp\n#define CATCH_CONFIG_MAIN\n#include \u003ccatch2/catch.hpp\u003e\n\nTEST_CASE(\"Fibonacci\") {\n  // now let's benchmark:\n  BENCHMARK(\"Some benchmark\") {\n      // Your benchmark goes here\n  };\n}\n```\n\nBuild the source with C++ compiler and run the built executable to get the benchmark output.\nEnsure to use `console` reporter for this. `xml` reporter may be supported in the future.\n\n\n\n## Process benchmark results\n\nStore the benchmark results with step using the action. Please set `catch2` to `tool` input.\n\n```yaml\n- name: Store benchmark result\n  uses: rhysd/github-action-benchmark@v1\n  with:\n    tool: 'catch2'\n    output-file-path: benchmark_result.json\n```\n\nPlease read ['How to use' section](https://github.com/rhysd/github-action-benchmark#how-to-use) for common usage.\n\n\n\n## Run this example\n\nTo try this example, please use [cmake](./CMakeLists.txt) and `clang++`.\n\n```sh\n$ mkdir build\n$ cd build\n$ cmake -DCMAKE_BUILD_TYPE=Release ..\n$ cmake --build . --config Release\n```\n\nThis will create `Catch2_bench` executable. The results are output to stdout.\n\n[tool]: https://github.com/catchorg/Catch2\n[action]: https://github.com/rhysd/github-action-benchmark\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbacchus%2Fspectre_benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitbacchus%2Fspectre_benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbacchus%2Fspectre_benchmarks/lists"}