Skip to content

crypto/tls: mention cpu frequency scaling in "why does using GOMAXPROCS > 1 sometimes make my program slower?" #7791

Description

@gopherbot

by giantchen:

When I was benchmarking TLS handshaking with http://play.golang.org/p/WZlt7mI4WN , I
noticed that using GOMAXPROCS > 1 does make my program significantly slower (1.5x ~
2x). And I found the reason to be CPU frequency scaling, because no threads run hot
enough to stimulate CPU cores.

May be worth mention that in the FAQ.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions