async function putter(key, value) {
const start = performance.now()
await testCache.put(key, value.clone());
const end = performance.now()
const time = end-start
return [value, time];
}
async function getter(key) {
const start = performance.now();
const cacheValue = await testCache.match(key);
const end = performance.now();
const time = end-start;
return [cacheValue, time];
}
async function putter(key, value) {
const start = performance.now()
await testCache.put(key, value.clone());
const end = performance.now()
const time = end-start
return [value, time];
}
async function getter(key) {
const start = performance.now();
const cacheValue = await testCache.match(key);
const end = performance.now();
const time = end-start;
return [cacheValue, time];
}