feat: Added bench subcommand to Makefile
This commit is contained in:
		
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							@@ -16,6 +16,10 @@ witchcraft-save:
 | 
				
			|||||||
	mkdir witchcraft-save
 | 
						mkdir witchcraft-save
 | 
				
			||||||
	./spatial-db load worldsave "saves/Witchcraft/region" --output "witchcraft-save"
 | 
						./spatial-db load worldsave "saves/Witchcraft/region" --output "witchcraft-save"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.PHONY: bench
 | 
				
			||||||
 | 
					bench:
 | 
				
			||||||
 | 
						go test -bench . -benchtime=10s -count 10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: clean
 | 
					.PHONY: clean
 | 
				
			||||||
clean:
 | 
					clean:
 | 
				
			||||||
	rm -r $(SAVES)
 | 
						rm -r $(SAVES)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user