mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update rayon to dedupe crossbeam-epoch
As a bonus this also removes one version of crossbeam-utils
This commit is contained in:
parent
df73c71fb1
commit
28fa0f8009
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