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 |
15 |
8 |
386 |
18 |
17 |
24.97 |
1.17 |
| bin-true |
no-host |
545 |
397 |
1,893 |
770 |
617 |
3.47 |
1.41 |
| configure.cpython |
no-host |
11,910 |
12,407 |
23,307 |
12,171 |
14,479 |
1.96 |
1.02 |
| configure.ocaml |
no-host |
3,239 |
3,143 |
4,067 |
4,330 |
4,231 |
1.26 |
1.34 |
| configure.tcc |
no-host |
39 |
32 |
213 |
50 |
52 |
5.50 |
1.30 |
| configure.util-linux |
no-host |
11,291 |
12,494 |
25,920 |
10,924 |
12,489 |
2.30 |
0.97 |
| configure.yash |
no-host |
1,371 |
1,344 |
2,119 |
2,219 |
2,176 |
1.55 |
1.62 |
| hello-world |
no-host |
1 |
1 |
43 |
2 |
2 |
35.47 |
2.00 |
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,545 |
1,118 |
25,190 |
3,179 |
3,110 |
9.90 |
1.25 |
| bin-true |
no-host |
107,328 |
66,433 |
808,411 |
130,978 |
129,990 |
7.53 |
1.22 |
| configure.cpython |
no-host |
2,230,990 |
2,236,603 |
6,337,700 |
2,242,469 |
2,230,251 |
2.84 |
1.01 |
| configure.ocaml |
no-host |
410,663 |
391,852 |
655,112 |
414,715 |
414,504 |
1.60 |
1.01 |
| configure.tcc |
no-host |
6,542 |
5,504 |
24,497 |
6,995 |
6,945 |
3.74 |
1.07 |
| configure.util-linux |
no-host |
2,099,497 |
2,258,557 |
5,482,619 |
2,007,463 |
2,005,014 |
2.61 |
0.96 |
| configure.yash |
no-host |
257,098 |
244,972 |
391,820 |
258,911 |
258,265 |
1.52 |
1.01 |
| hello-world |
no-host |
153 |
81 |
3,977 |
346 |
343 |
25.99 |
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 |
2 |
0 |
0 |
0.3 |
6.4 |
3,817 |
3,817 |
0 |
702 |
1,878 |
1,237 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
770 |
1 |
2 |
2.6 |
8.3 |
156,784 |
15,421 |
2,908 |
8,754 |
77,345 |
70,685 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,171 |
2 |
65 |
15.5 |
27.5 |
1,785,025 |
30,567 |
28,534 |
91,507 |
886,582 |
806,936 |
25,736 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,924 |
3 |
59 |
21.6 |
30.3 |
2,709,224 |
53,768 |
65,732 |
114,374 |
1,295,044 |
1,299,806 |
32,241 |
41 |
131,464 |
1 |
| configure.ocaml |
no-host |
4,330 |
1 |
2 |
2.6 |
20.7 |
149,871 |
11,186 |
5,229 |
7,735 |
70,882 |
71,254 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.5 |
30,587 |
30,587 |
0 |
1,544 |
14,644 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
2,219 |
1 |
3 |
2.6 |
24.5 |
139,893 |
8,052 |
6,707 |
6,399 |
68,347 |
65,147 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
2.8 |
9.2 |
116,347 |
64,424 |
42,632 |
4,545 |
54,469 |
57,333 |
277 |
3 |
85,264 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
6.0 |
3,816 |
3,816 |
0 |
703 |
1,878 |
1,235 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
617 |
1 |
1 |
2.6 |
7.9 |
156,783 |
15,416 |
2,903 |
8,755 |
77,345 |
70,683 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,479 |
2 |
63 |
15.5 |
27.5 |
1,785,024 |
30,553 |
28,528 |
91,508 |
886,582 |
806,934 |
25,736 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,489 |
4 |
59 |
21.6 |
30.3 |
2,709,224 |
53,743 |
65,725 |
114,376 |
1,295,044 |
1,299,804 |
32,241 |
41 |
131,450 |
1 |
| configure.ocaml |
no-host |
4,231 |
1 |
2 |
2.6 |
20.8 |
149,871 |
11,180 |
5,223 |
7,737 |
70,882 |
71,252 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
52 |
0 |
0 |
1.3 |
19.5 |
30,587 |
30,587 |
0 |
1,546 |
14,644 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
2,176 |
1 |
2 |
2.6 |
24.5 |
139,893 |
8,041 |
6,696 |
6,401 |
68,347 |
65,145 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
17 |
0 |
1 |
2.8 |
8.6 |
116,346 |
64,419 |
42,627 |
4,546 |
54,469 |
57,331 |
277 |
3 |
85,254 |
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 |
15 |
10 |
6 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
8 |
5 |
3 |
3.6 |
dash |
| 23 |
no-host |
abuild-print-help |
386 |
315 |
74 |
23.1 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
18 |
11 |
7 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
17 |
13 |
5 |
8.6 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
545 |
412 |
151 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
397 |
296 |
100 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
1,893 |
1,163 |
954 |
18.8 |
osh-cpython |
| 25 |
no-host |
bin-true |
770 |
514 |
265 |
8.3 |
osh-native |
| 33 |
no-host |
bin-true |
617 |
453 |
172 |
7.9 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
11,910 |
7,802 |
4,408 |
27.5 |
bash |
| 10 |
no-host |
configure.cpython |
12,407 |
7,963 |
4,694 |
27.6 |
dash |
| 18 |
no-host |
configure.cpython |
23,307 |
14,607 |
10,315 |
27.6 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
12,171 |
7,642 |
4,769 |
27.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,479 |
9,002 |
5,776 |
27.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,239 |
1,402 |
862 |
20.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,143 |
1,328 |
823 |
20.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,067 |
2,027 |
1,232 |
20.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
4,330 |
1,934 |
1,451 |
20.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
4,231 |
1,872 |
1,411 |
20.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
39 |
18 |
21 |
19.6 |
bash |
| 13 |
no-host |
configure.tcc |
32 |
26 |
6 |
19.6 |
dash |
| 21 |
no-host |
configure.tcc |
213 |
162 |
55 |
19.5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
36 |
15 |
19.5 |
osh-native |
| 37 |
no-host |
configure.tcc |
52 |
31 |
22 |
19.5 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
11,291 |
7,378 |
4,237 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
12,494 |
8,089 |
4,771 |
30.4 |
dash |
| 19 |
no-host |
configure.util-linux |
25,920 |
17,341 |
9,506 |
30.4 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
10,924 |
7,136 |
3,922 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
12,489 |
7,755 |
4,867 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,371 |
798 |
579 |
24.6 |
bash |
| 14 |
no-host |
configure.yash |
1,344 |
823 |
522 |
24.5 |
dash |
| 22 |
no-host |
configure.yash |
2,119 |
1,332 |
828 |
24.6 |
osh-cpython |
| 30 |
no-host |
configure.yash |
2,219 |
1,251 |
974 |
24.5 |
osh-native |
| 38 |
no-host |
configure.yash |
2,176 |
1,249 |
933 |
24.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.0 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.7 |
dash |
| 16 |
no-host |
hello-world |
43 |
38 |
4 |
18.6 |
osh-cpython |
| 24 |
no-host |
hello-world |
2 |
2 |
0 |
6.4 |
osh-native |
| 32 |
no-host |
hello-world |
2 |
0 |
2 |
6.0 |
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,545 |
2 |
0 |
72 |
16 |
0 |
42 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
| 23 |
no-host |
abuild-print-help |
25,190 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,179 |
0 |
0 |
0 |
16 |
0 |
32 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,110 |
0 |
0 |
0 |
16 |
0 |
32 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
107,328 |
1 |
0 |
48 |
8 |
0 |
1,997 |
46 |
bash |
| 9 |
no-host |
bin-true |
66,433 |
0 |
0 |
0 |
8 |
0 |
2,001 |
43 |
dash |
| 17 |
no-host |
bin-true |
808,411 |
0 |
0 |
0 |
8 |
0 |
2,006 |
188 |
osh-cpython |
| 25 |
no-host |
bin-true |
130,978 |
0 |
0 |
0 |
16 |
0 |
2,000 |
74 |
osh-native |
| 33 |
no-host |
bin-true |
129,990 |
0 |
0 |
0 |
16 |
0 |
1,999 |
59 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,230,990 |
20 |
0 |
1,296 |
32,928 |
0 |
17,579 |
4,907 |
bash |
| 10 |
no-host |
configure.cpython |
2,236,603 |
2 |
0 |
0 |
32,992 |
0 |
15,028 |
2,347 |
dash |
| 18 |
no-host |
configure.cpython |
6,337,700 |
0 |
0 |
0 |
27,512 |
0 |
16,195 |
5,182 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,242,469 |
0 |
0 |
0 |
27,520 |
0 |
13,282 |
1,393 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,230,251 |
1 |
0 |
0 |
27,520 |
0 |
13,217 |
1,328 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,663 |
3 |
0 |
160 |
5,120 |
0 |
1,948 |
242 |
bash |
| 12 |
no-host |
configure.ocaml |
391,852 |
0 |
0 |
0 |
5,112 |
0 |
1,949 |
205 |
dash |
| 20 |
no-host |
configure.ocaml |
655,112 |
0 |
0 |
0 |
5,112 |
0 |
1,871 |
236 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
414,715 |
0 |
0 |
0 |
5,120 |
0 |
1,902 |
300 |
osh-native |
| 36 |
no-host |
configure.ocaml |
414,504 |
0 |
0 |
0 |
5,120 |
0 |
1,902 |
294 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,542 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
5,504 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,497 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,995 |
0 |
0 |
0 |
104 |
0 |
45 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,945 |
0 |
0 |
0 |
104 |
0 |
47 |
6 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,099,497 |
14 |
0 |
2,696 |
42,400 |
0 |
18,314 |
1,515 |
bash |
| 11 |
no-host |
configure.util-linux |
2,258,557 |
0 |
0 |
0 |
42,584 |
0 |
17,143 |
1,631 |
dash |
| 19 |
no-host |
configure.util-linux |
5,482,619 |
0 |
0 |
0 |
39,136 |
0 |
17,005 |
1,919 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,007,463 |
0 |
0 |
0 |
39,120 |
0 |
17,044 |
1,181 |
osh-native |
| 35 |
no-host |
configure.util-linux |
2,005,014 |
0 |
0 |
0 |
39,136 |
0 |
16,890 |
1,210 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
257,098 |
1 |
0 |
144 |
4,120 |
0 |
872 |
75 |
bash |
| 14 |
no-host |
configure.yash |
244,972 |
0 |
0 |
0 |
3,720 |
0 |
868 |
65 |
dash |
| 22 |
no-host |
configure.yash |
391,820 |
0 |
0 |
0 |
3,728 |
0 |
855 |
108 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,911 |
0 |
0 |
0 |
3,736 |
0 |
850 |
88 |
osh-native |
| 38 |
no-host |
configure.yash |
258,265 |
0 |
0 |
0 |
3,736 |
0 |
850 |
70 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,977 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
| 24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host