Skip to content

Commit 94b1a96

Browse files
committed
couple of things
1 parent f86af1c commit 94b1a96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ items into the `ImHashMap<Type, string>`:
164164

165165
`ImMap<string>` stores the `int` keys and `string` values.
166166

167+
167168
#### ImMap Population
168169

169170
[The benchmark](https://github.com/dadhi/ImTools/blob/master/playground/ImTools.Benchmarks/ImMapBenchmarks.cs) inserts from 1 to 10 000 of items into the `ImMap<string>`:
@@ -223,6 +224,7 @@ Intel Core i9-8950HK CPU 2.90GHz (Coffee Lake), 1 CPU, 12 logical and 6 physical
223224
| ImmutableDict_Add | 10000 | 11,641,070.08 ns | 207,715.718 ns | 213,308.750 ns | 11,612,375.78 ns | 2.63 | 0.08 | 1468.7500 | 265.6250 | 125.0000 | 9271168 B |
224225
```
225226

227+
226228
#### ImMap Lookup
227229

228230
[The benchmark](https://github.com/dadhi/ImTools/blob/master/playground/ImTools.Benchmarks/ImMapBenchmarks.cs) lookups for the last added index in the `ImMap<string>`
@@ -275,6 +277,7 @@ containing the specified Count of elements.
275277
**Interpreting results:** `ImMap` holds very good against `ImmutableDictionary` sibling and even against `Dictionary`(s) up to certain count,
276278
indicating that immutable collection could be quite fast for lookups.
277279

280+
278281
#### ImMap Enumeration
279282

280283
[The benchmark source code](https://github.com/dadhi/ImTools/blob/master/playground/ImTools.Benchmarks/ImMapBenchmarks.cs)

0 commit comments

Comments
 (0)