commit 7cecdd24b8da4e3ec1a09a529462e6d599197560
parent 94119e01739aaecb2a0d4d6138ba753f17fae160
Author: NunoSempere <nuno.sempere@protonmail.com>
Date: Sat, 3 Dec 2022 13:15:28 +0000
feat: recompute time for Squiggle
Diffstat:
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
@@ -21,11 +21,12 @@ With the [time](https://man7.org/linux/man-pages/man1/time.1.html) tool, using 1
| Language | Time |
|----------|-----------|
| C | 0m0,442s |
-| Squiggle | 0m0,488s |
| Node | 0m0,732s |
+| Squiggle | 0m1,536s |
| R | 0m7,000s |
| Python (CPython) | 0m16,641s |
+
I was very surprised that Node/Squiggle code was almost as fast as the raw C code. For the Python code, it's possible that the lack of speed is more a function of me not being as familiar with Python. It's also very possible that the code would run faster with [PyPy](https://doc.pypy.org)
## Languages I may add later
@@ -40,9 +41,9 @@ I was very surprised that Node/Squiggle code was almost as fast as the raw C cod
The future of this project is uncertain. In most words, I simply forget about this repository.
To do:
-- [ ] Check whether the Squiggle code is producing 1M samples.
+- [x] Check whether the Squiggle code is producing 1M samples.
## Other similar projects
- Squigglepy: <https://github.com/rethinkpriorities/squigglepy>
-- Simple Squiggle: <https://github.com/quantified-uncertainty/simple-squiggle>
-\ No newline at end of file
+- Simple Squiggle: <https://github.com/quantified-uncertainty/simple-squiggle>
diff --git a/time.txt b/time.txt
@@ -8,10 +8,9 @@ sys 0m0,064s
# Squiggle
-real 0m0,488s
-user 0m0,567s
-sys 0m0,099s
-
+real 0m1,536s
+user 0m1,564s
+sys 0m0,240s
# NodeJS