FAQ
*** Submitted as
http://code.google.com/p/go/source/detail?r=42c8d3aadc40 ***

runtime: use vDSO clock_gettime for time.now & runtime.nanotime on
Linux/amd64
Performance improvement aside, time.Now() now gets real nanosecond
resolution
on supported systems.

Benchmark done on Core i7-2600 @ 3.40GHz with kernel 3.5.2-gentoo.
original vDSO gettimeofday:
BenchmarkNow 100000000 27.4 ns/op
new vDSO gettimeofday fallback:
BenchmarkNow 100000000 27.6 ns/op
new vDSO clock_gettime:
BenchmarkNow 100000000 24.4 ns/op

R=golang-dev, bradfitz, iant, iant
CC=golang-dev
http://codereview.appspot.com/6814103


http://codereview.appspot.com/6814103/

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 8 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedNov 8, '12 at 10:47a
activeNov 9, '12 at 6:19a
posts8
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase