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 |
460 |
22 |
20 |
24.27 |
1.17 |
| bin-true |
no-host |
679 |
541 |
2,320 |
804 |
809 |
3.42 |
1.18 |
| configure.cpython |
no-host |
14,942 |
14,979 |
28,760 |
15,231 |
15,253 |
1.92 |
1.02 |
| configure.ocaml |
no-host |
3,804 |
3,726 |
4,647 |
3,849 |
3,802 |
1.22 |
1.01 |
| configure.tcc |
no-host |
47 |
42 |
202 |
49 |
48 |
4.27 |
1.03 |
| configure.util-linux |
no-host |
13,933 |
14,806 |
31,396 |
14,545 |
14,248 |
2.25 |
1.04 |
| configure.yash |
no-host |
1,807 |
1,766 |
2,457 |
1,843 |
1,812 |
1.36 |
1.02 |
| hello-world |
no-host |
2 |
1 |
56 |
3 |
3 |
35.74 |
1.81 |
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,544 |
1,084 |
23,772 |
3,163 |
3,090 |
9.34 |
1.24 |
| bin-true |
no-host |
107,384 |
66,441 |
768,467 |
124,236 |
124,207 |
7.16 |
1.16 |
| configure.cpython |
no-host |
2,226,108 |
2,245,399 |
6,248,347 |
2,214,446 |
2,209,821 |
2.81 |
0.99 |
| configure.ocaml |
no-host |
409,816 |
390,844 |
647,793 |
413,096 |
413,008 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,532 |
5,486 |
24,123 |
6,982 |
6,894 |
3.69 |
1.07 |
| configure.util-linux |
no-host |
2,093,889 |
2,261,989 |
5,390,850 |
1,997,036 |
1,988,832 |
2.57 |
0.95 |
| configure.yash |
no-host |
256,721 |
244,682 |
389,284 |
257,761 |
258,031 |
1.52 |
1.00 |
| hello-world |
no-host |
152 |
81 |
3,938 |
344 |
334 |
25.91 |
2.26 |
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.2 |
6.3 |
3,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
1 |
2 |
2.6 |
7.9 |
153,746 |
12,267 |
2,887 |
8,743 |
76,322 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,231 |
1 |
62 |
14.9 |
27.5 |
1,771,747 |
49,125 |
28,512 |
85,415 |
878,115 |
808,217 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,545 |
3 |
62 |
21.2 |
30.1 |
2,702,513 |
53,766 |
65,691 |
108,691 |
1,290,640 |
1,303,182 |
32,239 |
41 |
131,382 |
1 |
| configure.ocaml |
no-host |
3,849 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,112 |
5,207 |
7,508 |
70,969 |
71,603 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,518 |
14,641 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,843 |
1 |
2 |
2.5 |
24.2 |
139,412 |
8,024 |
6,686 |
5,989 |
67,942 |
65,481 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,292 |
64,403 |
42,613 |
4,532 |
54,436 |
57,324 |
277 |
3 |
85,226 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
809 |
1 |
2 |
2.6 |
7.7 |
153,745 |
12,111 |
2,825 |
8,744 |
76,322 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,253 |
1 |
60 |
14.9 |
27.3 |
1,771,746 |
44,577 |
28,450 |
85,416 |
878,115 |
808,215 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,248 |
3 |
59 |
21.2 |
30.1 |
2,702,513 |
53,693 |
65,649 |
108,693 |
1,290,640 |
1,303,180 |
32,239 |
41 |
131,298 |
1 |
| configure.ocaml |
no-host |
3,802 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,050 |
5,145 |
7,510 |
70,969 |
71,601 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,520 |
14,641 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,812 |
1 |
2 |
2.5 |
24.5 |
139,412 |
7,962 |
6,624 |
5,991 |
67,942 |
65,479 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
8.7 |
116,291 |
64,341 |
42,551 |
4,533 |
54,436 |
57,322 |
277 |
3 |
85,102 |
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 |
9 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
460 |
429 |
35 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
17 |
6 |
8.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
19 |
2 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
679 |
511 |
199 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
541 |
425 |
125 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,320 |
1,512 |
1,066 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
804 |
563 |
254 |
7.9 |
osh-native |
| 33 |
no-host |
bin-true |
809 |
594 |
232 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,942 |
8,990 |
6,353 |
27.3 |
bash |
| 10 |
no-host |
configure.cpython |
14,979 |
9,174 |
6,217 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
28,760 |
17,594 |
13,028 |
27.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,231 |
9,065 |
6,433 |
27.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,253 |
9,063 |
6,330 |
27.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,804 |
1,652 |
1,187 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,726 |
1,611 |
1,134 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,647 |
2,217 |
1,638 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,849 |
1,664 |
1,223 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,802 |
1,586 |
1,252 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
34 |
14 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
31 |
11 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
202 |
151 |
54 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
38 |
12 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
34 |
14 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,933 |
8,852 |
5,558 |
30.1 |
bash |
| 11 |
no-host |
configure.util-linux |
14,806 |
8,876 |
6,416 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
31,396 |
20,955 |
11,520 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,545 |
8,615 |
6,128 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,248 |
8,639 |
5,822 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,807 |
1,090 |
727 |
24.5 |
bash |
| 14 |
no-host |
configure.yash |
1,766 |
1,022 |
746 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,457 |
1,480 |
1,019 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,843 |
1,075 |
768 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,812 |
1,062 |
754 |
24.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
36 |
19 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,544 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,084 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,772 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,163 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,090 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
107,384 |
0 |
0 |
0 |
8 |
0 |
1,990 |
47 |
bash |
| 9 |
no-host |
bin-true |
66,441 |
0 |
0 |
0 |
8 |
0 |
1,990 |
44 |
dash |
| 17 |
no-host |
bin-true |
768,467 |
0 |
0 |
0 |
8 |
0 |
2,000 |
388 |
osh-cpython |
| 25 |
no-host |
bin-true |
124,236 |
0 |
0 |
0 |
16 |
0 |
1,992 |
51 |
osh-native |
| 33 |
no-host |
bin-true |
124,207 |
0 |
0 |
0 |
16 |
0 |
1,993 |
76 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,226,108 |
0 |
0 |
0 |
32,928 |
0 |
14,547 |
1,095 |
bash |
| 10 |
no-host |
configure.cpython |
2,245,399 |
0 |
0 |
0 |
32,992 |
0 |
14,715 |
1,023 |
dash |
| 18 |
no-host |
configure.cpython |
6,248,347 |
1 |
0 |
0 |
27,512 |
0 |
13,284 |
1,217 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,214,446 |
0 |
0 |
0 |
27,520 |
0 |
13,243 |
1,026 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,209,821 |
0 |
0 |
0 |
27,520 |
0 |
13,234 |
900 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
409,816 |
0 |
0 |
0 |
5,120 |
0 |
1,960 |
169 |
bash |
| 12 |
no-host |
configure.ocaml |
390,844 |
0 |
0 |
0 |
5,112 |
0 |
1,889 |
163 |
dash |
| 20 |
no-host |
configure.ocaml |
647,793 |
0 |
0 |
0 |
5,112 |
0 |
1,867 |
176 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,096 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
141 |
osh-native |
| 36 |
no-host |
configure.ocaml |
413,008 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
142 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,532 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
24,123 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,982 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,894 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,093,889 |
0 |
0 |
0 |
42,400 |
0 |
18,547 |
987 |
bash |
| 11 |
no-host |
configure.util-linux |
2,261,989 |
0 |
0 |
0 |
42,584 |
0 |
17,440 |
1,161 |
dash |
| 19 |
no-host |
configure.util-linux |
5,390,850 |
7 |
0 |
0 |
39,128 |
0 |
16,961 |
1,183 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,997,036 |
0 |
0 |
0 |
39,128 |
0 |
17,126 |
901 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,988,832 |
2 |
0 |
0 |
39,136 |
0 |
17,039 |
1,035 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,721 |
0 |
0 |
0 |
4,120 |
0 |
870 |
88 |
bash |
| 14 |
no-host |
configure.yash |
244,682 |
0 |
0 |
0 |
3,720 |
0 |
868 |
104 |
dash |
| 22 |
no-host |
configure.yash |
389,284 |
0 |
0 |
0 |
3,728 |
0 |
853 |
105 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,761 |
0 |
0 |
0 |
3,736 |
0 |
850 |
85 |
osh-native |
| 38 |
no-host |
configure.yash |
258,031 |
0 |
0 |
0 |
3,736 |
0 |
846 |
87 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,938 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
| 24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
334 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host