`python3 2_1.py` 100 times
real 0m4.744s
user 0m3.129s
sys 0m0.967s
`go run 2_1.go` 100 times
real 0m37.649s
user 0m28.807s
sys 0m14.105s
go build
`./2_1` 100 times
real 0m0.709s
user 0m0.327s
sys 0m0.280s
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
My solutions for part 1
Python
Go
Benchmark difference