Skip to content

Commit

Permalink
Revert "Add testID field to the json result"
Browse files Browse the repository at this point in the history
This reverts commit 1fa89da.
  • Loading branch information
rlmanrique committed Jan 8, 2025
1 parent 1fa89da commit 57fd089
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions benchmarker/cmd/ann_benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ type ResultsJSONBenchmark struct {
Timestamp string `json:"timestamp"`
Branch string `json:"branch"`
Commit string `json:"commit"`
TestId string `json:"test_id"`
}

// Convert an int to a uuid formatted string
Expand Down Expand Up @@ -969,7 +968,6 @@ func runQueries(cfg *Config, importTime time.Duration, testData [][]float32, nei
Timestamp: time.Now().Format(time.RFC3339),
Branch: cfg.Branch,
Commit: cfg.Commit,
TestId: cfg.TestId,
}

jsonData, err := json.Marshal(benchResult)
Expand Down Expand Up @@ -1200,8 +1198,6 @@ func initAnnBenchmark() {
"branch", "main", "Branch name")
annBenchmarkCommand.PersistentFlags().StringVar(&globalConfig.Commit,
"commit", "1234567890", "Commit hash")
annBenchmarkCommand.PersistentFlags().StringVar(&globalConfig.TestId,
"testId", "sq_1", "Test ID")
}

func benchmarkANN(cfg Config, queries Queries, neighbors Neighbors, filters []int) Results {
Expand Down
1 change: 0 additions & 1 deletion benchmarker/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ type Config struct {
FilterStrategy string
Branch string
Commit string
TestId string
}

func (c *Config) Validate() error {
Expand Down

0 comments on commit 57fd089

Please sign in to comment.