Skip to content
0:00 / 0:00

#primesieve#benchmarks#dave'sgarage

Top 5 Fastest Programming Languages: Rust, C++, Swift, Java, and 90 more compared!

Dave's Garage

1.1M subscribers • 9 videos on Hallway

YouTube
  • Recommended by 2 people: 1 on Lobsters and 1 in engineering communities.
  • Presented by Dave Plummer
  • Linked in the descriptionPlummersSoftwareLLC/Primes
  • May be out of date. The tools, versions or practices it shows have likely moved on.
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

323K views3 years ago2 recommendations

Programming languagesSystems programmingPerformance and optimizationRustC++

Dave Plummer benchmarks almost one hundred programming languages using a prime sieve algorithm to find the fastest one.

Dave tests almost 100 different languages to find the ultimate champion in generating the fastest code. Feeling a little bit autistic? Check out the free sample of my book: amzn.to/40HUwgu Primes Code on Github: github.com/PlummersSoftwareLLC/Primes PrimeView: plummerssoftwarellc.github.io/PrimeView/?rc=30&rs=0&fr=&sc=d…

Why it's here

2 people recommend this

What people say. Shared as a benchmark comparison where Zig performed exceptionally well, though some users debated the metrics used.

Moments people linked to

u/BounceVectorin r/Zig • Recommends

Zig wins Dave Plummer's prime sieve benchmark ... but via a problematic metric
62View on Reddit

cvoxelon Lobsters • Recommends

Top 5 Fastest Programming Languages: Rust, C++, Swift, Java, and 90 more compared

u/BounceVectorin r/Zig • Mentions

On “Zig wins Dave Plummer's prime sieve benchmark ... but via a problematic metric”

Timestamp where benchmark results are shown: [video | Zig|10205| |:-|:-| |Rust|5857| |C|1600| |C++|1564| |Java|1457| Context: There's a dedicated and quite cool website where you can browse the benchmark results: https://github.com/PlummersSoftwareLLC/Primes Now, it seems like Dave (the author of the linked video) chose to look at the "Multithreaded Leaderboard" and then use Passes (of full runs of the sieve of Erathostenes up to one million to find primes) per second and - fatally - **per thread**. One of the Zig solutions has Hyperthreading turned off, so only 16 threads instead of 32 are used, but the (in my limited understanding) the actual computing power is not diminished th…
38View on Reddit

u/zyxzevnUnSeenin r/ProgrammingLanguages • Mentions

On “Programming language / paradigm productivity studies based on a duplicated project?”

Some people organize competitions: [Top 5 Fastest Programming Languages: Rust, C++, Swift, Java, and 90 more compared!]

u/Git_Wranglerin r/dotnet • Mentions

On “Why is .NET so Insanely Fast? with Stephen Toub”

It's not that fast. Some will be surprised to learn that Java is faster: [video