Environment:
$ rustc --version
rustc 0.13.0-nightly (770378a31 2014-11-20 23:02:01 +0000)
$ uname -sm
Linux x86_64
No optimizations. No debug info
$ rustc --test maps.rs && ./maps --bench
running 5 tests
test btree_map ... bench: 2766 ns/iter (+/- 64)
test hash_map ... bench: 1666 ns/iter (+/- 208)
test tree_map ... bench: 1877 ns/iter (+/- 53)
test trie_map ... bench: 439 ns/iter (+/- 9)
test vec_map ... bench: 100 ns/iter (+/- 4)
test result: ok. 0 passed; 0 failed; 0 ignored; 5 measured
No optimizations. Debug info
$ rustc -g --test maps.rs && ./maps --bench
running 5 tests
test btree_map ... bench: 2543 ns/iter (+/- 151)
test hash_map ... bench: 2107 ns/iter (+/- 313)
test tree_map ... bench: 1927 ns/iter (+/- 58)
test trie_map ... bench: 473 ns/iter (+/- 44)
test vec_map ... bench: 121 ns/iter (+/- 12)
test result: ok. 0 passed; 0 failed; 0 ignored; 5 measured
Optimizations. Debug info
$ rustc -O -g --test maps.rs && ./maps --bench
running 5 tests
test btree_map ... bench: 249 ns/iter (+/- 25)
test hash_map ... bench: 169 ns/iter (+/- 26)
test tree_map ... bench: 521 ns/iter (+/- 15)
test trie_map ... bench: 138 ns/iter (+/- 11)
test vec_map ... bench: 21 ns/iter (+/- 2)
test result: ok. 0 passed; 0 failed; 0 ignored; 5 measured
Optimizations. No debug info
$ rustc -O --test maps.rs && ./maps --bench
running 5 tests
test btree_map ... bench: 297 ns/iter (+/- 15)
test hash_map ... bench: 173 ns/iter (+/- 30)
test tree_map ... bench: 478 ns/iter (+/- 16)
test trie_map ... bench: 130 ns/iter (+/- 3)
test vec_map ... bench: 20 ns/iter (+/- 2)
test result: ok. 0 passed; 0 failed; 0 ignored; 5 measured