mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Auto merge of #23630 - Eijebong:dedupe-epoch, r=jdm
Update rayon to dedupe crossbeam-epoch As a bonus this also removes one version of crossbeam-utils <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23630) <!-- Reviewable:end -->
This commit is contained in:
commit
91d12669e4
7 changed files with 39 additions and 63 deletions
|
@ -187,13 +187,13 @@ fn bench_insertion_basic_parallel(b: &mut Bencher) {
|
|||
b.iter(|| {
|
||||
let _gc = AutoGCRuleTree::new(&r, &lock);
|
||||
|
||||
rayon::scope(|s| {
|
||||
rayon::scope_fifo(|s| {
|
||||
for _ in 0..4 {
|
||||
s.spawn(|s| {
|
||||
s.spawn_fifo(|s| {
|
||||
for _ in 0..1000 {
|
||||
test::black_box(test_insertion(&r, rules_matched.clone()));
|
||||
}
|
||||
s.spawn(|_| {
|
||||
s.spawn_fifo(|_| {
|
||||
for _ in 0..100 {
|
||||
test::black_box(test_insertion(&r, rules_matched.clone()));
|
||||
}
|
||||
|
@ -220,13 +220,13 @@ fn bench_expensive_insertion_parallel(b: &mut Bencher) {
|
|||
b.iter(|| {
|
||||
let _gc = AutoGCRuleTree::new(&r, &lock);
|
||||
|
||||
rayon::scope(|s| {
|
||||
rayon::scope_fifo(|s| {
|
||||
for _ in 0..4 {
|
||||
s.spawn(|s| {
|
||||
s.spawn_fifo(|s| {
|
||||
for _ in 0..1000 {
|
||||
test::black_box(test_insertion_style_attribute(&r, &rules_matched, &lock));
|
||||
}
|
||||
s.spawn(|_| {
|
||||
s.spawn_fifo(|_| {
|
||||
for _ in 0..100 {
|
||||
test::black_box(test_insertion_style_attribute(
|
||||
&r,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue