https://github.com/aurelio-amerio/julia-vs-python-benchmarks
A short series of benchmarks to compare Julia and Python performance
https://github.com/aurelio-amerio/julia-vs-python-benchmarks
benchmark julia python
Last synced: about 2 months ago
JSON representation
A short series of benchmarks to compare Julia and Python performance
- Host: GitHub
- URL: https://github.com/aurelio-amerio/julia-vs-python-benchmarks
- Owner: aurelio-amerio
- Created: 2018-12-12T21:39:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-10T23:12:42.000Z (over 7 years ago)
- Last Synced: 2025-01-09T17:14:17.565Z (over 1 year ago)
- Topics: benchmark, julia, python
- Language: Jupyter Notebook
- Size: 22.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Julia vs Python Benchmarks
A short series of benchmarks to compare Julia and Python performance
### For Cycles
| | Python | Numba Python | Julia |
| ----------------- | ------- | ------------ | -------- |
| handwritten | 260 ms | 8.1 ms | 8.216 ms |
| specific function | 4.24 ms | ----- | 3.561 ms |
### Dot product of 1000x1000 matrices
| | Python | Numba Python | Julia |
| ----------------- | ------- | ------------ | --------- |
| specific function | 19.8 ms | 17.2 ms | 19.094 ms |
### Γ(30) function
| | Python | Numba Python | Julia |
| ----------------- | ------ | ------------ | --------- |
| handwritten | 415 µs | 73.2 µs | 49.599 μs |
| specific function | 935 ns | ------- | 94.676 ns |
### Vectorized sin function over several elements
| | Python | Numba Python | Julia |
| --------- | ------- | ------------ | --------- |
| 5 elem | 980 ns | ------ | 56.376 ns |
| 1000 elem | 11.1 µs | ------ | 11.100 μs |