} b.Time("writing to the store", func() { err := storeAdapter.Set(data) Ω(err).ShouldNot(HaveOccured()) }, StorePerformanceReport{ Subject: "write", StoreType: storeType, NumStoreNodes: nodes, RecordSize: recordSize, NumRecords: numRecords, Concurrency: concurrency, }) b.Time("reading from the store", func() { node, err := storeAdapter.ListRecursively("/record") Ω(err).ShouldNot(HaveOccured()) Ω(len(node.ChildNodes)).Should(Equal(numRecords), "Didn't find the correct number of entries in the store") }, StorePerformanceReport{ Subject: "read", StoreType: storeType, NumStoreNodes: nodes, RecordSize: recordSize, NumRecords: numRecords, Concurrency: concurrency, }) }, 5) } }) } }