package
module
Version:
v0.0.0-...-d973e3e
Opens a new window with list of versions in this module.
Published: Jan 9, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
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
¶
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.