mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Bump rustc-perf, replace webrender and diesel with newer versions
This commit is contained in:
parent
81f0108067
commit
3a6196bf9e
@ -40,29 +40,24 @@ impl flags::Metrics {
|
|||||||
"self.json"
|
"self.json"
|
||||||
}
|
}
|
||||||
MeasurementType::AnalyzeRipgrep => {
|
MeasurementType::AnalyzeRipgrep => {
|
||||||
metrics.measure_analysis_stats(sh, "ripgrep")?;
|
metrics.measure_analysis_stats(sh, "ripgrep-13.0.0")?;
|
||||||
"ripgrep.json"
|
"ripgrep-13.0.0.json"
|
||||||
}
|
}
|
||||||
MeasurementType::AnalyzeWebRender => {
|
MeasurementType::AnalyzeWebRender => {
|
||||||
{
|
metrics.measure_analysis_stats(sh, "webrender-2022")?;
|
||||||
// https://github.com/rust-lang/rust-analyzer/issues/9997
|
"webrender-2022.json"
|
||||||
let _d = sh.push_dir("target/rustc-perf/collector/benchmarks/webrender");
|
|
||||||
cmd!(sh, "cargo update -p url --precise 1.6.1").run()?;
|
|
||||||
}
|
|
||||||
metrics.measure_analysis_stats(sh, "webrender")?;
|
|
||||||
"webrender.json"
|
|
||||||
}
|
}
|
||||||
MeasurementType::AnalyzeDiesel => {
|
MeasurementType::AnalyzeDiesel => {
|
||||||
metrics.measure_analysis_stats(sh, "diesel/diesel")?;
|
metrics.measure_analysis_stats(sh, "diesel-1.4.8")?;
|
||||||
"diesel.json"
|
"diesel-1.4.8.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
metrics.measure_build(sh)?;
|
metrics.measure_build(sh)?;
|
||||||
metrics.measure_analysis_stats_self(sh)?;
|
metrics.measure_analysis_stats_self(sh)?;
|
||||||
metrics.measure_analysis_stats(sh, "ripgrep")?;
|
metrics.measure_analysis_stats(sh, "ripgrep-13.0.0")?;
|
||||||
metrics.measure_analysis_stats(sh, "webrender")?;
|
metrics.measure_analysis_stats(sh, "webrender-2022")?;
|
||||||
metrics.measure_analysis_stats(sh, "diesel/diesel")?;
|
metrics.measure_analysis_stats(sh, "diesel-1.4.8")?;
|
||||||
"all.json"
|
"all.json"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -93,7 +88,7 @@ impl Metrics {
|
|||||||
self.measure_analysis_stats_path(
|
self.measure_analysis_stats_path(
|
||||||
sh,
|
sh,
|
||||||
bench,
|
bench,
|
||||||
&format!("./target/rustc-perf/collector/benchmarks/{bench}"),
|
&format!("./target/rustc-perf/collector/compile-benchmarks/{bench}"),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
fn measure_analysis_stats_path(
|
fn measure_analysis_stats_path(
|
||||||
@ -145,7 +140,7 @@ impl Metrics {
|
|||||||
let host = Host::new(sh)?;
|
let host = Host::new(sh)?;
|
||||||
let timestamp = SystemTime::now();
|
let timestamp = SystemTime::now();
|
||||||
let revision = cmd!(sh, "git rev-parse HEAD").read()?;
|
let revision = cmd!(sh, "git rev-parse HEAD").read()?;
|
||||||
let perf_revision = "c52ee623e231e7690a93be88d943016968c1036b".into();
|
let perf_revision = "a584462e145a0c04760fd9391daefb4f6bd13a99".into();
|
||||||
Ok(Metrics { host, timestamp, revision, perf_revision, metrics: BTreeMap::new() })
|
Ok(Metrics { host, timestamp, revision, perf_revision, metrics: BTreeMap::new() })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user