https://github.com/codejake/benchmarking
https://github.com/codejake/benchmarking
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codejake/benchmarking
- Owner: codejake
- Created: 2025-09-26T17:46:17.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-26T20:04:26.000Z (9 months ago)
- Last Synced: 2025-09-26T22:07:16.198Z (9 months ago)
- Language: C#
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prime Sieve
The tests were run several times. The below runs are decent averages.
Note: I bet these tests would look a lot different on Linux.
## Testing Host
Tests executed on macOS 26.0 on Apple Silicon MacBook Pro with M2 Pro.
Note: Ordered from fastest to slowest.
## TypeScript with Bun 1.2.22
```
❯ bun ./prime-sieve.ts
TypeScript Performance Benchmark
========================================
1. Prime Sieve (up to 100,000)
Found 9592 primes in 0.0058 seconds
2. Fibonacci (40th number)
Result: 102334155 in 0.0000 seconds
3. Matrix Multiplication (200x200)
Completed in 0.0325 seconds
Total execution time: 0.0185 seconds
```
## Dotnet 10 RC (10.0.0-rc.1.25451.107 Release)
```
❯ dotnet run -c Release prime-sieve.cs
C# Performance Benchmark
========================================
1. Prime Sieve (up to 100,000)
Found 9592 primes in 0.0011 seconds
2. Fibonacci (40th number)
Result: 102334155 in 0.0001 seconds
3. Matrix Multiplication (200x200)
Completed in 0.0206 seconds
Total execution time: 0.0205 seconds
```
## DotNet 10 RC (10.0.0-rc.1.25451.107 Debug)
```
❯ dotnet run -c Debug ./prime-sieve.cs
C# Performance Benchmark
========================================
1. Prime Sieve (up to 100,000)
Found 9592 primes in 0.0011 seconds
2. Fibonacci (40th number)
Result: 102334155 in 0.0000 seconds
3. Matrix Multiplication (200x200)
Completed in 0.0390 seconds
Total execution time: 0.0398 seconds
```
## Python
```
❯ python3 ./prime-sieve.py
Python Performance Benchmark
========================================
1. Prime Sieve (up to 100,000)
Found 9592 primes in 0.0050 seconds
2. Fibonacci (40th number)
Result: 102334155 in 0.0000 seconds
3. Matrix Multiplication (200x200)
Completed in 0.3724 seconds
Total execution time: 0.3698 seconds
```