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 |
15 |
9 |
532 |
22 |
21 |
34.55 |
1.42 |
| bin-true |
no-host |
611 |
433 |
2,425 |
803 |
802 |
3.97 |
1.31 |
| configure.cpython |
no-host |
13,735 |
13,735 |
29,191 |
14,578 |
14,696 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,632 |
3,585 |
4,647 |
3,749 |
3,762 |
1.28 |
1.03 |
| configure.tcc |
no-host |
45 |
41 |
220 |
49 |
49 |
4.86 |
1.08 |
| configure.util-linux |
no-host |
12,422 |
13,200 |
31,988 |
13,603 |
13,605 |
2.58 |
1.10 |
| configure.yash |
no-host |
1,678 |
1,626 |
2,442 |
1,729 |
1,742 |
1.46 |
1.03 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
49.12 |
2.39 |
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,380 |
1,156 |
24,882 |
3,494 |
3,364 |
10.45 |
1.47 |
| bin-true |
no-host |
100,980 |
49,374 |
837,037 |
138,275 |
136,256 |
8.29 |
1.37 |
| configure.cpython |
no-host |
1,621,542 |
1,644,163 |
5,962,838 |
1,811,071 |
1,777,984 |
3.68 |
1.12 |
| configure.ocaml |
no-host |
298,645 |
280,615 |
556,331 |
317,544 |
315,837 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,232 |
4,205 |
23,788 |
5,968 |
5,870 |
4.55 |
1.14 |
| configure.util-linux |
no-host |
1,533,621 |
1,700,101 |
4,967,450 |
1,714,213 |
1,707,943 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,691 |
159,633 |
315,564 |
179,712 |
178,570 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
87 |
3,872 |
386 |
375 |
25.47 |
2.54 |
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,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
1 |
2 |
2.6 |
9.0 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,578 |
1 |
64 |
15.2 |
34.3 |
1,782,989 |
46,101 |
25,356 |
91,622 |
885,112 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,603 |
3 |
60 |
21.4 |
39.9 |
2,707,122 |
126,354 |
66,586 |
113,463 |
1,294,568 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,749 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,729 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,080 |
6,714 |
6,526 |
68,348 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,368 |
64,438 |
42,639 |
4,562 |
54,472 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
802 |
1 |
2 |
2.6 |
8.4 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,696 |
1 |
65 |
15.2 |
34.5 |
1,782,988 |
46,087 |
25,352 |
91,623 |
885,112 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,605 |
3 |
59 |
21.4 |
39.5 |
2,707,122 |
126,347 |
66,579 |
113,465 |
1,294,568 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,762 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,470 |
6,513 |
7,821 |
70,840 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,742 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,069 |
6,703 |
6,528 |
68,348 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,367 |
64,433 |
42,634 |
4,563 |
54,472 |
57,332 |
277 |
3 |
85,268 |
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 |
9 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
532 |
473 |
63 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
611 |
300 |
348 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
433 |
281 |
158 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,425 |
828 |
1,858 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
803 |
303 |
515 |
9.0 |
osh-native |
| 33 |
no-host |
bin-true |
802 |
314 |
505 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,735 |
7,431 |
6,675 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,735 |
7,535 |
6,586 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,191 |
16,043 |
15,092 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,578 |
7,302 |
7,560 |
34.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,696 |
7,280 |
7,528 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,632 |
1,463 |
1,208 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,585 |
1,420 |
1,188 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,647 |
2,088 |
1,778 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,749 |
1,546 |
1,244 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,762 |
1,476 |
1,324 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
23 |
23 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
20 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
161 |
62 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
30 |
19 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
23 |
26 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,422 |
6,456 |
6,404 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,200 |
6,354 |
7,325 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
31,988 |
20,154 |
12,901 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,603 |
6,297 |
7,533 |
39.9 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,605 |
6,184 |
7,494 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,678 |
934 |
750 |
33.0 |
bash |
| 14 |
no-host |
configure.yash |
1,626 |
941 |
686 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
2,442 |
1,406 |
1,077 |
33.6 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,729 |
950 |
782 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,742 |
996 |
749 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
60 |
39 |
21 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,380 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,882 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,494 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,364 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,980 |
0 |
0 |
0 |
8 |
0 |
1,984 |
72 |
bash |
| 9 |
no-host |
bin-true |
49,374 |
0 |
0 |
0 |
8 |
0 |
2,982 |
40 |
dash |
| 17 |
no-host |
bin-true |
837,037 |
0 |
0 |
0 |
8 |
0 |
1,990 |
130 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,275 |
0 |
0 |
0 |
16 |
0 |
1,965 |
84 |
osh-native |
| 33 |
no-host |
bin-true |
136,256 |
0 |
0 |
0 |
16 |
0 |
1,977 |
80 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,621,542 |
0 |
0 |
0 |
25,272 |
0 |
14,019 |
1,084 |
bash |
| 10 |
no-host |
configure.cpython |
1,644,163 |
0 |
0 |
0 |
25,272 |
0 |
14,072 |
1,025 |
dash |
| 18 |
no-host |
configure.cpython |
5,962,838 |
0 |
0 |
0 |
25,272 |
0 |
12,867 |
924 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,811,071 |
0 |
0 |
0 |
25,280 |
0 |
12,865 |
1,171 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,777,984 |
0 |
0 |
0 |
25,280 |
0 |
12,831 |
1,058 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,645 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,615 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
173 |
dash |
| 20 |
no-host |
configure.ocaml |
556,331 |
0 |
0 |
0 |
4,432 |
0 |
1,916 |
214 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,544 |
0 |
0 |
0 |
4,440 |
0 |
1,987 |
220 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,837 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
209 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,232 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,205 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,788 |
0 |
0 |
0 |
88 |
0 |
53 |
3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,968 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,870 |
0 |
0 |
0 |
96 |
0 |
48 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,533,621 |
0 |
0 |
0 |
35,944 |
0 |
18,944 |
1,101 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,101 |
0 |
0 |
0 |
35,936 |
0 |
17,031 |
1,183 |
dash |
| 19 |
no-host |
configure.util-linux |
4,967,450 |
1 |
0 |
0 |
35,944 |
0 |
17,516 |
862 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,714,213 |
0 |
0 |
0 |
35,944 |
0 |
17,456 |
1,152 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,707,943 |
2 |
0 |
0 |
35,944 |
0 |
17,481 |
1,147 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,691 |
0 |
0 |
0 |
3,616 |
0 |
873 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,633 |
0 |
0 |
0 |
3,624 |
0 |
999 |
90 |
dash |
| 22 |
no-host |
configure.yash |
315,564 |
0 |
0 |
0 |
3,616 |
0 |
861 |
114 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,712 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-native |
| 38 |
no-host |
configure.yash |
178,570 |
0 |
0 |
0 |
3,624 |
0 |
856 |
102 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,872 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
375 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host