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 |
15 |
9 |
20 |
22 |
18 |
1.30 |
1.19 |
| bin-true |
no-host |
620 |
436 |
799 |
800 |
651 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,468 |
13,542 |
13,224 |
13,238 |
12,680 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,596 |
3,561 |
3,642 |
3,653 |
3,646 |
1.01 |
1.01 |
| configure.tcc |
no-host |
45 |
40 |
46 |
46 |
42 |
1.01 |
0.93 |
| configure.util-linux |
no-host |
12,280 |
12,993 |
12,275 |
12,338 |
12,000 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,660 |
1,610 |
1,669 |
1,659 |
1,657 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.05 |
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,391 |
1,187 |
3,252 |
3,427 |
2,834 |
1.36 |
1.19 |
| bin-true |
no-host |
104,417 |
49,462 |
133,324 |
132,021 |
111,030 |
1.28 |
1.06 |
| configure.cpython |
no-host |
1,619,937 |
1,636,352 |
1,590,974 |
1,606,364 |
1,519,332 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,372 |
280,886 |
306,453 |
307,787 |
299,968 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,229 |
4,213 |
5,584 |
5,683 |
5,107 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,539,003 |
1,697,466 |
1,504,350 |
1,516,860 |
1,480,408 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,312 |
159,511 |
176,727 |
177,100 |
172,773 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
85 |
396 |
401 |
185 |
2.61 |
1.22 |
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,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
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,224 |
1 |
61 |
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,275 |
4 |
62 |
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,642 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,669 |
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 |
20 |
1 |
2 |
3.0 |
9.4 |
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.9 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
800 |
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,238 |
1 |
61 |
14.9 |
34.5 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,338 |
3 |
61 |
21.6 |
39.8 |
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,653 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,659 |
1 |
2 |
2.7 |
33.4 |
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.0 |
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 |
15 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
7 |
2 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
9 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
620 |
311 |
346 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
436 |
272 |
170 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
799 |
320 |
493 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
800 |
311 |
504 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
651 |
324 |
343 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,468 |
7,398 |
6,433 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,542 |
7,543 |
6,382 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,224 |
7,081 |
6,410 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,238 |
6,972 |
6,550 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,680 |
7,001 |
5,917 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,596 |
1,457 |
1,178 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,561 |
1,475 |
1,110 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,642 |
1,439 |
1,242 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,653 |
1,421 |
1,274 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,646 |
1,486 |
1,191 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
26 |
20 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
24 |
16 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
22 |
24 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
28 |
18 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,280 |
6,514 |
6,222 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
12,993 |
6,372 |
7,103 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,275 |
6,127 |
6,368 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,338 |
6,104 |
6,459 |
39.8 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,000 |
6,089 |
6,131 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,660 |
967 |
702 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,610 |
933 |
679 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,669 |
965 |
708 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,659 |
967 |
695 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,657 |
908 |
753 |
33.4 |
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.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
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,391 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,187 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,252 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,427 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,834 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
104,417 |
0 |
0 |
0 |
8 |
0 |
1,998 |
63 |
bash |
| 9 |
no-host |
bin-true |
49,462 |
0 |
0 |
0 |
8 |
0 |
2,998 |
46 |
dash |
| 17 |
no-host |
bin-true |
133,324 |
0 |
0 |
0 |
16 |
0 |
1,996 |
83 |
osh-native |
| 25 |
no-host |
bin-true |
132,021 |
0 |
0 |
0 |
16 |
0 |
1,998 |
76 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,030 |
0 |
0 |
0 |
8 |
0 |
1,999 |
75 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,937 |
0 |
0 |
0 |
25,272 |
0 |
14,087 |
1,059 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,352 |
0 |
0 |
0 |
25,272 |
0 |
14,111 |
1,051 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,974 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
839 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,606,364 |
0 |
0 |
0 |
25,280 |
0 |
11,314 |
887 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,519,332 |
1 |
0 |
0 |
25,272 |
0 |
11,298 |
837 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,372 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
217 |
bash |
| 12 |
no-host |
configure.ocaml |
280,886 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
200 |
dash |
| 20 |
no-host |
configure.ocaml |
306,453 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,787 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
185 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,968 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
220 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,229 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,584 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,683 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,107 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,003 |
1 |
0 |
0 |
35,936 |
0 |
18,988 |
986 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,466 |
1 |
0 |
0 |
35,936 |
0 |
17,135 |
1,206 |
dash |
| 19 |
no-host |
configure.util-linux |
1,504,350 |
3 |
0 |
0 |
35,952 |
0 |
16,218 |
882 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,516,860 |
1 |
0 |
0 |
35,944 |
0 |
16,238 |
891 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,408 |
2 |
0 |
0 |
35,936 |
0 |
16,137 |
884 |
osh-static |
| 6 |
no-host |
configure.yash |
173,312 |
0 |
0 |
0 |
3,616 |
0 |
876 |
109 |
bash |
| 14 |
no-host |
configure.yash |
159,511 |
0 |
0 |
0 |
3,616 |
0 |
999 |
106 |
dash |
| 22 |
no-host |
configure.yash |
176,727 |
0 |
0 |
0 |
3,624 |
0 |
856 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
177,100 |
0 |
0 |
0 |
3,624 |
0 |
859 |
90 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,773 |
0 |
0 |
0 |
3,624 |
0 |
858 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
| 16 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
401 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
185 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host