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-native |
osh-nosouffle |
osh-static |
osh bash ratio |
static bash ratio |
| abuild-print-help |
no-host |
16 |
9 |
21 |
22 |
18 |
1.38 |
1.17 |
| bin-true |
no-host |
639 |
441 |
802 |
807 |
662 |
1.26 |
1.04 |
| configure.cpython |
no-host |
13,423 |
13,503 |
13,162 |
13,525 |
13,134 |
0.98 |
0.98 |
| configure.ocaml |
no-host |
3,592 |
3,586 |
3,672 |
3,729 |
3,722 |
1.02 |
1.04 |
| configure.tcc |
no-host |
45 |
41 |
46 |
46 |
43 |
1.03 |
0.96 |
| configure.util-linux |
no-host |
12,231 |
13,033 |
12,449 |
12,690 |
12,442 |
1.02 |
1.02 |
| configure.yash |
no-host |
1,643 |
1,609 |
1,677 |
1,705 |
1,681 |
1.02 |
1.02 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.34 |
1.03 |
Minor Page Faults
| workload |
host name |
bash |
dash |
osh-native |
osh-nosouffle |
osh-static |
osh bash ratio |
static bash ratio |
| abuild-print-help |
no-host |
2,400 |
1,189 |
3,312 |
3,408 |
2,853 |
1.38 |
1.19 |
| bin-true |
no-host |
101,536 |
49,401 |
133,021 |
133,330 |
111,678 |
1.31 |
1.10 |
| configure.cpython |
no-host |
1,621,151 |
1,646,100 |
1,580,608 |
1,610,472 |
1,517,979 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
298,899 |
280,721 |
306,737 |
306,671 |
300,331 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,202 |
4,199 |
5,600 |
5,671 |
5,129 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,545,096 |
1,698,936 |
1,512,379 |
1,522,461 |
1,478,378 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,313 |
159,602 |
176,251 |
176,702 |
172,817 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
85 |
393 |
400 |
182 |
2.55 |
1.18 |
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.7 |
3,915 |
3,915 |
0 |
723 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
802 |
1 |
2 |
3.5 |
8.9 |
151,900 |
10,763 |
2,977 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,162 |
1 |
64 |
14.8 |
34.5 |
1,750,827 |
35,398 |
28,953 |
93,078 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,449 |
4 |
67 |
21.6 |
39.6 |
2,705,393 |
37,470 |
66,341 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,682 |
1 |
| configure.ocaml |
no-host |
3,672 |
1 |
2 |
2.8 |
28.9 |
149,700 |
12,655 |
6,570 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.2 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,677 |
1 |
2 |
2.7 |
33.4 |
143,476 |
11,507 |
6,624 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
117,234 |
65,800 |
42,007 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,014 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,914 |
3,914 |
0 |
722 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
807 |
1 |
2 |
3.5 |
9.2 |
151,900 |
10,767 |
2,981 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,525 |
1 |
64 |
14.8 |
34.5 |
1,750,826 |
36,457 |
28,958 |
93,077 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,690 |
3 |
65 |
21.6 |
39.7 |
2,705,393 |
37,476 |
66,347 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,694 |
1 |
| configure.ocaml |
no-host |
3,729 |
1 |
2 |
2.8 |
28.7 |
149,700 |
12,660 |
6,575 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.1 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,705 |
1 |
2 |
2.7 |
33.2 |
143,476 |
11,511 |
6,628 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,234 |
65,804 |
42,011 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,022 |
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 |
16 |
8 |
8 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
639 |
321 |
357 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
441 |
281 |
165 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
802 |
301 |
518 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
807 |
315 |
508 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
662 |
328 |
352 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,423 |
7,353 |
6,452 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,503 |
7,466 |
6,439 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,162 |
6,922 |
6,506 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,525 |
7,150 |
6,669 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,134 |
7,240 |
6,135 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,592 |
1,412 |
1,220 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,586 |
1,459 |
1,151 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,672 |
1,468 |
1,243 |
28.9 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,729 |
1,510 |
1,263 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,722 |
1,495 |
1,260 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
24 |
22 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
26 |
15 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
21 |
26 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
20 |
27 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
27 |
17 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,231 |
6,407 |
6,289 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,033 |
6,388 |
7,137 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,449 |
6,070 |
6,603 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,690 |
6,295 |
6,622 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,442 |
6,242 |
6,422 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,643 |
923 |
728 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,609 |
919 |
692 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,677 |
954 |
726 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,705 |
925 |
782 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,681 |
934 |
749 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
osh-static |
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,400 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,189 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,312 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,408 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,853 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,536 |
0 |
0 |
0 |
8 |
0 |
2,000 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,401 |
0 |
0 |
0 |
8 |
0 |
2,994 |
51 |
dash |
| 17 |
no-host |
bin-true |
133,021 |
0 |
0 |
0 |
16 |
0 |
1,998 |
76 |
osh-native |
| 25 |
no-host |
bin-true |
133,330 |
0 |
0 |
0 |
16 |
0 |
1,998 |
62 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,678 |
0 |
0 |
0 |
8 |
0 |
1,999 |
102 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,151 |
0 |
0 |
0 |
25,272 |
0 |
14,066 |
992 |
bash |
| 10 |
no-host |
configure.cpython |
1,646,100 |
0 |
0 |
0 |
25,272 |
0 |
14,111 |
1,010 |
dash |
| 18 |
no-host |
configure.cpython |
1,580,608 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
869 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,610,472 |
0 |
0 |
0 |
25,280 |
0 |
11,320 |
862 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,517,979 |
0 |
0 |
0 |
25,272 |
0 |
11,299 |
863 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,899 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
202 |
bash |
| 12 |
no-host |
configure.ocaml |
280,721 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
262 |
dash |
| 20 |
no-host |
configure.ocaml |
306,737 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
189 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,671 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
195 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,331 |
1 |
0 |
0 |
4,432 |
0 |
2,003 |
217 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,202 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,600 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,671 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,129 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,545,096 |
0 |
0 |
0 |
35,944 |
0 |
18,963 |
1,083 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,936 |
0 |
0 |
336 |
35,936 |
0 |
17,082 |
1,187 |
dash |
| 19 |
no-host |
configure.util-linux |
1,512,379 |
1 |
0 |
0 |
35,952 |
0 |
16,218 |
910 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,461 |
0 |
0 |
0 |
35,944 |
0 |
16,141 |
1,065 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,478,378 |
4 |
0 |
0 |
35,936 |
0 |
16,136 |
951 |
osh-static |
| 6 |
no-host |
configure.yash |
173,313 |
0 |
0 |
0 |
3,616 |
0 |
878 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,602 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
96 |
dash |
| 22 |
no-host |
configure.yash |
176,251 |
0 |
0 |
0 |
3,624 |
0 |
855 |
95 |
osh-native |
| 30 |
no-host |
configure.yash |
176,702 |
0 |
0 |
0 |
3,632 |
0 |
856 |
96 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,817 |
0 |
0 |
0 |
3,624 |
0 |
858 |
97 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host