https://github.com/mark24code/fib-benchmark
Fibonacci Benchmark
https://github.com/mark24code/fib-benchmark
Last synced: 11 months ago
JSON representation
Fibonacci Benchmark
- Host: GitHub
- URL: https://github.com/mark24code/fib-benchmark
- Owner: Mark24Code
- Created: 2022-05-14T01:43:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-14T01:43:28.000Z (over 3 years ago)
- Last Synced: 2025-01-24T01:08:28.030Z (about 1 year ago)
- Language: C
- Size: 1.59 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fib-benchmark
斐波那契benchmark
# C
`gcc fib.c -o fib_c`
`time ./fib_c`
# Golang
`go build -o fib_go fib.go`
`time ./fib_go`
# Cystal
`crystal build --release fib.cr -o fib_cr`
`time ./fib_cr`
# Nodejs
`time node ./fib.js`
# Ruby
`time ruby ./fib.rb`
加上JIT
`time ruby --jit ./fib.rb`
# Python
`time python ./fib.py`
# 结果
## Example 1
MacOSX X86_64(Intel 2.3 GHz 八核Intel Core i9)
