@@ -786,23 +786,42 @@ fn main_result() -> anyhow::Result<i32> {
786
786
benchmarks. retain ( |b| b. category ( ) . is_primary_or_secondary ( ) ) ;
787
787
788
788
let artifact_id = ArtifactId :: Commit ( commit) ;
789
- let conn = rt. block_on ( pool. connection ( ) ) ;
789
+ let mut conn = rt. block_on ( pool. connection ( ) ) ;
790
790
let toolchain = Toolchain :: from_sysroot ( & sysroot, sha) ;
791
791
792
- let shared = SharedBenchmarkConfig {
793
- artifact_id,
794
- toolchain,
795
- } ;
796
- let config = CompileBenchmarkConfig {
792
+ let compile_config = CompileBenchmarkConfig {
797
793
benchmarks,
798
794
profiles : Profile :: all ( ) ,
799
795
scenarios : Scenario :: all ( ) ,
800
796
iterations : runs. map ( |v| v as usize ) ,
801
797
is_self_profile : self_profile. self_profile ,
802
798
bench_rustc : bench_rustc. bench_rustc ,
803
799
} ;
800
+ let runtime_suite = rt. block_on ( load_runtime_benchmarks (
801
+ conn. as_mut ( ) ,
802
+ & runtime_benchmark_dir,
803
+ CargoIsolationMode :: Isolated ,
804
+ & toolchain,
805
+ & artifact_id,
806
+ ) ) ?;
804
807
805
- let res = run_benchmarks ( & mut rt, conn, shared, Some ( config) , None ) ;
808
+ let runtime_config = RuntimeBenchmarkConfig {
809
+ runtime_suite,
810
+ filter : BenchmarkFilter :: keep_all ( ) ,
811
+ iterations : DEFAULT_RUNTIME_ITERATIONS ,
812
+ } ;
813
+ let shared = SharedBenchmarkConfig {
814
+ artifact_id,
815
+ toolchain,
816
+ } ;
817
+
818
+ let res = run_benchmarks (
819
+ & mut rt,
820
+ conn,
821
+ shared,
822
+ Some ( compile_config) ,
823
+ Some ( runtime_config) ,
824
+ ) ;
806
825
807
826
client. post ( format ! ( "{}/perf/onpush" , site_url) ) . send ( ) ?;
808
827
0 commit comments