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 |
16 |
9 |
540 |
22 |
21 |
33.98 |
1.41 |
| bin-true |
no-host |
619 |
435 |
2,504 |
799 |
808 |
4.05 |
1.29 |
| configure.cpython |
no-host |
14,216 |
14,316 |
30,188 |
14,962 |
15,260 |
2.12 |
1.05 |
| configure.ocaml |
no-host |
3,719 |
3,707 |
4,783 |
3,867 |
3,787 |
1.29 |
1.04 |
| configure.tcc |
no-host |
48 |
43 |
230 |
51 |
49 |
4.80 |
1.06 |
| configure.util-linux |
no-host |
12,725 |
13,441 |
32,708 |
14,104 |
14,130 |
2.57 |
1.11 |
| configure.yash |
no-host |
1,760 |
1,703 |
2,502 |
1,793 |
1,754 |
1.42 |
1.02 |
| hello-world |
no-host |
1 |
1 |
63 |
3 |
3 |
51.46 |
2.44 |
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,411 |
1,177 |
24,860 |
3,456 |
3,341 |
10.31 |
1.43 |
| bin-true |
no-host |
102,934 |
49,380 |
840,093 |
135,307 |
136,311 |
8.16 |
1.31 |
| configure.cpython |
no-host |
1,627,558 |
1,635,592 |
5,961,259 |
1,792,834 |
1,788,637 |
3.66 |
1.10 |
| configure.ocaml |
no-host |
299,223 |
280,832 |
555,908 |
316,699 |
316,158 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,201 |
4,200 |
23,756 |
5,986 |
5,939 |
4.57 |
1.15 |
| configure.util-linux |
no-host |
1,540,483 |
1,694,143 |
4,962,016 |
1,711,511 |
1,699,388 |
3.22 |
1.11 |
| configure.yash |
no-host |
173,335 |
159,503 |
315,226 |
179,492 |
179,022 |
1.82 |
1.04 |
| hello-world |
no-host |
151 |
83 |
3,872 |
386 |
373 |
25.64 |
2.56 |
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 |
7.1 |
3,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
1 |
2 |
2.6 |
8.7 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,962 |
1 |
70 |
15.2 |
34.4 |
1,782,989 |
46,101 |
25,356 |
91,622 |
885,112 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,104 |
3 |
66 |
21.4 |
39.6 |
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,867 |
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 |
51 |
0 |
0 |
1.3 |
26.1 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,793 |
1 |
2 |
2.6 |
33.2 |
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.3 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
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 |
15,260 |
1 |
70 |
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 |
14,130 |
3 |
66 |
21.4 |
39.9 |
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,787 |
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.2 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,754 |
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.2 |
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 |
16 |
6 |
10 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
540 |
483 |
61 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
8 |
13 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
619 |
309 |
351 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
435 |
268 |
173 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,504 |
892 |
1,897 |
18.3 |
osh-cpython |
| 25 |
no-host |
bin-true |
799 |
308 |
509 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
808 |
302 |
522 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,216 |
7,706 |
6,896 |
34.8 |
bash |
| 10 |
no-host |
configure.cpython |
14,316 |
7,856 |
6,861 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
30,188 |
16,539 |
15,691 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,962 |
7,470 |
7,796 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,260 |
7,598 |
7,837 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,719 |
1,490 |
1,268 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,707 |
1,527 |
1,203 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,783 |
2,156 |
1,860 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,867 |
1,511 |
1,373 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,787 |
1,502 |
1,325 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
19 |
24 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
230 |
162 |
72 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
30 |
22 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
26 |
24 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,725 |
6,570 |
6,619 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,441 |
6,500 |
7,426 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,708 |
20,348 |
13,460 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,104 |
6,575 |
7,765 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,130 |
6,541 |
7,667 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,760 |
990 |
776 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,703 |
955 |
749 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,502 |
1,509 |
1,037 |
33.5 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,793 |
968 |
827 |
33.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,754 |
968 |
788 |
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.4 |
dash |
| 16 |
no-host |
hello-world |
63 |
44 |
19 |
18.0 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.3 |
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,411 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,177 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,860 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,456 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,341 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
102,934 |
0 |
0 |
0 |
8 |
0 |
1,984 |
63 |
bash |
| 9 |
no-host |
bin-true |
49,380 |
0 |
0 |
0 |
8 |
0 |
2,976 |
46 |
dash |
| 17 |
no-host |
bin-true |
840,093 |
0 |
0 |
0 |
8 |
0 |
1,984 |
138 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,307 |
0 |
0 |
0 |
16 |
0 |
1,988 |
85 |
osh-native |
| 33 |
no-host |
bin-true |
136,311 |
0 |
0 |
0 |
16 |
0 |
1,960 |
94 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,627,558 |
0 |
0 |
0 |
25,272 |
0 |
14,050 |
1,078 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,592 |
0 |
0 |
0 |
25,272 |
0 |
14,096 |
1,077 |
dash |
| 18 |
no-host |
configure.cpython |
5,961,259 |
0 |
0 |
0 |
25,272 |
0 |
12,862 |
989 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,792,834 |
0 |
0 |
0 |
25,280 |
0 |
12,832 |
1,040 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,788,637 |
0 |
0 |
0 |
25,280 |
0 |
12,826 |
1,098 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,223 |
0 |
0 |
0 |
4,432 |
0 |
2,010 |
213 |
bash |
| 12 |
no-host |
configure.ocaml |
280,832 |
0 |
0 |
0 |
4,432 |
0 |
2,101 |
201 |
dash |
| 20 |
no-host |
configure.ocaml |
555,908 |
0 |
0 |
0 |
4,432 |
0 |
1,923 |
196 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,699 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
190 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,158 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
212 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,201 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,200 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,756 |
0 |
0 |
0 |
88 |
0 |
53 |
3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,986 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,939 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,540,483 |
0 |
0 |
0 |
35,944 |
0 |
18,981 |
1,073 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,143 |
1 |
0 |
0 |
35,936 |
0 |
17,067 |
1,276 |
dash |
| 19 |
no-host |
configure.util-linux |
4,962,016 |
1 |
0 |
0 |
35,960 |
0 |
17,510 |
874 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,711,511 |
2 |
0 |
0 |
35,944 |
0 |
17,494 |
1,081 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,699,388 |
3 |
0 |
0 |
35,944 |
0 |
17,465 |
1,138 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,335 |
0 |
0 |
0 |
3,616 |
0 |
875 |
91 |
bash |
| 14 |
no-host |
configure.yash |
159,503 |
0 |
0 |
0 |
3,616 |
0 |
999 |
106 |
dash |
| 22 |
no-host |
configure.yash |
315,226 |
0 |
0 |
0 |
3,616 |
0 |
863 |
104 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,492 |
0 |
0 |
0 |
3,624 |
0 |
854 |
97 |
osh-native |
| 38 |
no-host |
configure.yash |
179,022 |
0 |
0 |
0 |
3,624 |
0 |
855 |
110 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,872 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
373 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host