@@ -123,6 +123,27 @@ const allScenarios: readonly BaseScenario[] = [
123123 runIn : RunType . Any ,
124124 cost : 17 ,
125125 } ,
126+ {
127+ kind : "lsp" ,
128+ name : "Compiler-UnionsLSP" ,
129+ agent : "ts-perf1" ,
130+ runIn : RunType . Any ,
131+ cost : 14 ,
132+ } ,
133+ {
134+ kind : "lsp" ,
135+ name : "CompilerLSP" ,
136+ agent : "ts-perf3" ,
137+ runIn : RunType . Any ,
138+ cost : 16 ,
139+ } ,
140+ {
141+ kind : "lsp" ,
142+ name : "xstate-main-1-LSP" ,
143+ agent : "ts-perf4" ,
144+ runIn : RunType . Any ,
145+ cost : 17 ,
146+ } ,
126147 { kind : "startup" , name : "tsc-startup" , agent : "ts-perf1" , runIn : RunType . Any , cost : 19 } ,
127148 {
128149 kind : "startup" ,
@@ -171,6 +192,14 @@ function* generateBaselinePreset(scenarios: readonly BaseScenario[]): Iterable<S
171192 } ;
172193 }
173194 }
195+ else if ( scenario . kind === "lsp" ) {
196+ yield {
197+ ...scenario ,
198+ host : hosts . native ,
199+ iterations : defaultIterations ,
200+ warmups : defaultWarmups ,
201+ } ;
202+ }
174203 else {
175204 yield {
176205 ...scenario ,
@@ -190,7 +219,7 @@ const presets = {
190219 for ( const scenario of onDemandScenarios ) {
191220 yield {
192221 ...scenario ,
193- host : hosts . node18 ,
222+ host : scenario . kind === "lsp" ? hosts . native : hosts . node18 ,
194223 iterations : defaultIterations ,
195224 warmups : defaultWarmups ,
196225 } ;
@@ -281,7 +310,7 @@ function sanitizeJobName(name: string): JobName {
281310}
282311
283312// This defines the sort order, which is seen in PR replies; tsc is the most important and should be first.
284- const kindOrder : readonly JobKind [ ] = [ "tsc" , "tsserver" , "startup" ] ;
313+ const kindOrder : readonly JobKind [ ] = [ "tsc" , "tsserver" , "lsp" , " startup"] ;
285314
286315assert . deepStrictEqual ( [ ...allJobKinds ] . sort ( ) , [ ...kindOrder ] . sort ( ) , "kindOrder must contain all job kinds" ) ;
287316
0 commit comments