Skip to content
Sign upLog in
Profile icon

Umar Sharief

@UMARismyname
UmarismynameandI'mquitelameandFortniteismyfavouritegameandI'musingnospacesbecauseI'mtiredofwastingspacewhenindentinginmyprograms.Same?
GitHub
website
  • Language Speed Comparison - Primes

    Cover page
    Made with Nix (beta)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](https://insights.stackoverflow.com/survey/2021#technology-most-popular-technologies) that can output primes to a console) by comparing the speed of implementations of an algorithm similar to [rwh_primes](https://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n/3035188#3035188). The output of the programs is not shown; you only see the time taken by each program. Use my [discord bot](https://discord.com/api/oauth2/authorize?client_id=837830928075194389&permissions=0&scope=bot), which includes a command with this language benchmarker, and much more!
    Recent comments (5)
    UMARismyname
    UMARismyname
    4 months ago
    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!
    UMARismyname
    UMARismyname
    6 months ago
    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.
    UMARismyname
    UMARismyname
    6 months ago
    It uses an algorithm similar to [rwh_primes](https://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n/3035188#3035188) for all implementations.
    UMARismyname
    UMARismyname
    6 months ago
    Uh for some reason it shows `repl waking up...` when you run it. Just use the [embed link](https://replit.com/@UMARismyname/Language-Speed-Comparison-Primes?embed=1) for now
    UMARismyname
    UMARismyname
    6 months ago
    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 `10` as the initial amount and `*2` as the pattern, it tests numbers `10, 20, 40, 80, 160` and so on.
Repls
Community
UMARismyname
UMARismyname
published a Repl
17 days ago
0
template popularity
template popularity@rayhanadev's predictions for who will win Replit's Template Jam's second prize, put into a website so the up-to-date results can be loaded easily by anyone
UMARismyname
UMARismyname
published a Repl
4 months ago
1
Language Speed Comparison - Primes
Language Speed Comparison - PrimesThis 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!
#benchmark
#primenumbers
UMARismyname
UMARismyname
It uses an algorithm similar to [rwh_primes](https://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n/3035188#3035188) for all implementations.6 months ago
UMARismyname
UMARismyname
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.6 months ago
UMARismyname
UMARismyname
published an Update
4 months ago
1
Language Speed Comparison - Primes
Language Speed Comparison - PrimesThis 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!
Forgot to publish updates for aaages
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!
UMARismyname
UMARismyname
published an Update
6 months ago
1
Language Speed Comparison - Primes
Language Speed Comparison - PrimesThis 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!
Pip package management in Nix?
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.
UMARismyname
UMARismyname
published an Update
6 months ago
1
Language Speed Comparison - Primes
Language Speed Comparison - PrimesThis 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!
Now it uses a better, more memory-efficient algorithm.
It uses an algorithm similar to rwh_primes for all implementations.
UMARismyname
UMARismyname
published an Update
6 months ago
1
Language Speed Comparison - Primes
Language Speed Comparison - PrimesThis 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!
The *prime* benchmarker for 10 languages
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 10 as the initial amount and *2 as the pattern, it tests numbers 10, 20, 40, 80, 160 and so on.
UMARismyname
UMARismyname
published an Update
7 months ago
0
Prime Sieve of Atkin
Prime Sieve of AtkinFind primes up to a number with incredible speed!
Add command-line arguments, executable for Windows PCs.
You can now download this as an exe from here. You will probably get anti-virus warnings until it is downloaded enough, which I don't think will ever happen, but we'll see! Just take a look through the code if you're suspicious, and understand Rust. Someone who looks at this will know Rust (chances increased because of the tag #rust) and report a virus if they see one.
inyourface3445
inyourface3445
@UMARismyname Yo, the GitHub page dose not exist anymore. Can you put it back up?5 months ago
UMARismyname
UMARismyname
@inyourface3445 oh sorry, I stopped working on this. For a prime sieve made in Rust, I have a language speed benchmarker [here](https://replit.com/@UMARismyname/Language-Speed-Comparison-Primes?embed=1) that uses a prime sieve to compare languages. Download the release for the Rust version [here](https://github.com/noneofyourbusiness1415252/Language-Speed-Comparison-Primes/releases/download/Rust/primes.exe). It now uses an algorithm based on [rwh_primes1](https://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n/3035188#3035188), not the sieve of Atkin. 5 months ago
UMARismyname
UMARismyname
published an Update
7 months ago
0
Prime Sieve of Atkin
Prime Sieve of AtkinFind primes up to a number with incredible speed!
Prime Sieve of Atkin
This program uses the Sieve of Atkin to tell you primes with incredible speed! It tells you long it took to calculate, not including the time it takes to print it out. So, for primes up to a million, it shows a number around 8ms, but it takes a relatively long time to print it out, so including the printing it takes about 5.9 seconds.
UMARismyname
UMARismyname
shared a Post
1 year ago
This program tells you about primes, composites, squares and cubes within a range of numbers, and includes a quiz about primes/composites and squares/