Closed moeller0 closed 6 years ago
Remarkably similar for me. I'll be upgrading to High Sierra in the near future and will try these tests again...
Testing wall vs monotonic clocks...
Monotonic Wall Wall-Monotonic Wall Drift / Second
104ns 104ns 0s 0s
1.000288203s 1.000288203s 0s 0s
2.000841568s 2.000803568s -38µs -18.992µs
3.005877891s 3.005801891s -76µs -25.283µs
4.011019706s 4.010943706s -76µs -18.947µs
5.016120252s 5.016006252s -114µs -22.726µs
6.017163168s 6.017049168s -114µs -18.945µs
7.022270534s 7.022118534s -152µs -21.645µs
8.027411978s 8.027259978s -152µs -18.935µs
9.032457028s 9.032266028s -191µs -21.145µs
Just for interest, Linux looks quite different:
sysadmin@apu2a:~$ uname -a
Linux apu2a 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux
sysadmin@apu2a:~$ irtt clock
Testing wall vs monotonic clocks...
Monotonic Wall Wall-Monotonic Wall Drift / Second
1.196µs 1.471µs 275ns 229.93311ms
1.000310549s 1.000310691s 142ns 141ns
2.000703818s 2.000704038s 220ns 109ns
3.000919569s 3.000919811s 242ns 80ns
4.00110031s 4.001100584s 274ns 68ns
5.001312509s 5.001312771s 262ns 52ns
6.001530385s 6.00153042s 35ns 5ns
7.001747489s 7.00174773s 241ns 34ns
8.001954591s 8.001954827s 236ns 29ns
9.002159473s 9.002159718s 245ns 27ns
Monotonic Wall Wall-Monotonic Wall Drift / Second
10.00235609s 10.002356344s 254ns 25ns
11.002672058s 11.002672315s 257ns 23ns
12.002874381s 12.002874645s 264ns 21ns
13.003071078s 13.003071343s 265ns 20ns
14.003264039s 14.0032643s 261ns 18ns
15.003462617s 15.003462843s 226ns 15ns
16.00366868s 16.003668911s 231ns 14ns
17.003865641s 17.003865902s 261ns 15ns
18.004067311s 18.004067575s 264ns 14ns
19.004277429s 19.004277696s 267ns 14ns
bash-3.2$ uname -a Darwin hms-beagle2.local 16.7.0 Darwin Kernel Version 16.7.0: Wed Oct 4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64 x86_64 bash-3.2$ irtt clock Testing wall vs monotonic clocks...
^C bash-3.2$ sudo irtt clock