does jmh has support of clojure ?

Aleksey Shipilev shade at redhat.com
Sun Jul 2 15:47:09 UTC 2017


On 07/02/2017 05:40 PM, 陈云星 wrote:
> I’m very glade of jmh a wonderful tool :)
> 
> the jmh has archetype of scala, groovy and java, so does it support clojure ?
> verty thank you :)

Back in the days, we have explored doing this. But, JMH generators need
something that statically compiled to bytecode, at least temporarily. Clojure
had the AOT mode, but it does not seem to be the default mode users run with.
The default was to use just-in-time compilation. Did that change?

Also, there is an interesting question how to map clojure elements to Java-like
language model. Is "gen-class" still the way to do it?

If AOT is enough and gen-class or the like is doable, then I think Clojure
archetype is easy enough to add.

-Aleksey



More information about the jmh-dev mailing list