fib
fib copied to clipboard
Performance Benchmark of top Github languages
[BunJS](https://bun.sh/) is at least 3 times faster than NodeJS, could you give a try???
When compiling Nim to C++, this is the simplified result: ```C++ #include #include uint64_t fib(uint64_t n){ if (n > 1){ uint64_t a = fib(n - 1); uint64_t b = fib(n...
It seems that some benchmarks for statically compiled languages (C, Rust, Fortran etc.) heavily depends on where the instructions of `fib()` function will be placed. In modern processors, which has...
@OvermindDL1 says "I think all the tests should be adjusted to take the integer on the program parameters or an environment variable or something. That would both prevent such optimizations...
For instance, the C and C++ code are strictly identical, and compile to the exact same machine code. Yet, the C++ version is faster... only because it's not at the...
https://odin-lang.org/ `fib.odin` : ``` odin package main import "core:fmt" fib :: proc( n : u64 ) -> u64 { if n
Hello, PHP can JIT too using the `opcache` module. On my linux system, with PHP 8.1.2 CLI : **PHP Vanilla :** `time php fib.php` => 149 seconds **PHP JIT :**...
`dotnet` can compile C# to native binary now. :-D