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.31 |
1.20 |
| bin-true |
no-host |
645 |
446 |
849 |
829 |
659 |
1.32 |
1.02 |
| configure.cpython |
no-host |
14,187 |
14,403 |
14,169 |
14,092 |
13,528 |
1.00 |
0.95 |
| configure.ocaml |
no-host |
3,765 |
3,710 |
3,844 |
3,790 |
3,732 |
1.02 |
0.99 |
| configure.tcc |
no-host |
47 |
42 |
49 |
48 |
44 |
1.04 |
0.93 |
| configure.util-linux |
no-host |
12,814 |
13,620 |
13,085 |
13,033 |
12,626 |
1.02 |
0.99 |
| configure.yash |
no-host |
1,727 |
1,701 |
1,760 |
1,753 |
1,702 |
1.02 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.32 |
0.96 |
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,367 |
1,158 |
3,305 |
3,451 |
2,844 |
1.40 |
1.20 |
| bin-true |
no-host |
101,464 |
49,361 |
135,279 |
137,347 |
112,057 |
1.33 |
1.10 |
| configure.cpython |
no-host |
1,629,064 |
1,636,506 |
1,578,903 |
1,599,642 |
1,514,989 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,004 |
280,793 |
306,716 |
306,505 |
300,223 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,233 |
4,217 |
5,601 |
5,640 |
5,117 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,537,420 |
1,700,696 |
1,503,814 |
1,522,572 |
1,480,832 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,293 |
159,530 |
176,154 |
176,838 |
172,803 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
92 |
393 |
398 |
183 |
2.55 |
1.19 |
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.6 |
3,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
849 |
1 |
2 |
3.5 |
8.9 |
151,904 |
10,764 |
2,978 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,169 |
2 |
71 |
14.8 |
34.7 |
1,750,831 |
35,399 |
28,954 |
93,081 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,085 |
3 |
71 |
21.6 |
39.7 |
2,705,397 |
37,471 |
66,342 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,844 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,656 |
6,571 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.2 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,760 |
1 |
2 |
2.7 |
33.4 |
143,480 |
11,508 |
6,625 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,238 |
65,801 |
42,008 |
4,980 |
54,600 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,918 |
3,918 |
0 |
725 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
829 |
1 |
2 |
3.5 |
9.3 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,092 |
1 |
73 |
14.9 |
34.5 |
1,750,830 |
36,458 |
28,959 |
93,080 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,033 |
3 |
70 |
21.6 |
39.9 |
2,705,397 |
37,477 |
66,348 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,790 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.3 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,753 |
1 |
2 |
2.7 |
33.3 |
143,480 |
11,512 |
6,629 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
117,238 |
65,805 |
42,012 |
4,980 |
54,600 |
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 |
12 |
4 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
645 |
318 |
368 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
446 |
273 |
176 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
849 |
296 |
571 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
829 |
318 |
529 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
659 |
344 |
333 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,187 |
7,745 |
6,839 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,403 |
7,962 |
6,860 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
14,169 |
7,605 |
6,849 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,092 |
7,467 |
6,919 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,528 |
7,463 |
6,311 |
34.3 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,765 |
1,523 |
1,284 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,710 |
1,544 |
1,191 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,844 |
1,530 |
1,355 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,790 |
1,509 |
1,322 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,732 |
1,552 |
1,212 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
18 |
29 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
22 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
27 |
23 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
26 |
23 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
24 |
20 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,814 |
6,743 |
6,547 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,620 |
6,722 |
7,399 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
13,085 |
6,414 |
6,903 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,033 |
6,375 |
6,885 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,626 |
6,476 |
6,367 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,727 |
961 |
772 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,701 |
937 |
766 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,760 |
1,010 |
753 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,753 |
945 |
809 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,702 |
971 |
733 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.7 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
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,367 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,158 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,305 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,451 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,844 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,464 |
0 |
0 |
0 |
8 |
0 |
2,001 |
98 |
bash |
| 9 |
no-host |
bin-true |
49,361 |
0 |
0 |
0 |
8 |
0 |
2,995 |
62 |
dash |
| 17 |
no-host |
bin-true |
135,279 |
0 |
0 |
0 |
16 |
0 |
1,998 |
86 |
osh-native |
| 25 |
no-host |
bin-true |
137,347 |
0 |
0 |
0 |
16 |
0 |
1,996 |
64 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,057 |
0 |
0 |
0 |
8 |
0 |
1,998 |
106 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,064 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
1,000 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,506 |
0 |
0 |
0 |
25,272 |
0 |
14,141 |
1,031 |
dash |
| 18 |
no-host |
configure.cpython |
1,578,903 |
0 |
0 |
0 |
25,280 |
0 |
11,283 |
875 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,599,642 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
800 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,514,989 |
0 |
0 |
0 |
25,272 |
0 |
11,295 |
862 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,004 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
184 |
bash |
| 12 |
no-host |
configure.ocaml |
280,793 |
0 |
0 |
0 |
4,432 |
0 |
2,083 |
205 |
dash |
| 20 |
no-host |
configure.ocaml |
306,716 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
209 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,505 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
198 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,223 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
209 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,233 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,217 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,601 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,640 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,117 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,420 |
1 |
0 |
0 |
35,936 |
0 |
19,038 |
1,092 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,696 |
1 |
0 |
0 |
35,936 |
0 |
17,099 |
1,285 |
dash |
| 19 |
no-host |
configure.util-linux |
1,503,814 |
0 |
0 |
0 |
35,952 |
0 |
16,154 |
918 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,572 |
0 |
0 |
0 |
35,944 |
0 |
16,209 |
954 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,832 |
3 |
0 |
0 |
35,936 |
0 |
16,184 |
932 |
osh-static |
| 6 |
no-host |
configure.yash |
173,293 |
0 |
0 |
0 |
3,616 |
0 |
880 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,530 |
0 |
0 |
0 |
3,624 |
0 |
1,000 |
99 |
dash |
| 22 |
no-host |
configure.yash |
176,154 |
0 |
0 |
0 |
3,624 |
0 |
857 |
107 |
osh-native |
| 30 |
no-host |
configure.yash |
176,838 |
0 |
0 |
0 |
3,624 |
0 |
858 |
106 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,803 |
0 |
0 |
0 |
3,616 |
0 |
858 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
92 |
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 |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host