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 |
19 |
9 |
490 |
21 |
21 |
25.69 |
1.12 |
| bin-true |
no-host |
644 |
545 |
2,350 |
864 |
767 |
3.65 |
1.34 |
| configure.cpython |
no-host |
14,722 |
14,838 |
30,431 |
15,539 |
15,456 |
2.07 |
1.06 |
| configure.ocaml |
no-host |
3,747 |
3,773 |
5,023 |
3,900 |
3,814 |
1.34 |
1.04 |
| configure.tcc |
no-host |
46 |
41 |
228 |
48 |
47 |
4.94 |
1.04 |
| configure.util-linux |
no-host |
13,940 |
14,541 |
32,930 |
14,261 |
14,408 |
2.36 |
1.02 |
| configure.yash |
no-host |
1,800 |
1,726 |
2,618 |
1,802 |
1,840 |
1.45 |
1.00 |
| hello-world |
no-host |
1 |
1 |
57 |
3 |
3 |
40.44 |
1.99 |
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,571 |
1,093 |
24,372 |
3,158 |
3,110 |
9.48 |
1.23 |
| bin-true |
no-host |
105,321 |
66,448 |
807,439 |
132,217 |
130,220 |
7.67 |
1.26 |
| configure.cpython |
no-host |
1,993,258 |
2,023,108 |
6,788,990 |
2,026,598 |
2,020,935 |
3.41 |
1.02 |
| configure.ocaml |
no-host |
373,528 |
353,855 |
622,605 |
376,649 |
375,872 |
1.67 |
1.01 |
| configure.tcc |
no-host |
6,068 |
5,025 |
24,299 |
6,505 |
6,460 |
4.00 |
1.07 |
| configure.util-linux |
no-host |
1,915,508 |
2,070,989 |
6,095,903 |
1,830,440 |
1,828,369 |
3.18 |
0.96 |
| configure.yash |
no-host |
234,046 |
221,706 |
374,400 |
235,810 |
234,659 |
1.60 |
1.01 |
| hello-world |
no-host |
148 |
76 |
3,979 |
344 |
344 |
26.89 |
2.32 |
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.2 |
3,809 |
3,809 |
0 |
702 |
1,870 |
1,237 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
864 |
1 |
3 |
2.6 |
8.4 |
156,800 |
37,848 |
13,859 |
8,777 |
77,337 |
70,686 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,539 |
6 |
168 |
17.2 |
29.3 |
1,785,047 |
74,719 |
69,163 |
91,536 |
886,574 |
806,937 |
25,736 |
67 |
114,984 |
2 |
| configure.util-linux |
no-host |
14,261 |
6 |
122 |
22.2 |
30.4 |
2,709,229 |
138,179 |
81,265 |
114,398 |
1,295,026 |
1,299,805 |
32,241 |
49 |
162,530 |
2 |
| configure.ocaml |
no-host |
3,900 |
1 |
2 |
2.7 |
22.6 |
149,884 |
20,457 |
10,096 |
7,755 |
70,874 |
71,255 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.7 |
30,585 |
30,585 |
0 |
1,549 |
14,636 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,802 |
1 |
2 |
2.6 |
26.4 |
139,903 |
13,746 |
8,684 |
6,416 |
68,339 |
65,148 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.2 |
116,345 |
64,500 |
42,705 |
4,551 |
54,461 |
57,333 |
277 |
3 |
85,410 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
5.8 |
3,808 |
3,808 |
0 |
703 |
1,870 |
1,235 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
767 |
1 |
3 |
2.6 |
7.9 |
156,799 |
37,768 |
13,855 |
8,778 |
77,337 |
70,684 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,456 |
6 |
158 |
17.1 |
29.2 |
1,785,046 |
99,583 |
67,086 |
91,537 |
886,574 |
806,935 |
25,736 |
66 |
113,170 |
2 |
| configure.util-linux |
no-host |
14,408 |
6 |
120 |
22.2 |
30.2 |
2,709,229 |
138,172 |
81,258 |
114,400 |
1,295,026 |
1,299,803 |
32,241 |
49 |
162,516 |
2 |
| configure.ocaml |
no-host |
3,814 |
1 |
2 |
2.7 |
22.5 |
149,884 |
20,451 |
10,090 |
7,757 |
70,874 |
71,253 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.3 |
19.7 |
30,585 |
30,585 |
0 |
1,551 |
14,636 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,840 |
1 |
2 |
2.6 |
26.2 |
139,903 |
13,741 |
8,679 |
6,418 |
68,339 |
65,146 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.8 |
116,344 |
64,495 |
42,700 |
4,552 |
54,461 |
57,331 |
277 |
3 |
85,400 |
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 |
19 |
11 |
8 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
490 |
434 |
57 |
23.0 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
8.8 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
644 |
306 |
372 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
545 |
262 |
288 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,350 |
811 |
1,802 |
24.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
864 |
314 |
549 |
8.4 |
osh-native |
| 33 |
no-host |
bin-true |
767 |
319 |
469 |
7.9 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,722 |
6,615 |
8,516 |
29.3 |
bash |
| 10 |
no-host |
configure.cpython |
14,838 |
6,772 |
8,466 |
29.3 |
dash |
| 18 |
no-host |
configure.cpython |
30,431 |
14,622 |
17,595 |
37.8 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,539 |
6,788 |
9,016 |
29.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,456 |
6,918 |
8,681 |
29.2 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,747 |
1,340 |
1,447 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,773 |
1,328 |
1,465 |
22.5 |
dash |
| 20 |
no-host |
configure.ocaml |
5,023 |
2,107 |
2,153 |
22.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,900 |
1,345 |
1,569 |
22.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,814 |
1,355 |
1,484 |
22.5 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
19.6 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
20 |
19.6 |
dash |
| 21 |
no-host |
configure.tcc |
228 |
157 |
72 |
19.7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
24 |
24 |
19.7 |
osh-native |
| 37 |
no-host |
configure.tcc |
47 |
25 |
23 |
19.7 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,940 |
6,004 |
8,371 |
30.2 |
bash |
| 11 |
no-host |
configure.util-linux |
14,541 |
5,896 |
9,168 |
30.2 |
dash |
| 19 |
no-host |
configure.util-linux |
32,930 |
18,286 |
15,717 |
38.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,261 |
5,776 |
8,667 |
30.4 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,408 |
5,684 |
8,703 |
30.2 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,800 |
915 |
886 |
26.3 |
bash |
| 14 |
no-host |
configure.yash |
1,726 |
876 |
853 |
26.5 |
dash |
| 22 |
no-host |
configure.yash |
2,618 |
1,454 |
1,185 |
26.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,802 |
884 |
922 |
26.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,840 |
924 |
917 |
26.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.3 |
dash |
| 16 |
no-host |
hello-world |
57 |
39 |
18 |
18.4 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.2 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
5.8 |
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,571 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
4 |
dash |
| 23 |
no-host |
abuild-print-help |
24,372 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,158 |
0 |
0 |
0 |
16 |
0 |
40 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,110 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
105,321 |
0 |
0 |
0 |
8 |
0 |
1,984 |
110 |
bash |
| 9 |
no-host |
bin-true |
66,448 |
0 |
0 |
0 |
8 |
0 |
1,988 |
103 |
dash |
| 17 |
no-host |
bin-true |
807,439 |
0 |
0 |
0 |
8 |
0 |
1,985 |
184 |
osh-cpython |
| 25 |
no-host |
bin-true |
132,217 |
0 |
0 |
0 |
16 |
0 |
1,980 |
144 |
osh-native |
| 33 |
no-host |
bin-true |
130,220 |
0 |
0 |
0 |
16 |
0 |
1,986 |
148 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,993,258 |
0 |
0 |
0 |
32,928 |
0 |
14,231 |
1,202 |
bash |
| 10 |
no-host |
configure.cpython |
2,023,108 |
1 |
0 |
0 |
32,992 |
0 |
14,319 |
1,300 |
dash |
| 18 |
no-host |
configure.cpython |
6,788,990 |
0 |
0 |
0 |
27,512 |
0 |
13,049 |
1,243 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,026,598 |
1 |
0 |
0 |
27,520 |
0 |
13,073 |
1,132 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,020,935 |
0 |
0 |
0 |
27,520 |
0 |
13,117 |
986 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,528 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
203 |
bash |
| 12 |
no-host |
configure.ocaml |
353,855 |
0 |
0 |
0 |
5,112 |
0 |
1,929 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
622,605 |
0 |
0 |
0 |
5,112 |
0 |
1,879 |
168 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
376,649 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
203 |
osh-native |
| 36 |
no-host |
configure.ocaml |
375,872 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
218 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,068 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
5,025 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
24,299 |
0 |
0 |
0 |
96 |
0 |
52 |
11 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,505 |
0 |
0 |
0 |
104 |
0 |
47 |
10 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,460 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,915,508 |
0 |
0 |
0 |
42,400 |
0 |
18,425 |
1,243 |
bash |
| 11 |
no-host |
configure.util-linux |
2,070,989 |
1 |
0 |
0 |
42,592 |
0 |
17,338 |
1,489 |
dash |
| 19 |
no-host |
configure.util-linux |
6,095,903 |
5 |
0 |
0 |
39,136 |
0 |
17,001 |
1,389 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,830,440 |
0 |
0 |
0 |
39,128 |
0 |
16,928 |
1,174 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,828,369 |
0 |
0 |
0 |
39,136 |
0 |
16,875 |
1,210 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
234,046 |
0 |
0 |
0 |
4,120 |
0 |
901 |
85 |
bash |
| 14 |
no-host |
configure.yash |
221,706 |
0 |
0 |
0 |
3,720 |
0 |
875 |
94 |
dash |
| 22 |
no-host |
configure.yash |
374,400 |
0 |
0 |
0 |
3,728 |
0 |
857 |
83 |
osh-cpython |
| 30 |
no-host |
configure.yash |
235,810 |
0 |
0 |
0 |
3,736 |
0 |
850 |
93 |
osh-native |
| 38 |
no-host |
configure.yash |
234,659 |
0 |
0 |
0 |
3,736 |
0 |
851 |
82 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
148 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
76 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,979 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host