mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
wip
This commit is contained in:
@@ -163,9 +163,11 @@ void _fill_random_inner_mt(int64_t cnt, HT &hash, RSU &rsu)
|
||||
}
|
||||
```
|
||||
|
||||
Using multiple threads, we are able to populate the parallel_flat_hash_map (inserting 100 million values) three times faster than the standard flat_hash_map (which we could not have populated from multiple threads without explicit locks, which would have prevented performance improvements).
|
||||
|
||||
Here is the graphical visualization of the results:
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
Vendored
+3
-3
@@ -39,9 +39,9 @@ for line in lines:
|
||||
benches[benchtype] = 1
|
||||
|
||||
proper_names = {
|
||||
'std::unordered_map': 'std::unordered_map',
|
||||
'absl::flat_hash_map': 'absl::flat_hash_map',
|
||||
'absl::parallel_flat_hash_map': 'absl::parallel_flat_hash_map'
|
||||
'std::unordered_map': 'std::unordered_map (1 thread)',
|
||||
'absl::flat_hash_map': 'absl::flat_hash_map (1 thread)',
|
||||
'absl::parallel_flat_hash_map': 'absl::parallel_flat_hash_map (8 threads)'
|
||||
}
|
||||
|
||||
proper_color = {
|
||||
|
||||
Reference in New Issue
Block a user