• Nils Goroll's avatar
    gethrtime() is now slower than clock_gettime() on modern Solarisen · f6a34391
    Nils Goroll authored
    Throw out the conventional wisdom and base the decision on a micro
    benchmark.
    
    clock_gettime() is now preferred if it is consistently at least
    double as fast as gethrtime(), which is the case on varnishdev-il,
    the SmartOS vtest machine.
    
    config.log gives details on the performance check, sample output
    below:
    
    configure:22703: ./conftest
    hrtime              45989530 check 16748699083977959327
    clock_gettime        4119385 check 16748701613138517215
    ...
    hrtime              48113108 check 16748749015170035860
    clock_gettime        4020802 check 16748751585081458308
    clock_gettime wins 10/10
    f6a34391
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
tools Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.syntastic_c_config Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.Packaging Loading commit data...
README.rst Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
flint.lnt Loading commit data...
varnish-legacy.m4 Loading commit data...
varnish.m4 Loading commit data...
varnishapi-uninstalled.pc.in Loading commit data...
varnishapi.pc.in Loading commit data...