Language Speed Comparison - PrimesMade with Nix
This test compares the speed of Python, Java, Node.js, C♯, C++, PHP, C, Go, Kotlin, Rust, Ruby, Dart, Swift, R and Visual Basic (the 15 most common languages that can output primes to a console) by comparing the speed of implementations of an algorithm similar to rwh_primes. The output of the programs is not shown; you only see the time taken by each program.
Use my discord bot, which includes a command with this language benchmarker, and much more!Recent comments (7)
I KNOW WHERE U LIVE, IT SAYS YOU ARE IN BLACKBURN
Did me ASK?! HAHAHAHHAHHjajaja
For anyone who is actually using this, I have forgotten to publish updates. There're many changes, including moving to Rust, adding new languages, and adding a colour gradient scheme depending on speed relative to the fastest language. There's probably much more, considering how long it's been since I updated it, so see for yourselves!
Is there any way to have pip package management in nix repls, like in Python repls? I want to use Python 3.10. I want to be able to link this repl to my discord bot. If I use Nix, I'll have access to the packages I need, but not pip packages, which I need for my discord bot. If I use a Python repl, I'll only get access to outdated versions of languages, for example, for some reason, the ruby installation on replit is 2.5.1, which is 1411 days old! I can't do a fair comparison of languages when half of the languages are seriously outdated.
It uses an algorithm similar to rwh_primes for all implementations.
Uh for some reason it shows
repl waking up...when you run it. Just use the embed link for now
This repl compares how long 10 languages take to find primes up to a number. You can specify the first amount of numbers tested, then the pattern to increase the amount of numbers tested each time. For example, if you input
10as the initial amount and
*2as the pattern, it tests numbers
10, 20, 40, 80, 160and so on.
TiB1HSMade with HTML, CSS, JS
fake hydrogen fuel cell project made for https://www.firstlegoleague.org/. Learning a lot of CSS and having fun making this While this is tagged as a school project, I likely won't get it used officially because it's not clean or professional enough for my project manager and my teacherRecent comments (3)
DEAD SCHOLLUMARismyname5 months ago
some changes to animations, new animation, removed contradictory 'accessible' animation, shadows, padding, link transitions