Skip to content

Instantly share code, notes, and snippets.

View scottmcm's full-sized avatar

scottmcm

  • Pacific Northwest, USA
View GitHub Profile
@scottmcm
scottmcm / after.txt
Created November 17, 2017 10:37
Stop pessimizing Iterator::by_ref
test iter::bench_enumerate_chain_ref_sum ... bench: 1,341,837 ns/iter (+/- 51,686)
test iter::bench_enumerate_chain_sum ... bench: 1,342,108 ns/iter (+/- 101,741)
test iter::bench_enumerate_ref_sum ... bench: 703,885 ns/iter (+/- 44,813)
test iter::bench_enumerate_sum ... bench: 708,584 ns/iter (+/- 45,536)
test iter::bench_filter_chain_ref_sum ... bench: 1,160,331 ns/iter (+/- 74,442)
test iter::bench_filter_chain_sum ... bench: 1,161,114 ns/iter (+/- 78,346)
test iter::bench_filter_map_chain_ref_sum ... bench: 1,849,548 ns/iter (+/- 65,879)
test iter::bench_filter_map_chain_sum ... bench: 1,849,578 ns/iter (+/- 144,707)
test iter::bench_filter_map_ref_sum ... bench: 923,102 ns/iter (+/- 35,948)
test iter::bench_filter_map_sum ... bench: 928,644 ns/iter (+/-
@scottmcm
scottmcm / rust_pr_41670.md
Created May 2, 2017 08:54
Slice Rotate Benchmarks

Using the three-reverse algorithm

test slice::rotate_huge_by1                              ... bench:   6,999,900 ns/iter (+/- 386,886) = 5991 MB/s
test slice::rotate_huge_by1234577_big                    ... bench:   6,819,508 ns/iter (+/- 1,343,022) = 6150 MB/s
test slice::rotate_huge_by1234577_bytes                  ... bench:  23,073,171 ns/iter (+/- 697,303) = 1817 MB/s
test slice::rotate_huge_by1234577_strings                ... bench:   6,979,177 ns/iter (+/- 556,076) = 6009 MB/s
test slice::rotate_huge_by1234577_u64                    ... bench:   6,972,761 ns/iter (+/- 920,141) = 6015 MB/s
test slice::rotate_huge_by9199_big                       ... bench:   6,883,996 ns/iter (+/- 197,051) = 6092 MB/s
test slice::rotate_huge_by9199_bytes                     ... bench:  22,852,719 ns/iter (+/- 268,889) = 1835 MB/s