2023-11-19 18:11:41 +00:00
|
|
|
# bc
|
|
|
|
time ghbc -l squiggle.bc estimate.bc
|
|
|
|
.8907201178102747
|
2023-06-02 22:24:08 +00:00
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
real 0m15.960s
|
|
|
|
user 0m15.948s
|
|
|
|
sys 0m0.000s
|
2023-06-02 22:24:08 +00:00
|
|
|
|
2023-05-29 23:40:03 +00:00
|
|
|
|
2022-12-01 15:04:37 +00:00
|
|
|
# C
|
2023-11-19 18:11:41 +00:00
|
|
|
Running 100x and taking avg time: OMP_NUM_THREADS=16 out/samples
|
|
|
|
Time using 16 threads: 5.60ms
|
2022-12-01 15:04:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
# js (bun)
|
|
|
|
0.8867426270252042
|
2022-12-01 15:04:37 +00:00
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
real 0m0.551s
|
|
|
|
user 0m0.527s
|
|
|
|
sys 0m0.055s
|
2022-12-01 15:04:37 +00:00
|
|
|
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
# js (node)
|
|
|
|
0.8878977218582866
|
2022-12-01 15:04:37 +00:00
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
real 0m0.445s
|
|
|
|
user 0m0.523s
|
|
|
|
sys 0m0.060s
|
2022-12-01 15:04:37 +00:00
|
|
|
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
# lua (luajit)
|
|
|
|
Requires /bin/time, found on GNU/Linux systems
|
2022-12-01 15:04:37 +00:00
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
Running 100x and taking avg time of: luajit samples.lua
|
|
|
|
Time: 69.90ms
|
2023-05-21 05:46:45 +00:00
|
|
|
|
2023-05-21 05:54:03 +00:00
|
|
|
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
# nim
|
|
|
|
Requires /bin/time, found on GNU/Linux systems
|
2023-05-21 05:46:45 +00:00
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
Running 100x and taking avg time of:
|
|
|
|
Time: 40.80ms
|
2023-05-21 05:46:45 +00:00
|
|
|
|
|
|
|
|
2023-06-09 01:12:07 +00:00
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
# ocaml
|
2023-06-11 01:31:13 +00:00
|
|
|
Requires /bin/time, found on GNU/Linux systems
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
Running 100x and taking avg time of:
|
|
|
|
Time: 187.90ms
|
2023-06-11 01:31:13 +00:00
|
|
|
|
2023-06-09 01:12:07 +00:00
|
|
|
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
# Python (3.9)
|
|
|
|
0.8887373869178242
|
2023-06-10 01:12:33 +00:00
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
real 0m11.879s
|
|
|
|
user 0m12.129s
|
|
|
|
sys 0m1.055s
|
2023-06-11 01:31:13 +00:00
|
|
|
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
# R (3.6.1)
|
|
|
|
[1] 0.8899922
|
2023-06-11 01:31:13 +00:00
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
real 0m4.508s
|
|
|
|
user 0m4.476s
|
|
|
|
sys 0m0.028s
|
2023-06-11 01:31:13 +00:00
|
|
|
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
# Squiggle (0.8.6)
|
2023-06-11 01:31:13 +00:00
|
|
|
Requires /bin/time, found on GNU/Linux systems
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
Running 100x and taking avg time of:
|
|
|
|
Time: 386.80ms
|
2023-08-17 12:36:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
# SquigglePy (0.27)
|
|
|
|
time python3.9 samples.py
|
|
|
|
0%| | 0/4 [00:00<?, ?it/s]
75%|███████▌ | 3/4 [00:00<00:00, 27.07it/s]
100%|██████████| 4/4 [00:00<00:00, 23.38it/s]
|
|
|
|
0%| | 0/1000000 [00:00<?, ?it/s]
10%|█ | 104035/1000000 [00:00<00:00, 1040346.03it/s]
24%|██▍ | 238684/1000000 [00:00<00:00, 1220429.41it/s]
38%|███▊ | 376402/1000000 [00:00<00:00, 1292004.08it/s]
51%|█████▏ | 514235/1000000 [00:00<00:00, 1326083.80it/s]
65%|██████▌ | 654235/1000000 [00:00<00:00, 1352735.46it/s]
80%|███████▉ | 795746/1000000 [00:00<00:00, 1373942.14it/s]
93%|█████████▎| 934912/1000000 [00:00<00:00, 1379731.72it/s]
100%|██████████| 1000000/1000000 [00:00<00:00, 1329428.38it/s]
|
|
|
|
0.8879525229675179
|
2023-08-17 12:36:03 +00:00
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
real 0m1.507s
|
|
|
|
user 0m1.969s
|
|
|
|
sys 0m2.201s
|
2023-10-15 00:19:56 +00:00
|
|
|
|
|
|
|
|
2023-11-19 18:11:41 +00:00
|
|
|
# squiggle.c
|
|
|
|
Running 100x and taking avg time: OMP_NUM_THREADS=16 ./samples
|
|
|
|
Time using 16 threads: 12.70ms
|
2023-11-02 23:52:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|