[master] a289b6191 add phk's suggestion to the micro-benchmark

Federico Schwindt fgsch at lodoss.net
Mon Oct 8 09:03:46 UTC 2018


macos:

real: 0.004912s / 100000 = 49.118996ns - tst val 153898934846862.750000
mono: 0.009153s / 100000 = 91.528893ns - tst val 41563718859.713966
printf %.6f: 0.025697s / 100000 = 256.970000ns - tst val 5100000.000000
415637.193185
printf %ju.%06ju: 0.017690s / 100000 = 176.900000ns - tst val
5100000.000000 415637.218924

inside docker:

real: 0.832294s / 100000 = 8322.939873ns - tst val 153898925522214.531250
mono: 0.829368s / 100000 = 8293.678761ns - tst val 13489198485.484814
printf %.6f: 0.076031s / 100000 = 760.311000ns - tst val 5700000.000000
134892.398735
printf %ju.%06ju: 0.019017s / 100000 = 190.173000ns - tst val
5700000.000000 134892.474827


On Mon, Oct 8, 2018 at 9:50 AM Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:

> --------
> In message <20181008083009.DE8FB6469A at lists.varnish-cache.org>, Nils
> Goroll wri
> tes:
>
> >    add phk's suggestion to the micro-benchmark
>
> That's a decent speedup on my laptop:
>
>         real: 0.002875s / 100000 = 28.746128ns - tst val
> 153898795965262.718750
>         mono: 0.002804s / 100000 = 28.038025ns - tst val 23255208087.509720
>         printf %.6f: 0.030551s / 100000 = 305.507500ns - tst val
> 5300000.000000 232552.082280
>         printf %ju.%06ju: 0.022367s / 100000 = 223.666760ns - tst val
> 5300000.000000 232552.112834
>
> Not so much on the VM which runs varnish-cache.org:
>
>         real: 0.232683s / 100000 = 2326.831818ns - tst val
> 153898853429232.062500
>         mono: 0.224068s / 100000 = 2240.684032ns - tst val 702986774.319679
>         printf %.6f: 0.036718s / 100000 = 367.176090ns - tst val
> 4600000.000000 7029.980350
>         printf %ju.%06ju: 0.035709s / 100000 = 357.088150ns - tst val
> 4600000.000000 703
>
>
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
> _______________________________________________
> varnish-commit mailing list
> varnish-commit at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-commit/attachments/20181008/77b91c18/attachment.html>


More information about the varnish-commit mailing list