Skip to content

Commit

Permalink
Do not run ycsb workloads for extra configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Sep 3, 2024
1 parent c7a525d commit c67bcac
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 40 deletions.
12 changes: 9 additions & 3 deletions cmd/dance/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,20 @@ func main() {

for _, cf := range cli.Config {
for _, db := range cli.Database {
log.Println(db, cf)
rl := l.With(slog.String("config", cf), slog.String("database", db))

c, err := configload.Load(cf, db)
if err != nil {
log.Fatal(err)
rl.Error(err.Error())
os.Exit(1)
}

rl := l.With(slog.String("config", cf), slog.String("database", db))
if c == nil {
rl.Warn("No configuration, skipping")
continue
}

rl.Info("Configuration loaded")

var runner runner.Runner

Expand Down
2 changes: 1 addition & 1 deletion internal/configload/configload.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func loadContent(content, db string) (*config.Config, error) {

res := pc.Results[db]
if res == nil {
return nil, fmt.Errorf("no results configuration for %q", db)
return nil, nil
}

results, err := res.convert()
Expand Down
12 changes: 0 additions & 12 deletions projects/ycsb-workloada.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,10 @@ results:
stats:
pass: 3

mongodb-secured:
stats:
pass: 3

ferretdb-postgresql:
stats:
pass: 3

ferretdb-sqlite-replset:
stats:
pass: 3

ferretdb-postgresql-secured:
stats:
pass: 3

ferretdb-sqlite-replset-secured:
stats:
pass: 3
12 changes: 0 additions & 12 deletions projects/ycsb-workloadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,10 @@ results:
stats:
pass: 3

mongodb-secured:
stats:
pass: 3

ferretdb-postgresql:
stats:
pass: 3

ferretdb-sqlite-replset:
stats:
pass: 3

ferretdb-postgresql-secured:
stats:
pass: 3

ferretdb-sqlite-replset-secured:
stats:
pass: 3
12 changes: 0 additions & 12 deletions projects/ycsb-workloadc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,10 @@ results:
stats:
pass: 2

mongodb-secured:
stats:
pass: 2

ferretdb-postgresql:
stats:
pass: 2

ferretdb-sqlite-replset:
stats:
pass: 2

ferretdb-postgresql-secured:
stats:
pass: 2

ferretdb-sqlite-replset-secured:
stats:
pass: 2

0 comments on commit c67bcac

Please sign in to comment.