Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
  • go
  • src
  • pkg
  • runtime
  • sys_linux_amd64.s
Find file BlameHistoryPermalink
  • Shenghou Ma's avatar
    runtime: use vDSO clock_gettime for time.now & runtime.nanotime on Linux/amd64 · 4022fc4e
    Shenghou Ma authored Nov 09, 2012
    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
    https://golang.org/cl/6814103
    4022fc4e
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7