Are there any good Clojure benchmarks?

前端 未结 5 2000
误落风尘
误落风尘 2021-01-30 21:51

Edit: The Clojure benchmarks are up on the Benchmarks Game.

I have made this question community wiki and invite others to keep it updated.

5条回答
  •  旧时难觅i
    2021-01-30 22:06

    Clojure will never be able to match a Scala program that takes full advantage of mutability in an algorithm that's benefitted by it. There's also the fact that Clojure is a dynamic language, which, presently, isn't very well supported by JVM.

    On the other hand, Clojure excels at enabling parallel, asynchronous and distributed algorithms, and immutable algorithms generally speaking.

    So, if you want (mostly) immutability and multicore efficiency, Clojure will make those much easier to achieve. If your algorithms really, really need to heavily use mutability for efficiency, then Scala will make those easier.

    Anything in between, it likely won't matter either way.

提交回复
热议问题