mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
Fix benchmark names to match CLI
This commit is contained in:
parent
57406c2142
commit
a049bd3b34
7 changed files with 7 additions and 7 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue