Fix benchmark names to match CLI

This commit is contained in:
Alan Bernstein 2016-12-20 10:08:37 -06:00
parent 57406c2142
commit a049bd3b34
7 changed files with 7 additions and 7 deletions

View file

@ -21,7 +21,7 @@ type DiagonalSetBits struct {
}
func (b *DiagonalSetBits) Init(hosts []string, agentNum int) error {
b.Name = "DiagonalSetBits"
b.Name = "diagonal-set-bits"
return b.HasClient.Init(hosts, agentNum)
}

View file

@ -108,7 +108,7 @@ func (b *Import) Init(hosts []string, agentNum int) error {
if len(hosts) == 0 {
return fmt.Errorf("Need at least one host")
}
b.Name = "Import"
b.Name = "import"
b.Host = hosts[0]
// generate csv data
baseBitmapID, maxBitmapID, baseProfileID, maxProfileID := b.BaseBitmapID, b.MaxBitmapID, b.BaseProfileID, b.MaxProfileID

View file

@ -19,7 +19,7 @@ type MultiDBSetBits struct {
}
func (b *MultiDBSetBits) Init(hosts []string, agentNum int) error {
b.Name = "MultiDBSetBits"
b.Name = "multi-db-set-bits"
return b.HasClient.Init(hosts, agentNum)
}

View file

@ -25,7 +25,7 @@ type RandomSetBits struct {
}
func (b *RandomSetBits) Init(hosts []string, agentNum int) error {
b.Name = "RandomSetBits"
b.Name = "random-set-bits"
return b.HasClient.Init(hosts, agentNum)
}

View file

@ -24,7 +24,7 @@ type RandomQuery struct {
}
func (b *RandomQuery) Init(hosts []string, agentNum int) error {
b.Name = "RandomQuery"
b.Name = "random-query"
return b.HasClient.Init(hosts, agentNum)
}

View file

@ -85,7 +85,7 @@ func (b *SliceHeight) ConsumeFlags(args []string) ([]string, error) {
}
func (b *SliceHeight) Init(hosts []string, agentNum int) error {
b.Name = "SliceHeight"
b.Name = "slice-height"
b.hosts = hosts
return nil
}

View file

@ -121,7 +121,7 @@ func getZipfOffset(N int64, exp, ratio float64) float64 {
}
func (b *ZipfSetBits) Init(hosts []string, agentNum int) error {
b.Name = "ZipfSetBits"
b.Name = "zipf-set-bits"
rnd := rand.New(rand.NewSource(b.Seed + int64(agentNum)))
bitmapOffset := getZipfOffset(b.BitmapIDRange, b.BitmapExponent, b.BitmapRatio)
b.bitmapRng = rand.NewZipf(rnd, b.BitmapExponent, bitmapOffset, uint64(b.BitmapIDRange-1))