You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This project is a bit of an experiment and involves 3 different LRU Cache implem
6
6
**Observations**:
7
7
All three LRU Caches have the same tests. I ran some tests for scale with a capacity of 5 000 000 elements in the cache and added an additional 500 002 elements. Obviously, the min heap has a Big O(log n) for inserts, updates and deletes, so it is much slower than the OrderedDict, which has a Big O(1). That said, the min heap is actually slightly faster until you reach the cache's capacity.
8
8
9
-
**Prolifing of 3 different caches with a 5 000 000 element capacity:**
9
+
**Profiling of 3 different caches with a 5 000 000 element capacity:**
10
10
11
11
| Number of inserted Elements | Min Heap | OrderedDict | MyOrderedDict |
0 commit comments