mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update performance.md
This commit is contained in:
parent
d47d6485be
commit
35910d32d6
@ -6,44 +6,45 @@ label: Performance
|
|||||||
|
|
||||||
# Performance
|
# Performance
|
||||||
|
|
||||||
Currently, pkpy is a bit faster than cpython 3.8. Here is a benchmark result of a special commit.
|
Currently, pkpy is completely faster than cpython 3.8.
|
||||||
|
Here is a benchmark result of the current commit.
|
||||||
|
|
||||||
Benchmark files are located in `benchmarks/`.
|
Benchmark files are located in `benchmarks/`.
|
||||||
|
|
||||||
See [actions/runs/5031865496/jobs/9025183674](https://github.com/blueloveTH/pocketpy/actions/runs/5031865496/jobs/9025183674).
|
See [actions/runs](https://github.com/blueloveTH/pocketpy/actions/runs/5113363233/jobs/9192476164).
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
Testing directory: benchmarks/
|
Testing directory: benchmarks/
|
||||||
> benchmarks/fib.py
|
> benchmarks/fib.py
|
||||||
cpython: 0.684102s (100%)
|
cpython: 0.695462s (100%)
|
||||||
pocketpy: 0.680497s (99.47%)
|
pocketpy: 0.606675s (87.23%)
|
||||||
> benchmarks/loop_0.py
|
> benchmarks/loop_0.py
|
||||||
cpython: 0.338688s (100%)
|
cpython: 0.315025s (100%)
|
||||||
pocketpy: 0.189629s (55.99%)
|
pocketpy: 0.177018s (56.19%)
|
||||||
> benchmarks/loop_1.py
|
> benchmarks/loop_1.py
|
||||||
cpython: 0.569272s (100%)
|
cpython: 0.568521s (100%)
|
||||||
pocketpy: 0.332900s (58.48%)
|
pocketpy: 0.319714s (56.24%)
|
||||||
> benchmarks/loop_2.py
|
> benchmarks/loop_2.py
|
||||||
cpython: 0.826183s (100%)
|
cpython: 0.802686s (100%)
|
||||||
pocketpy: 0.440160s (53.28%)
|
pocketpy: 0.426311s (53.11%)
|
||||||
> benchmarks/loop_3.py
|
> benchmarks/loop_3.py
|
||||||
cpython: 3.121079s (100%)
|
cpython: 3.040100s (100%)
|
||||||
pocketpy: 1.390122s (44.54%)
|
pocketpy: 1.748905s (57.53%)
|
||||||
> benchmarks/primes.py
|
> benchmarks/primes.py
|
||||||
cpython: 6.705832s (100%)
|
cpython: 6.566063s (100%)
|
||||||
pocketpy: 5.420015s (80.83%)
|
pocketpy: 5.314596s (80.94%)
|
||||||
> benchmarks/recursive.py
|
> benchmarks/recursive.py
|
||||||
cpython: 0.019430s (100%)
|
cpython: 0.020200s (100%)
|
||||||
pocketpy: 0.005298s (27.27%)
|
pocketpy: 0.004595s (22.75%)
|
||||||
> benchmarks/simple.py
|
> benchmarks/simple.py
|
||||||
cpython: 0.373461s (100%)
|
cpython: 0.375262s (100%)
|
||||||
pocketpy: 0.281169s (75.29%)
|
pocketpy: 0.283474s (75.54%)
|
||||||
> benchmarks/sort.py
|
> benchmarks/sort.py
|
||||||
cpython: 0.338689s (100%)
|
cpython: 0.327771s (100%)
|
||||||
pocketpy: 0.287986s (85.03%)
|
pocketpy: 0.242722s (74.05%)
|
||||||
> benchmarks/sum.py
|
> benchmarks/sum.py
|
||||||
cpython: 0.019819s (100%)
|
cpython: 0.020165s (100%)
|
||||||
pocketpy: 0.005130s (25.88%)
|
pocketpy: 0.004495s (22.29%)
|
||||||
ALL TESTS PASSED
|
ALL TESTS PASSED
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user