{"id":22622823,"url":"https://github.com/msrocka/olca-benchmarks","last_synced_at":"2025-03-29T02:42:58.956Z","repository":{"id":81680517,"uuid":"140447826","full_name":"msrocka/olca-benchmarks","owner":"msrocka","description":"A project template for running micro-benchmarks of openLCA core functions.","archived":false,"fork":false,"pushed_at":"2020-01-18T17:13:42.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T12:50:48.870Z","etag":null,"topics":["jmh-benchmarks","openlca"],"latest_commit_sha":null,"homepage":"","language":"Java","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/msrocka.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":"2018-07-10T14:52:06.000Z","updated_at":"2022-01-10T09:33:34.000Z","dependencies_parsed_at":"2023-03-15T08:00:40.850Z","dependency_job_id":null,"html_url":"https://github.com/msrocka/olca-benchmarks","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"d94c28a4820fea0b02b79ea828a82946db4c69a0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msrocka%2Folca-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msrocka%2Folca-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msrocka%2Folca-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msrocka%2Folca-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msrocka","download_url":"https://codeload.github.com/msrocka/olca-benchmarks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246131242,"owners_count":20728299,"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":["jmh-benchmarks","openlca"],"created_at":"2024-12-08T23:18:54.170Z","updated_at":"2025-03-29T02:42:58.938Z","avatar_url":"https://github.com/msrocka.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# olca-benchmarks\nThis is a project template for running micro-benchmarks of openLCA core\nfunctions. It uses [jmh](http://openjdk.java.net/projects/code-tools/jmh/) from\nthe OpenJDK project with a pure Maven setup.\n\n## Usage\nPut your benchmark, e.g. `MyBenchmark`, in the `org.openlca.core.benchmark`\npackage (see also the other examples in this package) and run the following\nMaven command:\n\n```bash\nmvn clean package exec:java -q -Dbenchmark=MyBenchmark\n```\n\nOr execute the `run` script in this project:\n\n```bash\nrun MyBenchmark\n```\n\n## Examples\n\n### Sparse vs. dense matrix-vector functions\nUsing a plain hash table based implementation in Java for matrix-vector\noperations can be much faster than calling into an optimized BLAS library\n(OpenBLAS 64bit; tests with an ecoinvent 3.4 system):\n\n```\nBenchmark                         Mode  Cnt  Score   Error  Units\nSparseMVOps.denseMultiplication   avgt    3  0.210 ± 0.019   s/op\nSparseMVOps.denseScaling          avgt    3  0.456 ± 0.224   s/op\nSparseMVOps.sparseMultiplication  avgt    3  0.035 ± 0.002   s/op\nSparseMVOps.sparseScaling         avgt    3  0.038 ± 0.007   s/op\n```\n\n### Field access in table scans\nFor full table scans it can be much faster to access the fields by index (e.g.\n[getLong(int)](https://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html#getLong-int-))\ninstead by name (e.g. [getLong(String)](https://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html#getLong-java.lang.String-)).\nThese are results for the exchange table of [exiobase](https://nexus.openlca.org/database/exiobase):\n\n```\nBenchmark                             Mode  Cnt   Score   Error  Units\nExchangeTableScan.scanByFieldNames    avgt    5  40.594 ± 1.532   s/op\nExchangeTableScan.scanByFieldIndices  avgt    5  10.749 ± 0.833   s/op\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsrocka%2Folca-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsrocka%2Folca-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsrocka%2Folca-benchmarks/lists"}