@@ -786,23 +786,42 @@ fn main_result() -> anyhow::Result<i32> {
786786 benchmarks. retain ( |b| b. category ( ) . is_primary_or_secondary ( ) ) ;
787787
788788 let artifact_id = ArtifactId :: Commit ( commit) ;
789- let conn = rt. block_on ( pool. connection ( ) ) ;
789+ let mut conn = rt. block_on ( pool. connection ( ) ) ;
790790 let toolchain = Toolchain :: from_sysroot ( & sysroot, sha) ;
791791
792- let shared = SharedBenchmarkConfig {
793- artifact_id,
794- toolchain,
795- } ;
796- let config = CompileBenchmarkConfig {
792+ let compile_config = CompileBenchmarkConfig {
797793 benchmarks,
798794 profiles : Profile :: all ( ) ,
799795 scenarios : Scenario :: all ( ) ,
800796 iterations : runs. map ( |v| v as usize ) ,
801797 is_self_profile : self_profile. self_profile ,
802798 bench_rustc : bench_rustc. bench_rustc ,
803799 } ;
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+ ) ) ?;
804807
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+ ) ;
806825
807826 client. post ( format ! ( "{}/perf/onpush" , site_url) ) . send ( ) ?;
808827
0 commit comments