mirror of
				https://github.com/onyx-and-iris/aoc2024.git
				synced 2025-10-31 04:51:46 +00:00 
			
		
		
		
	fix benchmark for daysix package
This commit is contained in:
		
							parent
							
								
									567ca72402
								
							
						
					
					
						commit
						df605fba15
					
				| @ -1 +1,15 @@ | ||||
| ?   	github.com/onyx-and-iris/aoc2024/day-06	[no test files] | ||||
| goos: linux | ||||
| goarch: amd64 | ||||
| pkg: github.com/onyx-and-iris/aoc2024/day-06 | ||||
| cpu: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz | ||||
| BenchmarkSolve-12    	       1	1815042506 ns/op | ||||
| BenchmarkSolve-12    	       1	1670139306 ns/op | ||||
| BenchmarkSolve-12    	       1	1708459605 ns/op | ||||
| BenchmarkSolve-12    	       1	1687274507 ns/op | ||||
| BenchmarkSolve-12    	       1	1722070212 ns/op | ||||
| BenchmarkSolve-12    	       1	1728997012 ns/op | ||||
| BenchmarkSolve-12    	       1	1738883012 ns/op | ||||
| BenchmarkSolve-12    	       1	1686811712 ns/op | ||||
| BenchmarkSolve-12    	       1	1701938016 ns/op | ||||
| BenchmarkSolve-12    	       1	1701384522 ns/op | ||||
| ok  	github.com/onyx-and-iris/aoc2024/day-06	17.190s | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| package name | ||||
| package daysix | ||||
| 
 | ||||
| import ( | ||||
| 	"github.com/onyx-and-iris/aoc2024/day-06/internal/one" | ||||
|  | ||||
							
								
								
									
										15
									
								
								day-06/solve_internal_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								day-06/solve_internal_test.go
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| package daysix | ||||
| 
 | ||||
| import ( | ||||
| 	_ "embed" | ||||
| 	"os" | ||||
| 	"testing" | ||||
| ) | ||||
| 
 | ||||
| //go:embed testdata/input.txt | ||||
| var data []byte | ||||
| 
 | ||||
| func BenchmarkSolve(b *testing.B) { | ||||
| 	os.Stdout, _ = os.Open(os.DevNull) | ||||
| 	Solve(data) | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user