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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedNov 9, '12 at 6:19a
activeNov 9, '12 at 6:19a
posts1
users1
websitegolang.org

1 user in discussion

Minux Ma: 1 post

People

Translate

site design / logo © 2022 Grokbase