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 |
16 |
9 |
545 |
22 |
21 |
33.87 |
1.36 |
| bin-true |
no-host |
613 |
454 |
2,454 |
805 |
801 |
4.00 |
1.31 |
| configure.cpython |
no-host |
13,968 |
13,986 |
29,510 |
14,684 |
14,737 |
2.11 |
1.05 |
| configure.ocaml |
no-host |
3,729 |
3,643 |
4,688 |
3,742 |
3,740 |
1.26 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
220 |
49 |
48 |
4.77 |
1.05 |
| configure.util-linux |
no-host |
12,743 |
13,369 |
32,625 |
13,618 |
13,732 |
2.56 |
1.07 |
| configure.yash |
no-host |
1,748 |
1,654 |
2,459 |
1,730 |
1,712 |
1.41 |
0.99 |
| hello-world |
no-host |
1 |
1 |
62 |
3 |
3 |
49.88 |
2.34 |
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,425 |
1,161 |
24,708 |
3,507 |
3,379 |
10.19 |
1.45 |
| bin-true |
no-host |
98,990 |
49,376 |
841,397 |
138,294 |
137,208 |
8.50 |
1.40 |
| configure.cpython |
no-host |
1,615,764 |
1,645,956 |
5,966,177 |
1,817,197 |
1,787,771 |
3.69 |
1.12 |
| configure.ocaml |
no-host |
299,081 |
280,815 |
558,739 |
317,320 |
314,905 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,222 |
4,207 |
23,907 |
5,924 |
5,898 |
4.58 |
1.13 |
| configure.util-linux |
no-host |
1,537,280 |
1,699,461 |
4,979,366 |
1,721,468 |
1,712,100 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,392 |
159,521 |
316,247 |
179,166 |
178,798 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
86 |
3,867 |
388 |
379 |
25.44 |
2.55 |
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.9 |
3,827 |
3,827 |
0 |
704 |
1,881 |
1,242 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
1 |
2 |
2.6 |
8.8 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,684 |
1 |
68 |
15.2 |
34.5 |
1,782,990 |
46,102 |
25,357 |
91,622 |
885,112 |
806,256 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,618 |
3 |
61 |
21.4 |
39.7 |
2,707,123 |
126,355 |
66,587 |
113,463 |
1,294,568 |
1,299,092 |
32,539 |
41 |
133,174 |
1 |
| configure.ocaml |
no-host |
3,742 |
1 |
2 |
2.7 |
28.6 |
149,874 |
12,477 |
6,520 |
7,819 |
70,840 |
71,215 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.1 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,730 |
1 |
2 |
2.6 |
33.4 |
140,018 |
8,081 |
6,715 |
6,526 |
68,348 |
65,144 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,369 |
64,439 |
42,640 |
4,562 |
54,472 |
57,335 |
277 |
3 |
85,280 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,826 |
3,826 |
0 |
705 |
1,881 |
1,240 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
1 |
2 |
2.6 |
8.3 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,737 |
1 |
65 |
15.2 |
34.7 |
1,782,989 |
46,088 |
25,353 |
91,623 |
885,112 |
806,254 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,732 |
3 |
60 |
21.4 |
39.5 |
2,707,123 |
126,348 |
66,580 |
113,465 |
1,294,568 |
1,299,090 |
32,539 |
41 |
133,160 |
1 |
| configure.ocaml |
no-host |
3,740 |
1 |
2 |
2.7 |
28.7 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.2 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,712 |
1 |
2 |
2.6 |
33.3 |
140,018 |
8,070 |
6,704 |
6,528 |
68,348 |
65,142 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.2 |
116,368 |
64,434 |
42,635 |
4,563 |
54,472 |
57,333 |
277 |
3 |
85,270 |
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 |
9 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
545 |
494 |
55 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
8 |
13 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
613 |
302 |
347 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
454 |
278 |
181 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,454 |
905 |
1,819 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
805 |
314 |
508 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
801 |
307 |
510 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,968 |
7,537 |
6,805 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,986 |
7,511 |
6,869 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,510 |
16,096 |
15,387 |
34.7 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,684 |
7,357 |
7,622 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,737 |
7,332 |
7,533 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,729 |
1,483 |
1,283 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,643 |
1,468 |
1,198 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,688 |
2,082 |
1,832 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,742 |
1,450 |
1,333 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,740 |
1,461 |
1,317 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
142 |
82 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
22 |
27 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,743 |
6,576 |
6,609 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,369 |
6,439 |
7,411 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
32,625 |
20,416 |
13,290 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,618 |
6,313 |
7,531 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,732 |
6,318 |
7,486 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,748 |
935 |
821 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,654 |
962 |
691 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,459 |
1,446 |
1,055 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,730 |
929 |
803 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,712 |
944 |
771 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
62 |
42 |
20 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
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,425 |
0 |
0 |
0 |
8 |
0 |
41 |
3 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,708 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,507 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,379 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
98,990 |
0 |
0 |
0 |
8 |
0 |
1,985 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,376 |
0 |
0 |
0 |
8 |
0 |
2,976 |
58 |
dash |
| 17 |
no-host |
bin-true |
841,397 |
0 |
0 |
0 |
8 |
0 |
1,997 |
136 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,294 |
0 |
0 |
0 |
16 |
0 |
1,988 |
69 |
osh-native |
| 33 |
no-host |
bin-true |
137,208 |
0 |
0 |
0 |
16 |
0 |
1,981 |
80 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,615,764 |
0 |
0 |
0 |
25,272 |
0 |
14,037 |
1,019 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,956 |
0 |
0 |
0 |
25,272 |
0 |
14,073 |
1,054 |
dash |
| 18 |
no-host |
configure.cpython |
5,966,177 |
0 |
0 |
0 |
25,272 |
0 |
12,873 |
952 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,817,197 |
0 |
0 |
0 |
25,280 |
0 |
12,877 |
1,091 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,787,771 |
0 |
0 |
0 |
25,280 |
0 |
12,855 |
1,030 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,081 |
0 |
0 |
0 |
4,432 |
0 |
2,012 |
193 |
bash |
| 12 |
no-host |
configure.ocaml |
280,815 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
210 |
dash |
| 20 |
no-host |
configure.ocaml |
558,739 |
0 |
0 |
0 |
4,432 |
0 |
1,914 |
187 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,320 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
205 |
osh-native |
| 36 |
no-host |
configure.ocaml |
314,905 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
213 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,222 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,907 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,924 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,898 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,537,280 |
0 |
0 |
0 |
35,944 |
0 |
18,963 |
1,126 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,461 |
3 |
0 |
0 |
35,936 |
0 |
17,070 |
1,206 |
dash |
| 19 |
no-host |
configure.util-linux |
4,979,366 |
0 |
0 |
0 |
35,952 |
0 |
17,535 |
820 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,721,468 |
0 |
0 |
0 |
35,952 |
0 |
17,460 |
1,025 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,100 |
0 |
0 |
0 |
35,952 |
0 |
17,468 |
1,123 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,392 |
0 |
0 |
0 |
3,616 |
0 |
875 |
87 |
bash |
| 14 |
no-host |
configure.yash |
159,521 |
0 |
0 |
0 |
3,616 |
0 |
999 |
93 |
dash |
| 22 |
no-host |
configure.yash |
316,247 |
0 |
0 |
0 |
3,616 |
0 |
864 |
109 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,166 |
0 |
0 |
0 |
3,624 |
0 |
857 |
91 |
osh-native |
| 38 |
no-host |
configure.yash |
178,798 |
0 |
0 |
0 |
3,632 |
0 |
858 |
104 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,867 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
388 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
379 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host