/benchmark

Clio benchmark

Primary LanguageC

Clio vs others

This repository implements the fib function in several languages and measures the execution time for each of them.

Results

Results

How to run the...

C version

gcc -O3 main.c -o main && ./main

Notes: this one runs only on MacOS. Unfortunately I couldn't find a portable way of getting time in nanoseconds. If you know a way, please make a pull request.

Clio version

clio run

Go version

go run .

JavaScript version

node index.js

Python version

With Python:

python3 main.py

With PyPy:

pypy3 main.py