heistp / irtt

Isochronous Round-Trip Tester
GNU General Public License v2.0
185 stars 23 forks source link

Macosx 10.12.6 irtt sleep results #4

Closed moeller0 closed 6 years ago

moeller0 commented 6 years ago
bash-3.2$ irtt sleep
Testing sleep accuracy...

Sleep Duration        Mean Error       % Error
           1ns             319ns       31920.4
          10ns             309ns        3094.7
         100ns             218ns         218.6
           1µs           5.515µs         551.5
          10µs           8.759µs          87.6
         100µs          32.912µs          32.9
           1ms         329.167µs          32.9
          10ms        1.792291ms          17.9
         100ms         2.73035ms           2.7
         200ms        3.271282ms           1.6
         500ms        1.748611ms           0.3

bash-3.2$ sudo irtt sleep
Password:
Testing sleep accuracy...

Sleep Duration        Mean Error       % Error
           1ns             316ns       31669.5
          10ns             308ns        3081.6
         100ns             218ns         218.5
           1µs           5.612µs         561.2
          10µs           8.878µs          88.8
         100µs          33.061µs          33.1
           1ms         326.339µs          32.6
          10ms         1.95625ms          19.6
         100ms        2.811226ms           2.8
         200ms        2.738883ms           1.4
         500ms         3.74202ms           0.7
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$ 
heistp commented 6 years ago

Thanks, we've got pretty similar hardware (also a 2.5 GHz Quad i7, late 2011), but running 10.11 in my case. Your numbers look a bit better.

tron:~/src/github.com/peteheist/irtt:% ./irtt sleep
Testing sleep accuracy...

Sleep Duration        Mean Error       % Error
           1ns             379ns       37995.4
          10ns             371ns        3711.1
         100ns             281ns         281.6
           1µs           9.496µs         949.7
          10µs          30.556µs         305.6
         100µs          55.549µs          55.5
           1ms         235.191µs          23.5
          10ms        1.548548ms          15.5
         100ms        3.210214ms           3.2
         200ms        3.707174ms           1.9
         500ms        3.952757ms           0.8

tron:~/src/github.com/peteheist/irtt:% uname -a
Darwin tron.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Oct  2 22:20:08 PDT 2017; root:xnu-3248.71.4~1/RELEASE_X86_64 x86_64
heistp commented 6 years ago

And Linux (different hardware, APU2, so could obviously change things also):

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 sleep
Testing sleep accuracy...

Sleep Duration        Mean Error       % Error
           1ns           4.179µs      417995.5
          10ns           4.182µs       41823.4
         100ns           4.195µs        4195.8
           1µs           6.724µs         672.4
          10µs          97.855µs         978.6
         100µs         113.121µs         113.1
           1ms         115.472µs          11.5
          10ms         136.324µs           1.4
         100ms          139.13µs           0.1
         200ms          140.16µs           0.1
         500ms         140.066µs           0.0