Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pditommaso/fib-benchmark
https://github.com/pditommaso/fib-benchmark
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pditommaso/fib-benchmark
- Owner: pditommaso
- Created: 2013-12-21T23:31:33.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-21T23:53:41.000Z (about 11 years ago)
- Last Synced: 2024-10-15T09:56:14.289Z (2 months ago)
- Language: Groovy
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Uninformal benchmark
A performance comparison between C, Java, Groovy and Python using a very simple Fibonacci implementation.
Processor: `Intel core i7 2.7 GHz`
Operating System: `Apple OS X 10.8`
### Results
C | C o3 | Java 6 | Java 7 | Groovy | Groovy S | Python |
-----:|-------:|-------:|-------:|-------:|---------:|--------:|
1.2049| 0.2806 | 0.2900 | 0.2821 | 1.0586 | 0.2889 | 110.0 |Numbers show the execution time in seconds to calculate Fibonacci for 500'000'000.
### Legends
##### C
* Compile cmd line: ``gcc fib.c``
* Running cmd line: ``./a.out 500000000``##### C o3
* Compile cmd line: ``gcc -O3 fib.c``
* Running cmd line: ``./a.out 500000000``##### Java 6
* Oracle Java version 1.6.0_51
* Compile cmd line: ``javac fib.java``
* Running cmd line: ``java fib 500000000``##### Java 7
* Oracle Java version 1.7.0_21
* Compile cmd line: ``javac fib.java``
* Running cmd line: ``java fib 500000000``##### Groovy
* Groovy version 2.1.6
* Oracle Java version 1.7.0_21
* Running cmd line: ``groovy fib.groovy 500000000``##### Groovy S
* Groovy version 2.1.6
* @StaticCompile feature
* Oracle Java version 1.7.0_21
* Running cmd line: ``groovy fib_static.groovy 500000000``##### Python
* Python version 2.7.5
* Running cmd line: ``python fib.py 500000000``