June 27, 2018 Re: D hash table comparison benchmark | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | 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
|
Copyright © 1999-2021 by the D Language Foundation