oils.pub
OSH Runtime Performance
Source code: benchmarks/osh-runtime.sh
Raw files
Elapsed Time by Shell (milliseconds)
Some benchmarks call many external tools, while some exercise the shell
interpreter itself.
| workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
| abuild-print-help |
no-host |
18 |
9 |
477 |
21 |
20 |
26.50 |
1.18 |
| bin-true |
no-host |
643 |
517 |
2,277 |
769 |
776 |
3.54 |
1.20 |
| configure.cpython |
no-host |
14,266 |
14,308 |
27,805 |
14,457 |
14,522 |
1.95 |
1.01 |
| configure.ocaml |
no-host |
3,682 |
3,622 |
4,527 |
3,707 |
3,702 |
1.23 |
1.01 |
| configure.tcc |
no-host |
45 |
40 |
203 |
47 |
46 |
4.46 |
1.02 |
| configure.util-linux |
no-host |
13,267 |
14,137 |
30,642 |
13,630 |
13,574 |
2.31 |
1.03 |
| configure.yash |
no-host |
1,772 |
1,696 |
2,393 |
1,758 |
1,759 |
1.35 |
0.99 |
| hello-world |
no-host |
1 |
1 |
55 |
3 |
3 |
39.71 |
1.96 |
Minor Page Faults
| workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
| abuild-print-help |
no-host |
2,507 |
1,082 |
24,449 |
3,206 |
3,105 |
9.75 |
1.28 |
| bin-true |
no-host |
106,280 |
65,445 |
792,073 |
126,098 |
127,288 |
7.45 |
1.19 |
| configure.cpython |
no-host |
1,994,564 |
2,017,380 |
6,107,825 |
2,013,860 |
1,998,504 |
3.06 |
1.01 |
| configure.ocaml |
no-host |
373,141 |
353,398 |
616,535 |
376,786 |
376,211 |
1.65 |
1.01 |
| configure.tcc |
no-host |
6,073 |
4,991 |
23,915 |
6,518 |
6,442 |
3.94 |
1.07 |
| configure.util-linux |
no-host |
1,914,201 |
2,069,613 |
5,318,166 |
1,824,209 |
1,812,453 |
2.78 |
0.95 |
| configure.yash |
no-host |
233,967 |
221,697 |
368,537 |
235,408 |
234,982 |
1.58 |
1.01 |
| hello-world |
no-host |
148 |
77 |
3,981 |
348 |
339 |
26.90 |
2.35 |
Memory Usage (Max Resident Set Size in MB)
Memory usage is measured in MB (powers of 10), not MiB (powers of 2).
GC Stats
| workload |
host name |
elapsed ms |
max gc millis |
total gc millis |
allocated MB |
max rss MB |
num allocated |
num live |
max survived |
num in heap |
num in pool 1 |
num in pool 2 |
num gc points |
num gc done |
gc threshold |
num growths |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,809 |
3,809 |
0 |
702 |
1,870 |
1,237 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
769 |
1 |
2 |
2.6 |
8.0 |
156,776 |
15,415 |
2,902 |
8,754 |
77,337 |
70,685 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,457 |
1 |
64 |
15.2 |
29.2 |
1,785,026 |
49,178 |
25,897 |
91,515 |
886,574 |
806,937 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,630 |
3 |
62 |
21.6 |
30.5 |
2,709,208 |
56,212 |
66,557 |
114,377 |
1,295,026 |
1,299,805 |
32,241 |
42 |
133,114 |
1 |
| configure.ocaml |
no-host |
3,707 |
1 |
2 |
2.6 |
22.6 |
149,878 |
12,466 |
6,509 |
7,749 |
70,874 |
71,255 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.3 |
19.8 |
30,579 |
30,579 |
0 |
1,544 |
14,636 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,758 |
1 |
2 |
2.6 |
26.2 |
139,885 |
8,046 |
6,701 |
6,399 |
68,339 |
65,147 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.2 |
116,339 |
64,421 |
42,626 |
4,546 |
54,461 |
57,332 |
277 |
3 |
85,252 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
5.9 |
3,808 |
3,808 |
0 |
703 |
1,870 |
1,235 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
776 |
1 |
2 |
2.6 |
7.9 |
156,775 |
15,410 |
2,897 |
8,755 |
77,337 |
70,683 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,522 |
1 |
68 |
15.2 |
29.2 |
1,785,025 |
49,165 |
25,884 |
91,516 |
886,574 |
806,935 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,574 |
3 |
63 |
21.6 |
30.3 |
2,709,208 |
56,187 |
66,550 |
114,379 |
1,295,026 |
1,299,803 |
32,241 |
42 |
133,100 |
1 |
| configure.ocaml |
no-host |
3,702 |
1 |
2 |
2.6 |
22.6 |
149,878 |
12,460 |
6,503 |
7,751 |
70,874 |
71,253 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.3 |
19.7 |
30,579 |
30,579 |
0 |
1,546 |
14,636 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,759 |
1 |
2 |
2.6 |
26.5 |
139,885 |
8,035 |
6,690 |
6,401 |
68,339 |
65,145 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
8.5 |
116,338 |
64,416 |
42,621 |
4,547 |
54,461 |
57,330 |
277 |
3 |
85,242 |
1 |
rusage Details
| task id |
host name |
workload |
elapsed ms |
user ms |
sys ms |
max rss MB |
shell label |
| 7 |
no-host |
abuild-print-help |
18 |
13 |
5 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
477 |
417 |
63 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
10 |
11 |
8.5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
643 |
295 |
380 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
517 |
282 |
247 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,277 |
794 |
1,734 |
18.8 |
osh-cpython |
| 25 |
no-host |
bin-true |
769 |
307 |
480 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
776 |
302 |
490 |
7.9 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,266 |
6,594 |
8,080 |
29.2 |
bash |
| 10 |
no-host |
configure.cpython |
14,308 |
6,591 |
8,137 |
29.1 |
dash |
| 18 |
no-host |
configure.cpython |
27,805 |
14,109 |
15,513 |
29.2 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,457 |
6,438 |
8,306 |
29.2 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,522 |
6,367 |
8,311 |
29.2 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,682 |
1,284 |
1,439 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,622 |
1,234 |
1,410 |
22.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,527 |
1,841 |
1,892 |
22.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,707 |
1,318 |
1,429 |
22.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,702 |
1,265 |
1,476 |
22.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
28 |
17 |
19.4 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
18 |
22 |
19.6 |
dash |
| 21 |
no-host |
configure.tcc |
203 |
143 |
63 |
19.8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
47 |
26 |
21 |
19.8 |
osh-native |
| 37 |
no-host |
configure.tcc |
46 |
15 |
32 |
19.7 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,267 |
5,835 |
7,919 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
14,137 |
5,844 |
8,793 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
30,642 |
17,549 |
14,150 |
30.4 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,630 |
5,546 |
8,317 |
30.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,574 |
5,518 |
8,287 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,772 |
897 |
877 |
26.5 |
bash |
| 14 |
no-host |
configure.yash |
1,696 |
854 |
846 |
26.5 |
dash |
| 22 |
no-host |
configure.yash |
2,393 |
1,304 |
1,131 |
26.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,758 |
882 |
881 |
26.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,759 |
876 |
888 |
26.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
55 |
38 |
18 |
18.4 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
osh-native-souffle |
More Details
| task id |
host name |
workload |
minor faults |
major faults |
swaps |
in block |
out block |
signals |
voluntary ctx |
involuntary ctx |
shell label |
| 7 |
no-host |
abuild-print-help |
2,507 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,082 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,449 |
0 |
0 |
0 |
8 |
0 |
45 |
2 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,206 |
0 |
0 |
0 |
16 |
0 |
39 |
7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,105 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,280 |
0 |
0 |
0 |
8 |
0 |
1,985 |
128 |
bash |
| 9 |
no-host |
bin-true |
65,445 |
0 |
0 |
0 |
8 |
0 |
1,973 |
84 |
dash |
| 17 |
no-host |
bin-true |
792,073 |
0 |
0 |
0 |
8 |
0 |
1,988 |
502 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,098 |
0 |
0 |
0 |
16 |
0 |
1,991 |
130 |
osh-native |
| 33 |
no-host |
bin-true |
127,288 |
0 |
0 |
0 |
16 |
0 |
1,986 |
357 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,994,564 |
1 |
0 |
0 |
32,928 |
0 |
14,233 |
1,212 |
bash |
| 10 |
no-host |
configure.cpython |
2,017,380 |
0 |
0 |
0 |
32,992 |
0 |
14,323 |
1,212 |
dash |
| 18 |
no-host |
configure.cpython |
6,107,825 |
0 |
0 |
0 |
27,512 |
0 |
13,029 |
1,283 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,013,860 |
0 |
0 |
0 |
27,520 |
0 |
13,050 |
1,349 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,998,504 |
0 |
0 |
0 |
27,520 |
0 |
13,030 |
1,196 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,141 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
353,398 |
0 |
0 |
0 |
5,112 |
0 |
1,923 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
616,535 |
0 |
0 |
0 |
5,112 |
0 |
1,849 |
199 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
376,786 |
0 |
0 |
0 |
5,120 |
0 |
1,923 |
231 |
osh-native |
| 36 |
no-host |
configure.ocaml |
376,211 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
185 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,073 |
0 |
0 |
0 |
104 |
0 |
45 |
7 |
bash |
| 13 |
no-host |
configure.tcc |
4,991 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,915 |
0 |
0 |
0 |
96 |
0 |
53 |
13 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,518 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,442 |
0 |
0 |
0 |
104 |
0 |
47 |
13 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,914,201 |
0 |
0 |
0 |
42,400 |
0 |
18,430 |
1,242 |
bash |
| 11 |
no-host |
configure.util-linux |
2,069,613 |
0 |
0 |
0 |
42,592 |
0 |
17,268 |
1,447 |
dash |
| 19 |
no-host |
configure.util-linux |
5,318,166 |
5 |
0 |
0 |
39,112 |
0 |
17,018 |
1,388 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,824,209 |
0 |
0 |
0 |
39,120 |
0 |
17,006 |
1,281 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,812,453 |
2 |
0 |
0 |
39,128 |
0 |
16,869 |
1,253 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
233,967 |
0 |
0 |
0 |
4,120 |
0 |
875 |
97 |
bash |
| 14 |
no-host |
configure.yash |
221,697 |
0 |
0 |
0 |
3,720 |
0 |
869 |
97 |
dash |
| 22 |
no-host |
configure.yash |
368,537 |
0 |
0 |
0 |
3,728 |
0 |
851 |
115 |
osh-cpython |
| 30 |
no-host |
configure.yash |
235,408 |
0 |
0 |
0 |
3,736 |
0 |
850 |
101 |
osh-native |
| 38 |
no-host |
configure.yash |
234,982 |
0 |
0 |
0 |
3,736 |
0 |
851 |
122 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
148 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
77 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,981 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host