{"id":26898361,"url":"https://github.com/codspeedhq/opencv-benches","last_synced_at":"2026-05-19T10:01:24.549Z","repository":{"id":284593637,"uuid":"947772368","full_name":"CodSpeedHQ/opencv-benches","owner":"CodSpeedHQ","description":"OpenCV benchmarks written in C++","archived":false,"fork":false,"pushed_at":"2025-05-23T17:29:25.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T20:48:01.469Z","etag":null,"topics":["benchmarks","cpp","opencv"],"latest_commit_sha":null,"homepage":"https://codspeed.io/CodSpeedHQ/opencv-benches","language":"C++","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/CodSpeedHQ.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,"zenodo":null}},"created_at":"2025-03-13T08:20:56.000Z","updated_at":"2025-05-23T17:29:29.000Z","dependencies_parsed_at":"2025-03-26T17:43:39.597Z","dependency_job_id":"ef3311ad-7045-4965-b3d1-a999028d8156","html_url":"https://github.com/CodSpeedHQ/opencv-benches","commit_stats":null,"previous_names":["codspeedhq/opencv-benches"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodSpeedHQ/opencv-benches","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodSpeedHQ%2Fopencv-benches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodSpeedHQ%2Fopencv-benches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodSpeedHQ%2Fopencv-benches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodSpeedHQ%2Fopencv-benches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodSpeedHQ","download_url":"https://codeload.github.com/CodSpeedHQ/opencv-benches/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodSpeedHQ%2Fopencv-benches/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276183793,"owners_count":25599229,"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-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["benchmarks","cpp","opencv"],"created_at":"2025-04-01T05:46:41.091Z","updated_at":"2025-09-21T02:19:06.523Z","avatar_url":"https://github.com/CodSpeedHQ.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opencv-benches\n\nA benchmarking suite for comparing performance of various opencv library components using Google Benchmark.\n\n## Requirements\n\n- CMake 3.14+\n- C++14 compiler\n- OpenCV 4.x\n- [Just](https://github.com/casey/just) command runner\n- Ninja\n\n## Build\n\nUsing the just command runner:\n```bash\njust clean    # Make sure that there's no 'build/' dir\njust build\njust run\n```\n\nOr by doing it manually:\n```bash\nmkdir build \u0026\u0026 cd build\n\n# Without codspeed\ncmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..\n\n# With Codspeed instrumentation\ncmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCODSPEED_MODE=instrumentation ..\n\n# With regular timing based benchmarks\ncmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCODSPEED_MODE=walltime ..\n\nmake\n```\n\n## Run\n\n```bash\ncp -r assets/ build/\n\n# Run individual component benchmarks\n./build/classifier\n./build/color\n./build/filter\n./build/image\n./build/transform\n\n# Run all benchmarks with a single command\ncmake --build ./build --target run_all_benchmarks\n\n# Pass arguments to all benchmarks\ncmake --build . --target run_all_benchmarks -- --benchmark_filter=BM_Boost\n\n# Run with regex filter\n./build/transform --benchmark_filter=\"BM_Rotate\"\n\n# List available benchmarks\n./build/transform --benchmark_list_tests\n```\n\n\n## Benchmark Categories\n\n- **Classifier**: Detects objects in images.\n- **Color**: Converts colors between different color spaces.\n- **Image**: Everything related to image processing\n- **Filter**: Applies various image filters (e.g. blur, sharpen, edge detection).\n- **Transform**: Performs image transformations (e.g. rotation, scaling, cropping, ...)\n\n## References\n\n- https://docs.opencv.org/4.x/db/df5/tutorial_linux_gcc_cmake.html\n- https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html\n- https://docs.opencv.org/4.x/index.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodspeedhq%2Fopencv-benches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodspeedhq%2Fopencv-benches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodspeedhq%2Fopencv-benches/lists"}