mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Cache redesign, fixing transactions mechanism
This commit is contained in:
@@ -449,9 +449,9 @@ func BenchmarkRatingPlanRestore(b *testing.B) {
|
||||
EndTime: "15:00:00"}}
|
||||
rp := &RatingPlan{Id: "test"}
|
||||
rp.AddRateInterval("NAT", i)
|
||||
ratingStorage.SetRatingPlan(rp)
|
||||
ratingStorage.SetRatingPlan(rp, utils.NonTransactional)
|
||||
b.ResetTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
ratingStorage.GetRatingPlan(rp.Id, true)
|
||||
ratingStorage.GetRatingPlan(rp.Id, true, utils.NonTransactional)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user