README: performance => comparison

This commit is contained in:
NunoSempere 2023-05-21 12:29:44 -04:00
parent 8174e8a49e
commit 4419798c18

View File

@ -27,9 +27,7 @@ As of now, it may be useful for checking the validity of simple estimations. The
- [x] Python - [x] Python
- [x] Nim - [x] Nim
## Performance table ## Comparison table
With the [time](https://man7.org/linux/man-pages/man1/time.1.html) tool, using 1M samples:
| Language | Time | Lines of code | | Language | Time | Lines of code |
|----------------------|-----------|---------------| |----------------------|-----------|---------------|
@ -40,6 +38,8 @@ With the [time](https://man7.org/linux/man-pages/man1/time.1.html) tool, using 1
| R | 0m7,000s | 49 | | R | 0m7,000s | 49 |
| Python (CPython) | 0m16,641s | 56 | | Python (CPython) | 0m16,641s | 56 |
Time measurements taken with the [time](https://man7.org/linux/man-pages/man1/time.1.html) tool, using 1M samples:
## Notes ## Notes
I was really happy trying [Nim](https://nim-lang.org/), and as a result the Nim code is a bit more optimized and engineered: I was really happy trying [Nim](https://nim-lang.org/), and as a result the Nim code is a bit more optimized and engineered: