mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Allow configuring of benchmark warmup time
This commit is contained in:
		 khyperia
					khyperia
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							e880da93bd
						
					
				
				
					commit
					3c7e737a7b
				
			| @@ -497,17 +497,23 @@ TEST_CASE( "Process can be configured on command line", "[config][command-line]" | ||||
|             REQUIRE(config.benchmarkResamples == 20000); | ||||
|         } | ||||
|  | ||||
|         SECTION("resamples") { | ||||
|         SECTION("confidence-interval") { | ||||
|             CHECK(cli.parse({ "test", "--benchmark-confidence-interval=0.99" })); | ||||
|  | ||||
|             REQUIRE(config.benchmarkConfidenceInterval == Catch::Approx(0.99)); | ||||
|         } | ||||
|  | ||||
|         SECTION("resamples") { | ||||
|         SECTION("no-analysis") { | ||||
|             CHECK(cli.parse({ "test", "--benchmark-no-analysis" })); | ||||
|  | ||||
|             REQUIRE(config.benchmarkNoAnalysis); | ||||
|         } | ||||
|  | ||||
|         SECTION("warmup-time") { | ||||
|             CHECK(cli.parse({ "test", "--benchmark-warmup-time=10" })); | ||||
|  | ||||
|             REQUIRE(config.benchmarkWarmupTime == 10); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user