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 |
12 |
7 |
17 |
18 |
15 |
1.39 |
1.25 |
| bin-true |
no-host |
435 |
303 |
594 |
595 |
477 |
1.36 |
1.10 |
| configure.cpython |
no-host |
11,436 |
11,505 |
11,156 |
11,148 |
10,777 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,263 |
3,192 |
3,217 |
3,259 |
3,198 |
0.99 |
0.98 |
| configure.tcc |
no-host |
37 |
34 |
38 |
39 |
36 |
1.03 |
0.96 |
| configure.util-linux |
no-host |
10,214 |
10,823 |
10,267 |
10,117 |
9,868 |
1.01 |
0.97 |
| configure.yash |
no-host |
1,438 |
1,388 |
1,393 |
1,388 |
1,391 |
0.97 |
0.97 |
| hello-world |
no-host |
1 |
0 |
2 |
2 |
1 |
2.47 |
1.09 |
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,406 |
1,176 |
3,338 |
3,399 |
2,833 |
1.39 |
1.18 |
| bin-true |
no-host |
101,849 |
49,843 |
132,445 |
132,790 |
111,133 |
1.30 |
1.09 |
| configure.cpython |
no-host |
1,632,109 |
1,647,545 |
1,589,944 |
1,613,327 |
1,519,556 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
300,225 |
281,664 |
306,398 |
308,191 |
300,835 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,266 |
4,225 |
5,644 |
5,706 |
5,143 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,548,000 |
1,705,133 |
1,530,330 |
1,522,986 |
1,458,452 |
0.99 |
0.94 |
| configure.yash |
no-host |
173,843 |
159,924 |
176,575 |
177,528 |
173,181 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
86 |
396 |
402 |
182 |
2.61 |
1.20 |
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 |
2 |
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 |
594 |
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 |
11,156 |
2 |
60 |
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 |
10,267 |
3 |
62 |
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,217 |
1 |
2 |
2.8 |
28.6 |
149,700 |
12,655 |
6,570 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
38 |
0 |
0 |
1.4 |
26.0 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,393 |
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 |
17 |
1 |
2 |
3.0 |
9.4 |
117,234 |
65,800 |
42,007 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,014 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
7.2 |
3,914 |
3,914 |
0 |
722 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
595 |
1 |
2 |
3.5 |
9.3 |
151,900 |
10,767 |
2,981 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,148 |
1 |
59 |
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 |
10,117 |
3 |
61 |
21.6 |
39.6 |
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,259 |
1 |
2 |
2.8 |
28.6 |
149,700 |
12,660 |
6,575 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
39 |
0 |
0 |
1.4 |
26.3 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,388 |
1 |
2 |
2.7 |
33.1 |
143,476 |
11,511 |
6,628 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
10.1 |
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 |
12 |
8 |
5 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
5 |
2 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
17 |
11 |
7 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
18 |
11 |
7 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
15 |
11 |
4 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
435 |
269 |
199 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
303 |
222 |
82 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
594 |
316 |
290 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
595 |
325 |
282 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
477 |
284 |
203 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,436 |
7,558 |
4,146 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
11,505 |
7,585 |
4,194 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
11,156 |
7,133 |
4,201 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,148 |
7,089 |
4,250 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
10,777 |
7,035 |
3,880 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,263 |
1,482 |
798 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,192 |
1,431 |
764 |
28.9 |
dash |
| 20 |
no-host |
configure.ocaml |
3,217 |
1,477 |
757 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,259 |
1,460 |
816 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,198 |
1,456 |
753 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
37 |
25 |
13 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
23 |
11 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
38 |
24 |
15 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
39 |
27 |
12 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
36 |
18 |
18 |
26.4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,214 |
6,601 |
3,955 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
10,823 |
6,571 |
4,601 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
10,267 |
6,146 |
4,258 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,117 |
6,098 |
4,160 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
9,868 |
6,125 |
3,867 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,438 |
942 |
492 |
33.6 |
bash |
| 14 |
no-host |
configure.yash |
1,388 |
934 |
447 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,393 |
909 |
477 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,388 |
926 |
457 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,391 |
907 |
479 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
0 |
0 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
1 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
2 |
0 |
7.2 |
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,406 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,176 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,338 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,399 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,833 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,849 |
0 |
0 |
0 |
8 |
0 |
1,996 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,843 |
0 |
0 |
0 |
8 |
0 |
3,000 |
37 |
dash |
| 17 |
no-host |
bin-true |
132,445 |
0 |
0 |
0 |
16 |
0 |
1,992 |
60 |
osh-native |
| 25 |
no-host |
bin-true |
132,790 |
0 |
0 |
0 |
16 |
0 |
1,999 |
47 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,133 |
0 |
0 |
0 |
8 |
0 |
2,000 |
56 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,632,109 |
0 |
0 |
0 |
25,272 |
0 |
14,052 |
953 |
bash |
| 10 |
no-host |
configure.cpython |
1,647,545 |
0 |
0 |
0 |
25,272 |
0 |
14,111 |
934 |
dash |
| 18 |
no-host |
configure.cpython |
1,589,944 |
1 |
0 |
0 |
25,280 |
0 |
11,282 |
793 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,613,327 |
0 |
0 |
0 |
25,280 |
0 |
11,314 |
767 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,519,556 |
0 |
0 |
0 |
25,272 |
0 |
11,290 |
791 |
osh-static |
| 4 |
no-host |
configure.ocaml |
300,225 |
0 |
0 |
0 |
4,432 |
0 |
2,024 |
170 |
bash |
| 12 |
no-host |
configure.ocaml |
281,664 |
0 |
0 |
0 |
4,432 |
0 |
2,114 |
246 |
dash |
| 20 |
no-host |
configure.ocaml |
306,398 |
0 |
0 |
0 |
4,440 |
0 |
2,007 |
200 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,191 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
167 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,835 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
195 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,266 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,225 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,644 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,706 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,143 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,548,000 |
0 |
0 |
0 |
35,944 |
0 |
18,874 |
973 |
bash |
| 11 |
no-host |
configure.util-linux |
1,705,133 |
1 |
0 |
336 |
35,936 |
0 |
17,009 |
1,008 |
dash |
| 19 |
no-host |
configure.util-linux |
1,530,330 |
3 |
0 |
0 |
35,960 |
0 |
16,189 |
822 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,986 |
5 |
0 |
0 |
35,944 |
0 |
16,213 |
865 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,458,452 |
5 |
0 |
0 |
35,936 |
0 |
16,235 |
845 |
osh-static |
| 6 |
no-host |
configure.yash |
173,843 |
0 |
0 |
0 |
3,616 |
0 |
880 |
82 |
bash |
| 14 |
no-host |
configure.yash |
159,924 |
0 |
0 |
0 |
3,616 |
0 |
1,004 |
80 |
dash |
| 22 |
no-host |
configure.yash |
176,575 |
0 |
0 |
0 |
3,624 |
0 |
855 |
92 |
osh-native |
| 30 |
no-host |
configure.yash |
177,528 |
0 |
0 |
0 |
3,624 |
0 |
852 |
88 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,181 |
0 |
0 |
0 |
3,616 |
0 |
853 |
90 |
osh-static |
| 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 |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host