Registry / utility / dterei-gotsc

dterei-gotsc

JSON →
library0.0.0-20160722215413-e78f872945c6gogounverified

Provides access to the x86-64 timestamp cycle counter for high-precision benchmarking.

go get github.com/dterei/gotsc
INSTALL
IMPORT
SIG · DTEREI-GOTSC
D
dterei-gotsc
utilitygov0.0.0-20160722215413-e78f872945c6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gotsc
github.com/dterei/gotsc

Measures the overhead of reading the timestamp counter.

package main import ( "fmt" "github.com/dterei/gotsc" ) func main() { ts := gotsc.TSCOverhead() fmt.Println("TSC overhead:", ts) }
Debug
Known issues
gotchaOn non-x86-64 platforms, all functions return 0.
fix
Ensure your code only uses this package on x86-64 systems, or handle zero values gracefully.
affects: all
Upgrade
Version history
0.0.0-20160722215413-e78f872945c6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
dterei-gotsc — go get dterei-gotsc · libregistry