Git Product home page Git Product logo

Comments (4)

jgpc42 avatar jgpc42 commented on June 7, 2024

The NPE was caused by jmh's NoBenchmarksException returning nil from getMessage, which I didn't expect. I have fixed the issue in my local repo.

Do you have an opinion on how the larger "no benchmarks" issue should be handled? Should the NoBenchmarksException be re-thrown? Or should jmh.core/run just return an empty seq in this case?

Thanks again for the bug report and good repro!

from jmh-clojure.

jgpc42 avatar jgpc42 commented on June 7, 2024

I've thought a bit on this now and I'm leaning on just re-throwing the NoBenchmarksException for the time being, which is consistent with the JMH API. Also, jmh.exec/run already will throw other JMH exception types. For example, a RunnerException is thrown when JMH can't acquire the lock file.

Returning an empty seq might be confusing too if a user simply misspelled a selector name for example.

from jmh-clojure.

glts avatar glts commented on June 7, 2024

Thank you for answer and work.

Unfortunately I don’t think I can answer these questions. I am only a
user; I’m not familiar with the JMH APIs. This issue here I stumbled
over when I wanted to run a single benchmark and did not manage to write
a selector that worked.

from jmh-clojure.

jgpc42 avatar jgpc42 commented on June 7, 2024

Fixed with 194a5ac. Released version 0.1.2. Thanks again!

from jmh-clojure.

Related Issues (9)

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.