{"id":18322466,"url":"https://github.com/sureshg/jmh-bench-sample","last_synced_at":"2026-04-02T02:05:29.516Z","repository":{"id":37962949,"uuid":"256875955","full_name":"sureshg/jmh-bench-sample","owner":"sureshg","description":"⌛ A sample repo for building and visualize Java and Kotlin benchmarks with JMH.","archived":false,"fork":false,"pushed_at":"2026-03-19T13:43:08.000Z","size":1632,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-20T06:28:55.714Z","etag":null,"topics":["github","github-package-registry","java","jmh","jmh-benchmark","jvm","kotlin","maven","microbenchmark"],"latest_commit_sha":null,"homepage":"https://suresh.dev/jmh-bench-sample/?sources=jmh-result-Linux.json,jmh-result-macOS.json,jmh-result-Windows.json","language":"Kotlin","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/sureshg.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-18T23:46:53.000Z","updated_at":"2026-03-19T13:42:55.000Z","dependencies_parsed_at":"2026-03-03T16:01:43.389Z","dependency_job_id":null,"html_url":"https://github.com/sureshg/jmh-bench-sample","commit_stats":null,"previous_names":[],"tags_count":47,"template":true,"template_full_name":null,"purl":"pkg:github/sureshg/jmh-bench-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sureshg%2Fjmh-bench-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sureshg%2Fjmh-bench-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sureshg%2Fjmh-bench-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sureshg%2Fjmh-bench-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sureshg","download_url":"https://codeload.github.com/sureshg/jmh-bench-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sureshg%2Fjmh-bench-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["github","github-package-registry","java","jmh","jmh-benchmark","jvm","kotlin","maven","microbenchmark"],"created_at":"2024-11-05T18:24:43.821Z","updated_at":"2026-04-02T02:05:29.508Z","avatar_url":"https://github.com/sureshg.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## :hourglass: [JMH][jmh_url] Benchmark Sample\n\n\u003ca href=\"https://foojay.io/today/works-with-openjdk\"\u003e\n \u003cimg align=\"right\" src=\"https://github.com/foojayio/badges/raw/main/works_with_openjdk/WorksWithOpenJDK.svg\" width=\"7%\" alt=\"WorksWithOpenJDK\"\u003e\n\u003c/a\u003e\n\n[![GitHub Workflow Status][shieldio_img]][gha_url]\n[![JMH][jmh_img]][jmh_url]\n[![Kotlin release][kt_img]][kt_url]\n[![OpenJDK Version][java_img]][java_url]\n[![Style guide][sty_img]][sty_url]\n\nA sample repo for building **Java** and **Kotlin** benchmarks with JMH and publish the artifacts\nto [GitHub Package Registry][github-packages].\n\n- #### :building_construction: Build \u0026 Run\n\n```bash\n$ ./mvnw clean verify\n$ java --enable-preview -jar target/benchmarks.jar\n\n# Get a list of supported formats\n$ java --enable-preview -jar target/benchmarks.jar -lrf\n\n# For JSON output\n$ java --enable-preview -jar target/benchmarks.jar -rf json\n```\n\n- #### :running: Run with Async-Profiler\n\n```bash\n$ java --enable-preview -jar target/benchmarks.jar \\\n       -prof \"async:libPath=/path/to/async-profiler-3.0/lib/libasyncProfiler.dylib;output=jfr;rawCommand=features=vtable\"\n```\n\n- #### :running: Run with profiling (requires [hsdis][hsdis])\n\n```bash\n$ java --enable-preview -jar target/benchmarks.jar -prof perfasm\n```\n\n##### :art: JMH Visualization\n\n[JMH Benchmarks Viz](https://suresh.dev/jmh-bench-sample/?source=jmh-result-Linux.json)\n\n##### :bookmark: Resources\n\n- [JMH Samples](https://github.com/openjdk/jmh/tree/master/jmh-samples/src/main/java/org/openjdk/jmh/samples)\n- [JMH Kotlin Archetype](https://github.com/openjdk/jmh/tree/master/jmh-archetypes/jmh-kotlin-benchmark-archetype)\n- [Kotlin Benchmarks](https://github.com/Kotlin/kotlin-benchmarks)\n- [Intellij JMH Plugin](https://plugins.jetbrains.com/intellij-platform-explorer/7529)\n- [JMH Visualizer](https://github.com/jzillmann/jmh-visualizer)\n- [JMH Gradle Plugin](https://github.com/melix/jmh-gradle-plugin)\n- [JMH Gradle Report](https://github.com/jzillmann/gradle-jmh-report)\n- [GitHub Action—Java with Maven](https://docs.github.com/en/actions/guides/building-and-testing-java-with-maven)\n\n##### :hammer_and_wrench: Misc\n\n```bash\n# Maven and dependencies updates.\n$ ./mvnw wrapper:wrapper -Dmaven=3.9.2\n$ ./mvnw --version\n$ ./mvnw clean versions:display-dependency-updates versions:display-plugin-updates versions:display-property-updates\n$ ./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout\n```\n\n##### :copyright: Credits\n\n---\n\n* [JMH Samples](https://github.com/openjdk/jmh/tree/master/jmh-samples)\n* [JCStress Samples](https://github.com/openjdk/jcstress/tree/master/jcstress-samples)\n\n[github-packages]: https://github.com/sureshg/jmh-bench-sample/packages\n\n[jmh-archetypes]: https://github.com/openjdk/jmh/tree/master/jmh-archetypes\n\n[kt_url]: https://github.com/JetBrains/kotlin/releases/latest\n\n[kt_img]: https://img.shields.io/github/v/release/Jetbrains/kotlin?include_prereleases\u0026color=7f53ff\u0026label=Kotlin\u0026logo=kotlin\u0026logoColor=7f53ff\n\n[jmh_url]: https://github.com/openjdk/jmh#java-microbenchmark-harness-jmh\n\n[jmh_img]: https://img.shields.io/maven-central/v/org.openjdk.jmh/jmh-core?color=cd2237\u0026label=Jmh-Core\u0026logo=apache%20maven\u0026logoColor=cd2237\n\n[java_url]: https://jdk.java.net/\n\n[java_img]: https://img.shields.io/badge/OpenJDK-27--EA-ea791d?logo=java\u0026logoColor=ea791d\n\n[gha_url]: https://github.com/sureshg/jmh-bench-sample/actions/workflows/build.yml\n\n[gha_img]: https://github.com/sureshg/jmh-bench-sample/actions/workflows/build.yml/badge.svg?branch=main\n\n[shieldio_img]: https://img.shields.io/github/actions/workflow/status/sureshg/jmh-bench-sample/build.yml?branch=main\u0026color=green\u0026label=JMH%20CI%20Build\u0026logo=Github-Actions\u0026logoColor=green\n\n[sty_url]: https://kotlinlang.org/docs/coding-conventions.html\n\n[sty_img]: https://img.shields.io/badge/style-Kotlin--Official-40c4ff.svg?logo=kotlin\u0026logoColor=40c4ff\n\n[hsdis]: https://chriswhocodes.com/hsdis/\n\n[hsdis-building]: https://github.com/AdoptOpenJDK/jitwatch/wiki/Building-hsdis\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsureshg%2Fjmh-bench-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsureshg%2Fjmh-bench-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsureshg%2Fjmh-bench-sample/lists"}