D hash table comparison benchmark

Nathan S. no.public.email at example.com
Wed Jun 27 18:51:13 UTC 2018


On Tuesday, 26 June 2018 at 03:45:27 UTC, Seb wrote:
> Did you by chance also benchmark it with other languages like 
> C++, Go or Rust?

= Not reusing hashtables, optimizations enabled =
79 msecs Rust std::collections::HashMap
90 msecs Go built-in map
177 msecs C++ std::unordered_map (whichever implementation comes 
with Xcode)

= Reusing hashtables, optimizations enabled =
24 msecs C++ std::unordered_map (whichever implementation comes 
with Xcode)
26 msecs Go built-in map
36 msecs Rust std::collections::HashMap



More information about the Digitalmars-d mailing list