Comparing version 0.0.44 to 0.0.45
@@ -1,2 +0,2 @@ | ||
/*! dw-cache v0.0.44 https://github.com/falsandtru/dw-cache | (c) 2021, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! dw-cache v0.0.45 https://github.com/falsandtru/dw-cache | (c) 2021, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -373,3 +373,3 @@ if(typeof exports === 'object' && typeof module === 'object') | ||
offset: 0, | ||
sweep: 50, | ||
sweep: 10, | ||
limit: 950 | ||
@@ -466,3 +466,4 @@ }; | ||
} else { | ||
this.sweep === -1 ? LRU.head = LRU.head.next : ++this.sweep; | ||
this.sweep === -1 ? LRU.head = LRU.head.next : void 0; | ||
++this.sweep; | ||
} | ||
@@ -469,0 +470,0 @@ } |
{ | ||
"name": "dw-cache", | ||
"version": "0.0.44", | ||
"version": "0.0.45", | ||
"description": "Dual window cache adaptively coordinates the ratio of LRU to LFU using the two sliding windows.", | ||
@@ -53,3 +53,3 @@ "private": false, | ||
"npm-check-updates": "^16.0.1", | ||
"spica": "0.0.586", | ||
"spica": "0.0.587", | ||
"ts-loader": "^9.3.1", | ||
@@ -56,0 +56,0 @@ "typescript": "4.7.4", |
@@ -57,5 +57,5 @@ # Dual Window Cache | ||
LRU hit rate 16.4% | ||
DWC hit rate 18.0% | ||
DWC - LRU hit rate delta 1.5% | ||
DWC / LRU hit rate ratio 109% | ||
DWC hit rate 17.9% | ||
DWC - LRU hit rate delta 1.4% | ||
DWC / LRU hit rate ratio 108% | ||
@@ -92,4 +92,4 @@ OLTP 500 | ||
LRU hit rate 0% | ||
DWC hit rate 9.5% | ||
DWC - LRU hit rate delta 9.5% | ||
DWC hit rate 4.4% | ||
DWC - LRU hit rate delta 4.4% | ||
DWC / LRU hit rate ratio Infinity | ||
@@ -99,4 +99,4 @@ | ||
LRU hit rate 0% | ||
DWC hit rate 23.8% | ||
DWC - LRU hit rate delta 23.8% | ||
DWC hit rate 18.2% | ||
DWC - LRU hit rate delta 18.2% | ||
DWC / LRU hit rate ratio Infinity | ||
@@ -106,4 +106,4 @@ | ||
LRU hit rate 0% | ||
DWC hit rate 47.4% | ||
DWC - LRU hit rate delta 47.4% | ||
DWC hit rate 44.4% | ||
DWC - LRU hit rate delta 44.4% | ||
DWC / LRU hit rate ratio Infinity | ||
@@ -113,4 +113,4 @@ | ||
LRU hit rate 0% | ||
DWC hit rate 70.7% | ||
DWC - LRU hit rate delta 70.7% | ||
DWC hit rate 70.0% | ||
DWC - LRU hit rate delta 70.0% | ||
DWC / LRU hit rate ratio Infinity | ||
@@ -120,4 +120,4 @@ | ||
LRU hit rate 0% | ||
DWC hit rate 94.6% | ||
DWC - LRU hit rate delta 94.6% | ||
DWC hit rate 93.9% | ||
DWC - LRU hit rate delta 93.9% | ||
DWC / LRU hit rate ratio Infinity | ||
@@ -124,0 +124,0 @@ |
75158
1282