10
10
// ---------------------- Testing Prologue Output -------------------------- //
11
11
// ========================================================================= //
12
12
13
- ADD_CASES (TC_ConsoleOut,
14
- {{" ^[-]+$" , MR_Next},
15
- {" ^Benchmark %s Time %s Per-Thread Time %s CPU %s Iterations$" ,
16
- MR_Next},
17
- {" ^[-]+$" , MR_Next}});
13
+ ADD_CASES (TC_ConsoleOut, {{" ^[-]+$" , MR_Next},
14
+ {" ^Benchmark %s Time %s CPU %s Iterations$" , MR_Next},
15
+ {" ^[-]+$" , MR_Next}});
18
16
static int AddContextCases () {
19
17
AddCases (TC_ConsoleErr,
20
18
{
@@ -419,9 +417,8 @@ void BM_Complexity_O1(benchmark::State& state) {
419
417
BENCHMARK (BM_Complexity_O1)->Range(1 , 1 << 18 )->Complexity(benchmark::o1);
420
418
SET_SUBSTITUTIONS ({{" %bigOStr" , " [ ]* %float \\ ([0-9]+\\ )" },
421
419
{" %RMS" , " [ ]*[0-9]+ %" }});
422
- ADD_CASES (TC_ConsoleOut,
423
- {{" ^BM_Complexity_O1_BigO %bigOStr %bigOStr %bigOStr[ ]*$" },
424
- {" ^BM_Complexity_O1_RMS %RMS %RMS %RMS[ ]*$" }});
420
+ ADD_CASES (TC_ConsoleOut, {{" ^BM_Complexity_O1_BigO %bigOStr %bigOStr[ ]*$" },
421
+ {" ^BM_Complexity_O1_RMS %RMS %RMS[ ]*$" }});
425
422
426
423
// ========================================================================= //
427
424
// ----------------------- Testing Aggregate Output ------------------------ //
@@ -439,8 +436,7 @@ ADD_CASES(TC_ConsoleOut,
439
436
{" ^BM_Repeat/repeats:2 %console_report$" },
440
437
{" ^BM_Repeat/repeats:2_mean %console_time_only_report [ ]*2$" },
441
438
{" ^BM_Repeat/repeats:2_median %console_time_only_report [ ]*2$" },
442
- {" ^BM_Repeat/repeats:2_stddev %console_time_only_report [ ]*2$" },
443
- {" ^BM_Repeat/repeats:2_cv %console_percentage_report[ ]*$" }});
439
+ {" ^BM_Repeat/repeats:2_stddev %console_time_only_report [ ]*2$" }});
444
440
ADD_CASES (TC_JSONOut, {{" \" name\" : \" BM_Repeat/repeats:2\" ,$" },
445
441
{" \" family_index\" : 15,$" , MR_Next},
446
442
{" \" per_family_instance_index\" : 0,$" , MR_Next},
@@ -500,8 +496,7 @@ ADD_CASES(TC_ConsoleOut,
500
496
{" ^BM_Repeat/repeats:3 %console_report$" },
501
497
{" ^BM_Repeat/repeats:3_mean %console_time_only_report [ ]*3$" },
502
498
{" ^BM_Repeat/repeats:3_median %console_time_only_report [ ]*3$" },
503
- {" ^BM_Repeat/repeats:3_stddev %console_time_only_report [ ]*3$" },
504
- {" ^BM_Repeat/repeats:3_cv %console_percentage_report[ ]*$" }});
499
+ {" ^BM_Repeat/repeats:3_stddev %console_time_only_report [ ]*3$" }});
505
500
ADD_CASES (TC_JSONOut, {{" \" name\" : \" BM_Repeat/repeats:3\" ,$" },
506
501
{" \" family_index\" : 16,$" , MR_Next},
507
502
{" \" per_family_instance_index\" : 0,$" , MR_Next},
@@ -571,8 +566,7 @@ ADD_CASES(TC_ConsoleOut,
571
566
{" ^BM_Repeat/repeats:4 %console_report$" },
572
567
{" ^BM_Repeat/repeats:4_mean %console_time_only_report [ ]*4$" },
573
568
{" ^BM_Repeat/repeats:4_median %console_time_only_report [ ]*4$" },
574
- {" ^BM_Repeat/repeats:4_stddev %console_time_only_report [ ]*4$" },
575
- {" ^BM_Repeat/repeats:4_cv %console_percentage_report[ ]*$" }});
569
+ {" ^BM_Repeat/repeats:4_stddev %console_time_only_report [ ]*4$" }});
576
570
ADD_CASES (TC_JSONOut, {{" \" name\" : \" BM_Repeat/repeats:4\" ,$" },
577
571
{" \" family_index\" : 17,$" , MR_Next},
578
572
{" \" per_family_instance_index\" : 0,$" , MR_Next},
@@ -672,8 +666,7 @@ ADD_CASES(
672
666
{{" .*BM_SummaryRepeat/repeats:3 " , MR_Not},
673
667
{" ^BM_SummaryRepeat/repeats:3_mean %console_time_only_report [ ]*3$" },
674
668
{" ^BM_SummaryRepeat/repeats:3_median %console_time_only_report [ ]*3$" },
675
- {" ^BM_SummaryRepeat/repeats:3_stddev %console_time_only_report [ ]*3$" },
676
- {" ^BM_SummaryRepeat/repeats:3_cv %console_percentage_report[ ]*$" }});
669
+ {" ^BM_SummaryRepeat/repeats:3_stddev %console_time_only_report [ ]*3$" }});
677
670
ADD_CASES (TC_JSONOut,
678
671
{{" .*BM_SummaryRepeat/repeats:3 " , MR_Not},
679
672
{" \" name\" : \" BM_SummaryRepeat/repeats:3_mean\" ,$" },
@@ -724,8 +717,7 @@ ADD_CASES(
724
717
{{" .*BM_SummaryDisplay/repeats:2 " , MR_Not},
725
718
{" ^BM_SummaryDisplay/repeats:2_mean %console_time_only_report [ ]*2$" },
726
719
{" ^BM_SummaryDisplay/repeats:2_median %console_time_only_report [ ]*2$" },
727
- {" ^BM_SummaryDisplay/repeats:2_stddev %console_time_only_report [ ]*2$" },
728
- {" ^BM_SummaryDisplay/repeats:2_cv %console_percentage_report[ ]*$" }});
720
+ {" ^BM_SummaryDisplay/repeats:2_stddev %console_time_only_report [ ]*2$" }});
729
721
ADD_CASES (TC_JSONOut,
730
722
{{" .*BM_SummaryDisplay/repeats:2 " , MR_Not},
731
723
{" \" name\" : \" BM_SummaryDisplay/repeats:2_mean\" ,$" },
@@ -780,8 +772,7 @@ ADD_CASES(
780
772
{" ^BM_RepeatTimeUnit/repeats:3_median %console_us_time_only_report [ "
781
773
" ]*3$" },
782
774
{" ^BM_RepeatTimeUnit/repeats:3_stddev %console_us_time_only_report [ "
783
- " ]*3$" },
784
- {" ^BM_RepeatTimeUnit/repeats:3_cv %console_percentage_report[ ]*$" }});
775
+ " ]*3$" }});
785
776
ADD_CASES (TC_JSONOut,
786
777
{{" .*BM_RepeatTimeUnit/repeats:3 " , MR_Not},
787
778
{" \" name\" : \" BM_RepeatTimeUnit/repeats:3_mean\" ,$" },
@@ -845,21 +836,20 @@ BENCHMARK(BM_UserStats)
845
836
846
837
// check that user-provided stats is calculated, and is after the default-ones
847
838
// empty string as name is intentional, it would sort before anything else
848
- ADD_CASES (TC_ConsoleOut,
849
- {{" ^BM_UserStats/iterations:5/repeats:3/manual_time [ "
850
- " ]*150 ns [ ]*150 ns [ ]*%time [ ]*5$" },
851
- {" ^BM_UserStats/iterations:5/repeats:3/manual_time [ "
852
- " ]*150 ns [ ]*150 ns %time [ ]*5$" },
853
- {" ^BM_UserStats/iterations:5/repeats:3/manual_time [ "
854
- " ]*150 ns [ ]*150 ns %time [ ]*5$" },
855
- {" ^BM_UserStats/iterations:5/repeats:3/"
856
- " manual_time_mean [ ]*150 ns [ ]*150 ns %time [ ]*3$" },
857
- {" ^BM_UserStats/iterations:5/repeats:3/"
858
- " manual_time_median [ ]*150 ns [ ]*150 ns %time [ ]*3$" },
859
- {" ^BM_UserStats/iterations:5/repeats:3/"
860
- " manual_time_stddev [ ]*0.000 ns [ ]*0.000 ns %time [ ]*3$" },
861
- {" ^BM_UserStats/iterations:5/repeats:3/manual_time_cv "
862
- " %console_percentage_report[ ]*$" }});
839
+ ADD_CASES (TC_ConsoleOut, {{" ^BM_UserStats/iterations:5/repeats:3/manual_time [ "
840
+ " ]* 150 ns %time [ ]*5$" },
841
+ {" ^BM_UserStats/iterations:5/repeats:3/manual_time [ "
842
+ " ]* 150 ns %time [ ]*5$" },
843
+ {" ^BM_UserStats/iterations:5/repeats:3/manual_time [ "
844
+ " ]* 150 ns %time [ ]*5$" },
845
+ {" ^BM_UserStats/iterations:5/repeats:3/"
846
+ " manual_time_mean [ ]* 150 ns %time [ ]*3$" },
847
+ {" ^BM_UserStats/iterations:5/repeats:3/"
848
+ " manual_time_median [ ]* 150 ns %time [ ]*3$" },
849
+ {" ^BM_UserStats/iterations:5/repeats:3/"
850
+ " manual_time_stddev [ ]* 0.000 ns %time [ ]*3$" },
851
+ {" ^BM_UserStats/iterations:5/repeats:3/manual_time_ "
852
+ " [ ]* 150 ns %time [ ]*3$" }});
863
853
ADD_CASES (
864
854
TC_JSONOut,
865
855
{{" \" name\" : \" BM_UserStats/iterations:5/repeats:3/manual_time\" ,$" },
@@ -981,19 +971,19 @@ BENCHMARK(BM_UserPercentStats)
981
971
// anything else
982
972
ADD_CASES (TC_ConsoleOut,
983
973
{{" ^BM_UserPercentStats/iterations:5/repeats:3/manual_time [ "
984
- " ]*150 ns [ ]* 150 ns [ ]* %time [ ]*5$" },
974
+ " ]* 150 ns %time [ ]*5$" },
985
975
{" ^BM_UserPercentStats/iterations:5/repeats:3/manual_time [ "
986
- " ]* 150 ns [ ]*150 ns [ ]* %time [ ]*5$" },
976
+ " ]* 150 ns %time [ ]*5$" },
987
977
{" ^BM_UserPercentStats/iterations:5/repeats:3/manual_time [ "
988
- " ]* 150 ns [ ]*150 ns [ ]* %time [ ]*5$" },
978
+ " ]* 150 ns %time [ ]*5$" },
989
979
{" ^BM_UserPercentStats/iterations:5/repeats:3/"
990
- " manual_time_mean [ ]* 150 ns [ ]*150 ns [ ]* %time [ ]*3$" },
980
+ " manual_time_mean [ ]* 150 ns %time [ ]*3$" },
991
981
{" ^BM_UserPercentStats/iterations:5/repeats:3/"
992
- " manual_time_median [ ]* 150 ns [ ]*150 ns [ ]* %time [ ]*3$" },
982
+ " manual_time_median [ ]* 150 ns %time [ ]*3$" },
993
983
{" ^BM_UserPercentStats/iterations:5/repeats:3/"
994
- " manual_time_stddev [ ]* 0.000 ns [ ]*0.000 ns [ ]* %time [ ]*3$" },
995
- {" ^BM_UserPercentStats/iterations:5/repeats:3/manual_time_cv "
996
- " %console_percentage_report [ ]*$" }});
984
+ " manual_time_stddev [ ]* 0.000 ns %time [ ]*3$" },
985
+ {" ^BM_UserPercentStats/iterations:5/repeats:3/manual_time_ "
986
+ " [ ]* 1.00 % [ ]* 1.00 %[ ]*3 $" }});
997
987
ADD_CASES (
998
988
TC_JSONOut,
999
989
{{" \" name\" : \" BM_UserPercentStats/iterations:5/repeats:3/manual_time\" ,$" },
0 commit comments