@@ -339,20 +339,42 @@ func TestBenchmarkBaseline(t *testing.T) {
339
339
}
340
340
341
341
func BenchmarkBaseline (b * testing.B ) {
342
- cfg := IntegrationTestConfig {
343
- T : b ,
344
- TxtarString : benchmarkBaselineFiles (),
345
- }
346
- builders := make ([]* IntegrationTestBuilder , b .N )
342
+ b .Run ("withrender" , func (b * testing.B ) {
343
+ cfg := IntegrationTestConfig {
344
+ T : b ,
345
+ TxtarString : benchmarkBaselineFiles (),
346
+ }
347
+ builders := make ([]* IntegrationTestBuilder , b .N )
347
348
348
- for i := range builders {
349
- builders [i ] = NewIntegrationTestBuilder (cfg )
350
- }
349
+ for i := range builders {
350
+ builders [i ] = NewIntegrationTestBuilder (cfg )
351
+ }
351
352
352
- b .ResetTimer ()
353
- for i := 0 ; i < b .N ; i ++ {
354
- builders [i ].Build ()
355
- }
353
+ b .ResetTimer ()
354
+ for i := 0 ; i < b .N ; i ++ {
355
+ builders [i ].Build ()
356
+ }
357
+ })
358
+
359
+ b .Run ("skiprender" , func (b * testing.B ) {
360
+ cfg := IntegrationTestConfig {
361
+ T : b ,
362
+ TxtarString : benchmarkBaselineFiles (),
363
+ BuildCfg : BuildCfg {
364
+ SkipRender : true ,
365
+ },
366
+ }
367
+ builders := make ([]* IntegrationTestBuilder , b .N )
368
+
369
+ for i := range builders {
370
+ builders [i ] = NewIntegrationTestBuilder (cfg )
371
+ }
372
+
373
+ b .ResetTimer ()
374
+ for i := 0 ; i < b .N ; i ++ {
375
+ builders [i ].Build ()
376
+ }
377
+ })
356
378
}
357
379
358
380
func benchmarkBaselineFiles () string {
0 commit comments