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 |
19 |
1.28 |
1.18 |
| bin-true |
no-host |
626 |
452 |
824 |
820 |
669 |
1.32 |
1.07 |
| configure.cpython |
no-host |
14,015 |
14,124 |
13,932 |
13,893 |
13,770 |
0.99 |
0.98 |
| configure.ocaml |
no-host |
3,744 |
3,683 |
3,752 |
3,925 |
3,779 |
1.00 |
1.01 |
| configure.tcc |
no-host |
48 |
41 |
47 |
49 |
45 |
0.99 |
0.93 |
| configure.util-linux |
no-host |
12,999 |
13,580 |
12,837 |
13,059 |
12,777 |
0.99 |
0.98 |
| configure.yash |
no-host |
1,770 |
1,685 |
1,739 |
1,772 |
1,742 |
0.98 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.10 |
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,390 |
1,200 |
3,335 |
3,422 |
2,837 |
1.40 |
1.19 |
| bin-true |
no-host |
99,478 |
49,453 |
134,235 |
136,057 |
111,073 |
1.35 |
1.12 |
| configure.cpython |
no-host |
1,626,446 |
1,636,177 |
1,578,058 |
1,604,917 |
1,518,735 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,018 |
280,677 |
306,211 |
307,496 |
300,019 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,203 |
4,192 |
5,579 |
5,646 |
5,124 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,530,999 |
1,694,221 |
1,505,403 |
1,514,222 |
1,478,700 |
0.98 |
0.97 |
| configure.yash |
no-host |
173,494 |
159,569 |
176,351 |
176,964 |
172,779 |
1.02 |
1.00 |
| hello-world |
no-host |
149 |
86 |
391 |
396 |
184 |
2.62 |
1.23 |
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.4 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
824 |
1 |
2 |
3.5 |
8.8 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,932 |
1 |
67 |
14.8 |
34.5 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,837 |
3 |
66 |
21.6 |
39.6 |
2,705,398 |
37,471 |
66,342 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,752 |
1 |
2 |
2.8 |
28.6 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,739 |
1 |
2 |
2.7 |
33.4 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.8 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
820 |
1 |
2 |
3.5 |
9.2 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,893 |
1 |
66 |
14.9 |
34.4 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,059 |
3 |
68 |
21.6 |
39.7 |
2,705,398 |
37,477 |
66,348 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,925 |
1 |
2 |
2.8 |
28.8 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,772 |
1 |
2 |
2.7 |
33.3 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
117,239 |
65,805 |
42,012 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,024 |
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 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
13 |
9 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
13 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
10 |
10 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
626 |
315 |
351 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
452 |
280 |
179 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
824 |
309 |
533 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
820 |
316 |
521 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
669 |
332 |
355 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,015 |
7,671 |
6,745 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,124 |
7,719 |
6,818 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,932 |
7,355 |
6,853 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,893 |
7,381 |
6,812 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,770 |
7,515 |
6,506 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,744 |
1,485 |
1,301 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,683 |
1,519 |
1,189 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,752 |
1,498 |
1,294 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,925 |
1,513 |
1,352 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,779 |
1,515 |
1,296 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
26 |
22 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
17 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
22 |
27 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
22 |
23 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,999 |
6,693 |
6,789 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,580 |
6,661 |
7,418 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
12,837 |
6,366 |
6,708 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,059 |
6,554 |
6,743 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,777 |
6,453 |
6,559 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,770 |
950 |
828 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,685 |
937 |
750 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,739 |
985 |
757 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,772 |
974 |
801 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,742 |
952 |
792 |
33.3 |
osh-static |
| 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 |
3 |
0 |
3 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.8 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
1 |
3.4 |
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,390 |
0 |
0 |
0 |
8 |
0 |
41 |
3 |
bash |
| 15 |
no-host |
abuild-print-help |
1,200 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,335 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,422 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,837 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,478 |
0 |
0 |
0 |
8 |
0 |
1,999 |
53 |
bash |
| 9 |
no-host |
bin-true |
49,453 |
0 |
0 |
0 |
8 |
0 |
2,992 |
54 |
dash |
| 17 |
no-host |
bin-true |
134,235 |
0 |
0 |
0 |
16 |
0 |
1,999 |
74 |
osh-native |
| 25 |
no-host |
bin-true |
136,057 |
0 |
0 |
0 |
16 |
0 |
1,998 |
79 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,073 |
0 |
0 |
0 |
8 |
0 |
1,997 |
64 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,446 |
0 |
0 |
0 |
25,272 |
0 |
14,094 |
1,030 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,177 |
0 |
0 |
0 |
25,272 |
0 |
14,126 |
1,025 |
dash |
| 18 |
no-host |
configure.cpython |
1,578,058 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
843 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,917 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
822 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,735 |
1 |
0 |
0 |
25,272 |
0 |
11,299 |
921 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,018 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
190 |
bash |
| 12 |
no-host |
configure.ocaml |
280,677 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
177 |
dash |
| 20 |
no-host |
configure.ocaml |
306,211 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,496 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
203 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,019 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
222 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,203 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,192 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,579 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,646 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,124 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,530,999 |
2 |
0 |
0 |
35,936 |
0 |
18,941 |
1,127 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,221 |
2 |
0 |
0 |
35,936 |
0 |
17,124 |
1,268 |
dash |
| 19 |
no-host |
configure.util-linux |
1,505,403 |
2 |
0 |
0 |
35,952 |
0 |
16,207 |
932 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,222 |
1 |
0 |
0 |
35,944 |
0 |
16,141 |
909 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,478,700 |
3 |
0 |
0 |
35,936 |
0 |
16,125 |
909 |
osh-static |
| 6 |
no-host |
configure.yash |
173,494 |
0 |
0 |
0 |
3,616 |
0 |
878 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,569 |
0 |
0 |
0 |
3,616 |
0 |
999 |
92 |
dash |
| 22 |
no-host |
configure.yash |
176,351 |
0 |
0 |
0 |
3,624 |
0 |
858 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
176,964 |
0 |
0 |
0 |
3,624 |
0 |
858 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,779 |
0 |
0 |
0 |
3,616 |
0 |
859 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
149 |
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 |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host