Comments (4)
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.
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.
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.
Fixed with 194a5ac. Released version 0.1.2. Thanks again!
from jmh-clojure.
Related Issues (9)
- Valid clj keyword benchmark names are munged to invalid Java method names HOT 6
- Implicit default selectors to simplify :select usage HOT 2
- Examples in README fail due to clojure.lang.Named cast exception HOT 2
- Support params in :options map HOT 3
- Support Clojure 1.9 clj tool HOT 3
- "package org.openjdk.jmh.annotations does not exist" when using boot HOT 2
- byte-code level incompatibility with Java <= 13 HOT 11
- Best way to benchmark a variable number of arguments HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmh-clojure.