Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jack17529/FastestSumOfSquares
Solving Sum Of Squares problem using Golang's Concurrency Model.
https://github.com/jack17529/FastestSumOfSquares
concurrency go go-channel golang
Last synced: 29 days ago
JSON representation
Solving Sum Of Squares problem using Golang's Concurrency Model.
- Host: GitHub
- URL: https://github.com/jack17529/FastestSumOfSquares
- Owner: jack17529
- License: mit
- Created: 2020-01-31T17:55:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-30T18:23:57.000Z (over 4 years ago)
- Last Synced: 2024-05-18T01:57:16.868Z (7 months ago)
- Topics: concurrency, go, go-channel, golang
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - FastestSumOfSquares
README
# FastestSumOfSquares
## Running
1. Download the repo.
2. Run using `go run sumOfSquares.go`## Proof that concurrent solution works faster!
```
solve took 322ns
solve took 99.558µs
solve took 226ns
concurrent_solve took 45.729µs
5
5
```
## References1. https://medium.com/@_orcaman/when-too-much-concurrency-slows-you-down-golang-9c144ca305a
2. https://medium.com/@Mardiniii/make-it-real-elite-week-2-recursivity-concurrency-and-goroutines-e740bd4ca780
3. https://stackoverflow.com/questions/35588474/what-does-allocs-op-and-b-op-mean-in-go-benchmark
4. https://coderwall.com/p/cp5fya/measuring-execution-time-in-go
5. https://blog.learngoprogramming.com/5-gotchas-of-defer-in-go-golang-part-ii-cc550f6ad9aa
6. https://www.youtube.com/watch?v=YEKjSzIwAdA