Skip to content

Instantly share code, notes, and snippets.

@SimonSapin
SimonSapin / Output
Created August 5, 2013 13:52
Micro-benchmark of three implementation strategies for https://github.com/mozilla/rust/pull/8231 i7-3520M CPU @ 2.90GHz A lookup table is pretty much always faster.
# Output of 'ascii_case_bench --test --bench',
# Built with 'rustc ascii_case_bench.rs -O'
# rustc 0.8-pre (fc57182 2013-08-02 09:13:53 -0700)
running 45 tests
test a_lookup::tests::test_eq_ascii_lower ... ok
test a_lookup::tests::test_to_ascii_lower ... ok
test c_comparisons::tests::test_eq_ascii_lower ... ok
test b_match::tests::test_eq_ascii_lower ... ok
test b_match::tests::test_to_ascii_lower ... ok