Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 3.18 KB

README-header.md

File metadata and controls

14 lines (7 loc) · 3.18 KB

Part 1 - C++ Part 2 - C++ Part 1 - C# Part 2 - C# Part 1 - F# Part 2 - F# Part 1 - Go Part 2 - Go Part 1 - Rust Part 2 - Rust Part 1 - Swift Part 2 - Swift Part 1 - Java Part 2 - Java Part 1 - Python Part 2 - Python Part 1 - C Part 2 - C Part 1 - TypeScript Part 2 - TypeScript Benchmark

What is this?

Exchange is a playground to experiment with and compare programming languages by solving a simple problem in your language of choice and then seeing how fast you can make it run.

The problem is broken into two parts, for Part 1 the goal is to solve the basic problem using idiomatic, expressive, readable code without too much though given to performance. For Part 2 all bets are off and the goal is to make it run as fast as possible.

Benchmarks

The solutions are benchmarked by taking the build artifacts for each language and running them 5 times over the supplied input files. The median runtime is recorded. All solutions are run on the same container instance sequentially, the results will vary depending on what resources the particular machine has at run time and will typcially be noticably slower than the results you will see on modern desktop hardware.

Some solutions are excluded from the benchmarks entirely because they take too long to run even once. Others are exluded from the benchmark with the larger file because they take too long for that particular input.