Skip to content

melg8/swarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swarm

Emulates swarm of characters connected to game world.

commands

Run main application

go run .\cmd\swarm\main.go

Run unit tests of project:

go test ./... --cover --count=1

Build with compiler explanation of heap vs stack memory for variables:

go build -gcflags "-m=2"

Run linters for project:

golangci-lint run ./...

Run specific linter for project with fixes:

golangci-lint run --fix --disable-all --enable=wsl ./...

Run concrete benchmark with profiling:

go test -benchmem -cpuprofile=cpu_out -memprofile=mem_out  -run=^$ -bench ^BenchmarkEncryptor_Write$ github.com/melg8/swarm/internal/swarm/crypt

Run pprof tool for profiling:

go tool pprof -http=localhost:8080 mem_out

Run pprof tool for profiling:

go tool pprof -http=localhost:8080 cpu_out

About

Emulates swarm of characters connected to game world.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages