Giter Club home page Giter Club logo

lein-jmh's People

Contributors

jgpc42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kingmob

lein-jmh's Issues

Clarify format of jmh.edn file

The file extension of the jmh.edn file would point to it being edn,
but it doesn’t seem to be edn. For example, the sample file is clearly
not valid edn, as it has an anonymous function literal and a symbol that
resolves to a static method of a Java class (Thread/sleep).
edn is a data format that isn’t
tied to a particular language (I’m sure you know this).

As far as I understand, currently jmh.edn may contain arbitrary
Clojure code but must evaluate to a map. I’m not sure if the file should
be called jmh.edn then; certain expectations come with the extension:
purely declarative, no Clojure constructs.

Me, I would welcome a pure edn benchmark file.

Possible changes: call the default file jmh.clj; actually make it an
edn file (perhaps with the proviso that unqualified symbols will be in
clojure.core); document clearly what the contents of the file may or
may not be.

Option for printing results in an easy to read, tabular format

This is a feature request for your consideration.

lein-jmh does a very fine job as a thin wrapper around jmh-clojure, but
I believe the default data-oriented presentation of the benchmark
results is not easy to use for a human reader.

JMH itself presents benchmark results in a table-like format, where
differences between benchmarks really can be seen at a glance.

Please consider providing an option for outputting results in a similar
human-readable at-a-glance format. Thank you!

Lein jmh doesn't use source-paths when loading code

Hi there,

It seems like this plugin isn't using the :source-paths value from the project.clj file.

I've run into an issue with one of my projects where I can't access any functions from my namespaces in the jmh.edn file. Whenever I add a function from my a namespace in my project, lein jmh fails with:

java.lang.RuntimeException: value did not resolve to a fn: jmh-test-more-src.more-core/more-gen-fn

The project uses a maven style layout, where I've provided source-paths. (and java-source-paths but that doesn't seem related based on my repro below)

I've got a repo with a minimal reproduction here: https://github.com/lfn3/lein-jmh-source-path-issue-repro

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.