7-Language Performance Suite

Performance Benchmarks

SP is engineered from the ground up for high-performance computing. We rigorously test SP against leading systems and application languages to ensure exceptional raw runtime execution and memory efficiency.

Hardware & Test Environment

ProcessorAMD Ryzen 9 7950X16 Cores / 32 Threads @ 4.5GHz
Memory32 GB DDR5-6000Dual-channel, Low latency
Operating SystemUbuntu 24.04 LTS / Win 11Linux Kernel 6.8 / MSVC CRT
Compiler BackendLLVM 18.1.8 TargetFull LTO + Vectorization
Workload #1

Recursive Fibonacci (n=40)

Evaluates function call overhead, stack frame management, and recursion speed without caching.

Median of 10 Warm Iterations
LanguageCompiler / RuntimeExecution Time (ms)Peak Memory (MB)Speedup vs PythonSP Relative Speed
SPSP Targetspc -O3312 ms14.2 MB62.5x1.00x (Baseline)
Cgcc -O3304 ms2.1 MB64.1x0.97x faster
C++clang++ -O3308 ms3.4 MB63.3x0.99x faster
Rustrustc --release318 ms4.2 MB61.3x1.02x slower
JavaOpenJDK 21 (HotSpot)512 ms48 MB38.1x1.64x slower
Node.jsNode.js v20 (V8)980 ms38.5 MB19.9x3.14x slower
PythonCPython 3.1219500 ms16 MB1.0x62.50x slower
Workload #2

Quicksort (1,000,000 Elements)

Evaluates raw memory throughput, branch prediction, array indexing, and in-place swapping.

Median of 10 Warm Iterations
LanguageCompiler / RuntimeExecution Time (ms)Peak Memory (MB)Speedup vs PythonSP Relative Speed
SPSP Targetspc -O382 ms22 MB29.3x1.00x (Baseline)
Cgcc -O378 ms12 MB30.8x0.95x faster
C++clang++ -O379 ms12.5 MB30.4x0.96x faster
Rustrustc --release84 ms13 MB28.6x1.02x slower
JavaOpenJDK 21 (HotSpot)142 ms72 MB16.9x1.73x slower
Node.jsNode.js v20 (V8)240 ms68 MB10.0x2.93x slower
PythonCPython 3.122400 ms45 MB1.0x29.27x slower
Workload #3

Hash Map (1,000,000 Insert & Lookup)

Evaluates hash collision handling, dynamic bucket resizing, pointer dereferencing, and allocator throughput.

Median of 10 Warm Iterations
LanguageCompiler / RuntimeExecution Time (ms)Peak Memory (MB)Speedup vs PythonSP Relative Speed
SPSP Targetspc -O3185 ms48 MB7.7x1.00x (Baseline)
Cgcc -O3162 ms36 MB8.8x0.88x faster
C++clang++ -O3170 ms38 MB8.4x0.92x faster
Rustrustc --release178 ms42 MB8.0x0.96x faster
JavaOpenJDK 21 (HotSpot)295 ms128 MB4.8x1.59x slower
Node.jsNode.js v20 (V8)460 ms110 MB3.1x2.49x slower
PythonCPython 3.121420 ms95 MB1.0x7.68x slower
Workload #4

Binary Trees (Depth 16)

Classic GC/allocator benchmark allocating, traversing, and deallocating deep recursive trees.

Median of 10 Warm Iterations
LanguageCompiler / RuntimeExecution Time (ms)Peak Memory (MB)Speedup vs PythonSP Relative Speed
SPSP Targetspc -O3410 ms64 MB11.7x1.00x (Baseline)
Cgcc -O3345 ms44 MB13.9x0.84x faster
C++clang++ -O3360 ms46 MB13.3x0.88x faster
Rustrustc --release395 ms48 MB12.2x0.96x faster
JavaOpenJDK 21 (HotSpot)580 ms210 MB8.3x1.41x slower
Node.jsNode.js v20 (V8)820 ms195 MB5.9x2.00x slower
PythonCPython 3.124800 ms130 MB1.0x11.71x slower
Workload #5

Mandelbrot (1,000 x 1,000 Fractal)

Evaluates double-precision floating point math, SIMD vectorization potential, and tight computational loops.

Median of 10 Warm Iterations
LanguageCompiler / RuntimeExecution Time (ms)Peak Memory (MB)Speedup vs PythonSP Relative Speed
SPSP Targetspc -O3245 ms16 MB33.5x1.00x (Baseline)
Cgcc -O3232 ms2.8 MB35.3x0.95x faster
C++clang++ -O3236 ms3.6 MB34.7x0.96x faster
Rustrustc --release240 ms4.8 MB34.2x0.98x faster
JavaOpenJDK 21 (HotSpot)390 ms52 MB21.0x1.59x slower
Node.jsNode.js v20 (V8)650 ms42 MB12.6x2.65x slower
PythonCPython 3.128200 ms18 MB1.0x33.47x slower

Reproducing Benchmarks Locally

All benchmark source files in SP, C, C++, Rust, Java, Node.js, and Python are open-source and included in the repository under benchmarks/. You can run the entire automated benchmarking suite with:

git clone https://github.com/shantopaul/SP-Language.git cd SP-Language python benchmarks/run_benchmarks.py --all --iterations 10

The runner will automatically compile all source variants with highest optimization flags, warm up memory caches, and output structured latency percentiles (P50, P90, P99).