A language benchmark game, just for fun.
Python Go Java C Clojure JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 3 commits behind shenfeng:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
Test.java
c.c
clj.clj
go.go
main.go
node.js
pic.png
py.py
run.py

README.md

fibonacci game

A fibonacci game for few languages, just for fun.

C/Clojure/go/python/nodejs/JAVA calculate fibonacci(40) recursively, record the total time and fibonacci(40) time.

This benchmark the language's function call speed. Fibonacci(40) has a total of 331160281 function calls.

Performance comparison chart

  • C is the fatest
  • Nodejs's function call is very efficient
  • Go's function call is very efficient
  • Java startups slower compared to C/go/python
  • Clojure startups slow, but runs quite fast
  • Python runs relatively slow, but startups quite fast