mysql

package module
v0.0.0-...-56caead Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

README

Benchmark MySQL

This is a client of fperf which benchmarks MySQL

How to use

Build with fperf-build
go install github.com/fperf/fperf/bin/fperf-build
fperf-build github.com/fperf/mysql
Run benchmarks
./fperf -goroutine 512 -server 'root@tcp(mysql.example.com:3306)/fperf' mysql 'your sqls'

Documentation

Index

Constants

View Source
const (
	Query = Kind("query")
	Exec  = Kind("exec")
)

Variables

This section is empty.

Functions

func New

func New(flag *fperf.FlagSet) fperf.Client

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Dial

func (c *Client) Dial(addr string) error

func (*Client) Request

func (c *Client) Request() error

type Kind

type Kind string

type Statement

type Statement struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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