benchmarks

package module
v0.0.0-...-237b2bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

The benchmarks will only work for amd64 builds. To run the benchmarks, you have to amend the path in the replace line in go.mod.

To generate a diagram use e.g. GOMAXPROCS=100 go test -bench=Get -benchmem | grep -E ': |Parallel' >bench.out ./plot.py (a diagram opens, it is also stored in bench.png)

Documentation

Index

Constants

View Source
const (

	// Init32 is what 32 bits hash values should be initialized with.
	Init32 = offset32
)
View Source
const PtrSize = 4 << (^uintptr(0) >> 63)

PtrSize is the size of a pointer in bytes - unsafe.Sizeof(uintptr(0)) but as an ideal constant. It is also the size of the machine's native word size (4 on 32-bit systems, 8 on 64-bit).

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL