Skip to content

Commit

Permalink
benchmark: add metadata value to benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
farbodahm committed Sep 1, 2024
1 parent 13eb677 commit 2289915
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/utils/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func HeavyRecordSchema() Schema {
// with given length.
// You can use this for benchmark tests.
func NewHeavyRecord(string_length int) Record {
t := time.Now()
return Record{
Key: GenerateRandomString(string_length),
Data: ValueMap{
Expand All @@ -75,5 +76,9 @@ func NewHeavyRecord(string_length int) Record {
"field_19": String{Val: GenerateRandomString(string_length)},
"field_20": String{Val: GenerateRandomString(string_length)},
},
Metadata: Metadata{
Stream: "benchmark",
Timestamp: t,
},
}
}

0 comments on commit 2289915

Please sign in to comment.