Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bion/hexalingual-euler
Project Euler solutions in six languages
https://github.com/bion/hexalingual-euler
Last synced: 16 days ago
JSON representation
Project Euler solutions in six languages
- Host: GitHub
- URL: https://github.com/bion/hexalingual-euler
- Owner: bion
- Created: 2014-05-07T07:10:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-18T05:55:19.000Z (almost 10 years ago)
- Last Synced: 2023-05-16T21:50:18.224Z (over 1 year ago)
- Language: Go
- Homepage: http://www.projecteuler.net
- Size: 316 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ~~Trilingual~~ Hexalingual Project Euler Solutions
Using C, Clojure, Go, Ruby, Javascript, and *SuperCollider
*[sclang](http://supercollider.github.io/), that is
## Benchmarks
All times given in seconds
### Problem Six
* Ruby: 0.025 from command line
* C: <0.001 from command line
* Clojure: <0.001 from REPL
* Javascript: 0.046 from command line
* SuperCollider: 0.991 from command line, 0.0004 not including
interpreter start/stop### Problem Five
* Ruby: 4.605 from command line
* C: 0.211 from command line
* Clojure: 0.003 from REPL
* Javascript: 0.345 from command line
* SuperCollider: 35.182 from command line, 34.189 not including
interpreter start/stop### Problem Four
* Ruby: 0.361 from command line
* C: 0.049 from command line
* Clojure: 0.460 from REPL, must be doing something wrong
* Javascript: 0.345 from command line
* SuperCollider: 2.193 from command line, 1.32 not including
interpreter start/stop
* Go: 0.0003 seconds - 0.004538 from command line
(0.29 compile + run from command line)### Problem Three
* Ruby: 0.030 from command line
* C: <0.001 from command line
* Clojure: 0.002 from REPL
* Javascript: 0.066 from command line
* SuperCollider: 0.90 from command line, 0.0002 not including
interpreter start/stop
* Go: .00010476Note: SuperCollider can't represent integers over 32 bits, had to use
a float.### Problem Two
* Ruby: 0.037 from command line
* C: <0.001 from command line
* Clojure: <0.001 from REPL
* Javascript: 0.62 from command line
* SuperCollider: 0.89 from command line, 0.003 not including
interpreter start/stop
* Go: .000000205 seconds within Go benchmark suite### Problem One
* Ruby: 0.049 from command line
* C: <0.001 from command line
* Clojure: <0.001 from REPL
* Javascript: 0.056 from command line
* SuperCollider: 1.01 from command line, 0.0004 not including
interpreter start/stop
* Go:
BenchmarkThreeFiveOneK 1000000 1580 ns/op
BenchmarkThreeFiveTenK 200000 9798 ns/op
BenchmarkThreeFiveMill 2000 902160 ns/op