goredis

package module
v0.0.0-...-c8d7c04 Latest Latest
Warning

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

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

README

Golang Tests

# run the tests
go test . -v -coverprofile=cover.out

# show the coverage
go tool cover -html cover.out

# run the benchmark tests
go test . -v -bench=BenchmarkRedisSet -benchmem -benchtime=10s -memprofile=mem.out -cpuprofile=cpu.out -run="^$"

# using count instead of duration:
go test . -v -bench=BenchmarkRedisSet -benchmem -benchtime=20000000x -memprofile=mem.out -cpuprofile=cpu.out -run="^$"

Golang Escape Analysis

go build -gcflags "-m -l" *.go

Benchmark

redis-benchmark -h localhost -p 3100 -r 100000000000 -P 1000 -c 50 -t SET,GET

# with bigger n
redis-benchmark -h localhost -p 3100 -r 100000000000 -P 10000 -c 24 -t SET,GET -q -n 20000000

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(listener net.Listener, logger *slog.Logger) *server

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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