swcache to warpcache renaming hell

This commit is contained in:
asiaziola
2022-05-19 17:52:16 +02:00
parent 11d18a753a
commit f2555a8ed1
22 changed files with 53 additions and 53 deletions

View File

@@ -2,7 +2,7 @@
import Arweave from 'arweave';
import { LoggerFactory } from '../src';
import { TsLogFactory } from '../src/logging/node/TsLogFactory';
import { MemBlockHeightSwCache } from '../src/cache/impl/MemBlockHeightCache';
import { MemBlockHeightWarpCache } from '../src/cache/impl/MemBlockHeightCache';
type Cache = {
ticker: string;
@@ -14,8 +14,8 @@ async function main() {
LoggerFactory.INST.logLevel('debug');
const objectCache = new MemBlockHeightSwCache<Cache>();
const arrayCache = new MemBlockHeightSwCache<Array<Cache>>();
const objectCache = new MemBlockHeightWarpCache<Cache>();
const arrayCache = new MemBlockHeightWarpCache<Array<Cache>>();
console.time('benchmark_object');
for (let i = 0; i < 10_000_000; i++) {