Skip to content

Instantly share code, notes, and snippets.

View harrism's full-sized avatar

Mark Harris harrism

View GitHub Profile
@harrism
harrism / useful_cpp_experiments.md
Last active August 5, 2020 00:33
Useful C++ experiments: a place to stash little C++ experiment results

Useful C++ experiments

A place to stash experiments I do with godbolt / quickbench / etc.

Which is faster for small data, std::map or std::unordered map?

https://quick-bench.com/q/70Eg-tVt3M4lR4tlMqv3_ZiOcYs

std::map seems faster below 128 items (when the map is int:int).