{"id":28166553,"url":"https://github.com/jgpc42/lein-jmh","last_synced_at":"2025-05-15T13:13:49.316Z","repository":{"id":57713794,"uuid":"105079639","full_name":"jgpc42/lein-jmh","owner":"jgpc42","description":"Leiningen plugin for jmh-clojure","archived":false,"fork":false,"pushed_at":"2025-01-11T14:00:35.000Z","size":96,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-02T10:54:24.000Z","etag":null,"topics":["benchmarking","clojure","jmh","leiningen"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgpc42.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2017-09-27T23:27:36.000Z","updated_at":"2025-01-11T14:00:38.000Z","dependencies_parsed_at":"2024-01-14T16:08:47.630Z","dependency_job_id":"373286b0-194a-4b41-86d0-a631bbb6667e","html_url":"https://github.com/jgpc42/lein-jmh","commit_stats":{"total_commits":76,"total_committers":1,"mean_commits":76.0,"dds":0.0,"last_synced_commit":"9850ac0a3da28b177b090f8ab1ae98768b7b0605"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgpc42%2Flein-jmh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgpc42%2Flein-jmh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgpc42%2Flein-jmh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgpc42%2Flein-jmh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgpc42","download_url":"https://codeload.github.com/jgpc42/lein-jmh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346569,"owners_count":22055809,"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":["benchmarking","clojure","jmh","leiningen"],"created_at":"2025-05-15T13:13:18.486Z","updated_at":"2025-05-15T13:13:49.295Z","avatar_url":"https://github.com/jgpc42.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Clojars Project](https://img.shields.io/clojars/v/lein-jmh.svg)](https://clojars.org/lein-jmh)\n[![](https://github.com/jgpc42/lein-jmh/workflows/Test%20runner/badge.svg)][ci]\n\n### Adding to your project\n\nAdd `[lein-jmh \"0.3.0\"]` to your `:plugins` section. For example:\n\n```clojure\n(defproject your-project #_...\n  :plugins [[lein-jmh \"0.3.0\"]])\n```\n\n### What is it?\n\nLeiningen plugin for running [jmh-clojure][jmh-clj] benchmarks.\n\n### Usage\n\nRun `lein help jmh` to get started.\n\nAs mentioned in the help, by default, a `jmh.edn` file at the root of your project is used to configure lein-jmh. Please see the [sample file][sample] for a complete guide. The task takes an optional single argument that gives the task and/or benchmark options. If omitted, all defined benchmarks will be run:\n\n```bash\n$ lein jmh\n```\n\nGive a map to configure the runner. For example, to run all benchmarks that match a selector from a data file in an alternate location:\n\n```bash\n$ lein jmh '{:file \"benchmarks/parser.edn\", :select :decode}'\n```\n\nAdditionally, the available JMH profilers may be listed with: `lein jmh :profilers`.\n\nA more involved example can be found [here][async].\n\n### More information\n\nThis plugin is a very thin wrapper for the [`jmh-clojure-task`][task] library. Please see the documentation there for full usage instructions and extended examples.\n\n### Note about tiered compilation\n\nThe JVM option `-XX:TieredStopAtLevel=1` is normally set automatically by Leiningen when running code in your project. This option speeds up JVM startup time but is normally problematic for benchmarking as it disables the [C2][c2] compiler.\n\nSince lein-jmh merges the `:jmh` profile automatically when running benchmarks, adding the following to your project's `:profiles` key should be sufficient for most users:\n\n```clojure\n:profiles {:jmh {:jvm-opts []}}\n```\n\nAlternatively, use `:fork` and specify different `:jvm :args` to override the Leiningen parent process arguments. This can be specified in your `jmh.edn` file, or globally via the task options map.\n\n### Running the tests\n\n```bash\nlein test\n```\n\nOr, `lein test-all` for all supported Clojure versions.\n\n### License\n\nCopyright © 2017-2025 Justin Conklin\n\nDistributed under the Eclipse Public License, the same as Clojure.\n\n\n\n[async]:    https://gist.github.com/jgpc42/a694c8b4255ed332dac38428bd4e0546\n[c2]:       http://openjdk.java.net/groups/hotspot/docs/HotSpotGlossary.html\n[ci]:       https://github.com/jgpc42/lein-jmh/blob/master/.github/workflows/test.yml\n[jmh-clj]:  https://github.com/jgpc42/jmh-clojure\n[sample]:   https://github.com/jgpc42/jmh-clojure/blob/master/resources/sample.jmh.edn\n[task]:     https://github.com/jgpc42/jmh-clojure-task\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgpc42%2Flein-jmh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgpc42%2Flein-jmh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgpc42%2Flein-jmh/lists"}