Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##########################################################################
- benchmarking with 64 elements
- #insert
- indexmap took 7.446µs:
- hashmap took 5.628µs:
- std_vec took 781ns:
- linked-hash-map took 5.418µs:
- #iterate
- indexmap took 78ns:
- vec took 79ns:
- hashmap took 222ns:
- linked-hashmap took 79ns:
- indexmap (values only) took 84ns:
- #access
- indexmap took 1.977µs:
- vec took 2.679µs:
- hashmap took 2.002µs:
- linked-hashmap took 530ns:
- #clone
- indexmap took 3.229µs - 64
- vec took 303ns - 64
- hashmap took 2.713µs - 64
- linked-hashmap took 5.235µs - 64
- #push to back
- indexmap took 11.16µs:
- vec took 749ns:
- hashmap unsupported
- linked-hashmap took 443ns:
- #remove (keep order)
- indexmap took 11.001µs:
- vec took 4.533µs:
- can't preserve order in hashmap.
- hashmap took 2.584µs:
- linked-hashmap took 4.446µs:
- ##########################################################################
- benchmarking with 512 elements
- #insert
- indexmap took 38.92µs:
- hashmap took 36.4µs:
- std_vec took 2.351µs:
- linked-hash-map took 39.111µs:
- #iterate
- indexmap took 83ns:
- vec took 75ns:
- hashmap took 992ns:
- linked-hashmap took 74ns:
- indexmap (values only) took 79ns:
- #access
- indexmap took 9.573µs:
- vec took 69.015µs:
- hashmap took 9.322µs:
- linked-hashmap took 1.939µs:
- #clone
- indexmap took 14.333µs - 512
- vec took 2.696µs - 512
- hashmap took 13.887µs - 512
- linked-hashmap took 75.951µs - 512
- #push to back
- indexmap took 719.18µs:
- vec took 21.715µs:
- hashmap unsupported
- linked-hashmap took 2.983µs:
- #remove (keep order)
- indexmap took 372.639µs:
- vec took 15.449µs:
- can't preserve order in hashmap.
- hashmap took 13.191µs:
- linked-hashmap took 12.977µs:
- ##########################################################################
- benchmarking with 100000 elements
- #insert
- indexmap took 5.121151ms:
- hashmap took 6.516268ms:
- std_vec took 144.792µs:
- linked-hash-map took 8.548027ms:
- #iterate
- indexmap took 47ns:
- vec took 38ns:
- hashmap took 105.573µs:
- linked-hashmap took 41ns:
- indexmap (values only) took 40ns:
- #access
- indexmap took 2.543214ms:
- vec took 2.447872487s:
- hashmap took 2.793451ms:
- linked-hashmap took 1.026799ms:
- #clone
- indexmap took 1.967149ms - 100000
- vec took 453.961µs - 100000
- hashmap took 1.173746ms - 100000
- linked-hashmap took 8.726053ms - 100000
- #push to back
- indexmap took 20.420952628s:
- vec took 1.784034195s:
- hashmap unsupported
- linked-hashmap took 1.481067ms:
- #remove (keep order)
- indexmap took 17.82113988s:
- vec took 828.959382ms:
- can't preserve order in hashmap.
- hashmap took 3.428035ms:
- linked-hashmap took 2.025402ms:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement