Skip to content

Comparing performance of fake Backtesting script on the following languages: C#, Go, Node.js, Python numba, Rust

Notifications You must be signed in to change notification settings

constsz/BacktestingBenchmark_LanguageComparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backtesting Benchmark - Language Comparison

Comparing performance of languages in over-simplified Backtesting scenario.

Languages:

Language Version
C# .NET 8
Go 1.21.6
Node.js v22.10.0
Python numba 3.11.8
Rust 1.82.0



Results:


Number of iterations: 256_000_000

Language Elapsed Time Peak Memory Usage
Rust 47.52 s 7830 MB
Golang 57.49 s 7954 MB
C# 60.09 s 7835 MB
C# AOT 60.25 s 7831 MB
Python Numba 64.83 s 7833 MB
Node Crashed -



Number of iterations: 24_000_000

Language Elapsed Time Peak Memory Usage
Rust 4.45 s 712 MB
Golang 5.44 s 754 MB
C# 5.66 s 755 MB
C# AOT 5.66 s 751 MB
Python Numba 9.73 s 753 MB
Node.js 18.40 s 2639 MB

About

Comparing performance of fake Backtesting script on the following languages: C#, Go, Node.js, Python numba, Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published