rust/library/alloc/benches
Jubilee 19d9a147be
Rollup merge of #88452 - xu-cheng:vecdeque-from-array, r=m-ou-se
VecDeque: improve performance for From<[T; N]>

Create `VecDeque` directly from the array instead of inserting items one-by-one.

Benchmark
```
./x.py bench library/alloc --test-args vec_deque::bench_from_array_1000
```

* Before
```
test vec_deque::bench_from_array_1000                    ... bench:       3,991 ns/iter (+/- 717)
```

* After
```
test vec_deque::bench_from_array_1000                    ... bench:         268 ns/iter (+/- 37)
```
2021-10-04 13:58:08 -07:00
..
btree add benchmark for BTreeMap::from_iter 2021-08-28 17:18:43 -07:00
binary_heap.rs Fix may not to appropriate might not or must not 2021-07-29 01:15:20 -04:00
lib.rs Vec::dedup optimization - add benches 2021-03-16 14:41:26 +01:00
linked_list.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
slice.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
str.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
string.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
vec_deque_append.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
vec_deque.rs add benchmark for From<[T; N]> in VecDeque 2021-08-28 19:46:58 -07:00
vec.rs Add benchmark for Vec::retain 2021-09-17 02:55:12 +08:00