Added bool parameter for searching datadb for cached values or not

This commit is contained in:
Radu Ioan Fericean
2013-11-28 18:09:24 +02:00
parent 8e92c51da2
commit b669d1d326
12 changed files with 63 additions and 44 deletions

View File

@@ -20,7 +20,9 @@ package engine
import (
"encoding/json"
"github.com/cgrates/cgrates/utils"
"reflect"
"testing"
"time"
@@ -270,6 +272,6 @@ func BenchmarkRatingPlanRestore(b *testing.B) {
storageGetter.SetRatingPlan(rp)
b.ResetTimer()
for i := 0; i < b.N; i++ {
storageGetter.GetRatingPlan(rp.Id)
storageGetter.GetRatingPlan(rp.Id, true)
}
}