redis

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

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

Go to latest
Published: Jan 9, 2019 License: Apache-2.0 Imports: 9 Imported by: 1

README

Benchmark Redis

This is a client of fperf which benchmarks Redis

How to use

Build fperf with redis support
go get github.com/shafreeck/fperf/bin/fperf-build
go get github.com/fperf/redis
fperf-build github.com/fperf/redis
Run the benchmark
./fperf -connection 128 -server redis://localhost:6379 redis set key:__rand_int__ "hello fperf"

Documentation

Overview

This is an example about how to build a redis benchmark to using fperf

A fperf testcase in fact is an implementation of fperf.UnaryClient. The client has two method:

Dial(addr string) error
Request() error

Dial connect to the server address witch set by fperf option "-server". fperf will exit and print the error message if error occurs.

Request is the method to fperf uses to issue an request. The returned error would be printed and fperf would continue.

Jump to

Keyboard shortcuts

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