Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil-goel committed Dec 31, 2024
1 parent 556aec9 commit 833ad4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion posting/mvcc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func BenchmarkTestCache(b *testing.B) {
attr := x.GalaxyAttr("cache")
keys := make([][]byte, 0)
N := uint64(10000)
NInt = 10000
NInt := 10000
txn := Oracle().RegisterStartTs(1)

for i := uint64(1); i < N; i++ {
Expand Down
20 changes: 8 additions & 12 deletions worker/sort_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,18 +254,14 @@ func BenchmarkAddMutationWithIndex(b *testing.B) {
}

for i := 0; i < b.N; i++ {
b.RunParallel(func(pbi *testing.PB) {
for pbi.Next() {
edge := &pb.DirectedEdge{
Value: []byte(values[rand.Intn(int(n))]),
Attr: attr,
Entity: rand.Uint64()%n + 1,
Op: pb.DirectedEdge_SET,
}

x.Check(runMutation(ctx, edge, txn))
}
})
edge := &pb.DirectedEdge{
Value: []byte(values[rand.Intn(int(n))]),
Attr: attr,
Entity: rand.Uint64()%n + 1,
Op: pb.DirectedEdge_SET,
}

x.Check(runMutation(ctx, edge, txn))
}
}

Expand Down

0 comments on commit 833ad4a

Please sign in to comment.