Centos 7, 400x slower for System.nanoTime than windows
问题 I have seen and read posts on why System.nanoTime() is slower on some OSes than others, however I have never seen anything to explain the difference I am seeing now. Using JMH, I am running this benchmark. (Note: it uses System.nanoTime() as well) @Benchmark public long systemNanoTime() { return System.nanoTime(); } On Windows 10, this takes ~25 ns. On Centos 7, Linux 3.10 it is measured as taking ~10293 ns. This is on the same machine, Intel(R) Core(TM) i7-7820X CPU @ 3.60GHz Is there an