{"id":17278312,"url":"https://github.com/kulpreet/libbitcoin-benchmark","last_synced_at":"2025-06-27T21:33:59.089Z","repository":{"id":146434956,"uuid":"221912898","full_name":"kulpreet/libbitcoin-benchmark","owner":"kulpreet","description":"Benchmarking libbitcoin, starting with focus on libbitcoin-database","archived":false,"fork":false,"pushed_at":"2019-12-17T15:17:11.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T14:27:09.164Z","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/kulpreet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-15T11:43:53.000Z","updated_at":"2019-12-17T15:17:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b6712cd-3ba1-4de2-95cb-80900057da40","html_url":"https://github.com/kulpreet/libbitcoin-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kulpreet/libbitcoin-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulpreet%2Flibbitcoin-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulpreet%2Flibbitcoin-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulpreet%2Flibbitcoin-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulpreet%2Flibbitcoin-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kulpreet","download_url":"https://codeload.github.com/kulpreet/libbitcoin-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulpreet%2Flibbitcoin-benchmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262335105,"owners_count":23295566,"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-15T09:11:22.863Z","updated_at":"2025-06-27T21:33:59.018Z","avatar_url":"https://github.com/kulpreet.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build\n\n## Build with cmake\n\n`mkdir build`\n`cd build`\n`PKG_CONFIG_PATH=\u003cpath to your libbitcoin pkgconfig files\u003e cmake ../`\n`cmake --build .`\n\n## Run\n\nStay in the build directory from above\n\n`./bm` or `./bm --benchmark-reptitions=N`\n\n## Requirements\n\n1. The libraries being benchmarked are installed in a directory\n   pointed to by `PKG_CONFIG_PATH`\n2. Google benchmark is already installed somewhere in the system's\n   pkgconfig path\n\n---\n\n## Benchmark script verification\n\nIn directory `src/script/`\n\nBuild target called as `bm-script-verify`\n\n1. `verify_script_benchmark.cpp` benchmarks the CPU time taken to\n   verify a P2WPKH spending transaction with only one input.\n\n---\n\n## Benchmark libbitcoin-database\n\n### Inputs\n\n1. Have a source of say first N blocks, including all the transactions.\n2. Skip validation, but instead, call the various `store` API to store\n   the above input data.\n3. Once stored, have another fixed random read queries run for a few\n   seconds.\n4. The read queries should look for blocks, tx, inputs and outputs.\n\n### Measure\n\n1. Time required to store\n2. Time required to read various artifacts.\n\n### Performance measurements\n\nOnce benchmark can be used to run the above measurements, the next\ngoal would be to use `perf` to find problem areas to work on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulpreet%2Flibbitcoin-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkulpreet%2Flibbitcoin-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulpreet%2Flibbitcoin-benchmark/lists"}