Skip to content

kumadee/exercism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitpod ready-to-code Coverage Status GitHub Workflow Status Quality Gate Status

exercism

Solutions for pratice problems from https://exercism.io/my/tracks/go

To run tests for all packages, just run the below command:

go test -v -bench . -benchmem ./...

To run the CPU and memory profiling, run the tests with the cpuprofile and memprofile flags.

# Assuming we are already in the directory with go.mod
for dir in $(find go -maxdepth 1 -mindepth 1 -type d)
do
    go test -v -bench . -benchmem -cpuprofile ${dir}/cpu.out -memprofile ${dir}/mem.out ./${dir}
done

To view the profile data in browser, run the below command.

go tool pprof -http=:8080 cpu.out
go tool pprof -http=:8080 mem.out

About

Solutions for practice problems from https://exercism.io/my/tracks/go with dev workspace at https://gitpod.io/workspaces/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published