News for hackers. Stuff that matters.
Re:Clojure, Faster by rcgorton on Friday January 08, 2021 @05:10PM (#25691180)
I'm concerned about these 'benchmarks'. They are using nanosecond timing intervals. By design, CPU clocks have jitter to resist timing attacks. Secondly, a single clock tick is much more than a nanosecond. I would feel much more comfortable with performance comparisons (in ANY language) when the duration is on the order of minutes.
Re:Clojure, Faster by aphyr on Friday January 08, 2021 @05:15PM (#25691232)
Criterium (the benchmarking library used here) uses multiple runs to obtain tighter bounds on amortized performance, as well as techniques to account for the effects of garbage collection and JIT compilation. See https://github.com/hugoduncan/criterium for a brief overview, as well as links to the pitfalls and statistical techniques involved in JVM benchmarking.
Re:Clojure, Faster by nahuel0x on Friday January 08, 2021 @07:10PM (#25692993)
> By design, CPU clocks have jitter to resist timing attacks.

Where did you get that info? Never saw anything like that.