go-ycsb

module
v0.0.0-...-8d64414 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: Apache-2.0

README

go-ycsb

go-ycsb is a Go port of YCSB. It fully supports all YCSB generators and the Core workload so we can do the basic CRUD benchmarks with Go.

Getting Started

git clone https://github.com/pingcap/go-ycsb.git $GOPATH/src/github.com/pingcap/go-ycsb
cd $GOPATH/src/github.com/pingcap/go-ycsb
make

./bin/go-ycsb

Usage

Mostly, we can start from the offical document Running-a-Workload.

Shell
./bin/go-ycsb shell basic
» help
YCSB shell command

Usage:
  shell [command]

Available Commands:
  delete      Delete a record
  help        Help about any command
  insert      Insert a record
  read        Read a record
  scan        Scan starting at key
  table       Get or [set] the name of the table
  update      Update a record
Load
./bin/go-ycsb load basic -P workloads/workloada
Run
./bin/go-ycsb run basic -P workloads/workloada

Supported Database

  • basic
  • mysql
  • tikv

TODO

  • Support more measurement, like HdrHistogram
  • Add tests for generators

Directories

Path Synopsis
cmd
db
pkg

Jump to

Keyboard shortcuts

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