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 |
531 |
22 |
21 |
34.03 |
1.38 |
| bin-true |
no-host |
620 |
452 |
2,454 |
803 |
793 |
3.96 |
1.29 |
| configure.cpython |
no-host |
13,995 |
13,814 |
29,182 |
14,474 |
14,566 |
2.09 |
1.03 |
| configure.ocaml |
no-host |
3,629 |
3,572 |
4,600 |
3,696 |
3,699 |
1.27 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
219 |
49 |
49 |
4.77 |
1.07 |
| configure.util-linux |
no-host |
12,733 |
13,183 |
32,002 |
13,432 |
13,495 |
2.51 |
1.05 |
| configure.yash |
no-host |
1,674 |
1,619 |
2,396 |
1,697 |
1,713 |
1.43 |
1.01 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
51.01 |
2.48 |
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,415 |
1,161 |
24,885 |
3,491 |
3,363 |
10.30 |
1.45 |
| bin-true |
no-host |
103,915 |
49,384 |
835,047 |
139,251 |
133,328 |
8.04 |
1.34 |
| configure.cpython |
no-host |
1,628,618 |
1,640,809 |
5,952,257 |
1,805,096 |
1,796,157 |
3.65 |
1.11 |
| configure.ocaml |
no-host |
299,306 |
280,757 |
555,943 |
317,381 |
316,009 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,215 |
4,205 |
23,727 |
5,971 |
5,898 |
4.55 |
1.14 |
| configure.util-linux |
no-host |
1,532,634 |
1,701,009 |
4,951,073 |
1,724,435 |
1,700,192 |
3.23 |
1.13 |
| configure.yash |
no-host |
173,500 |
159,499 |
315,562 |
179,665 |
179,154 |
1.82 |
1.04 |
| hello-world |
no-host |
150 |
85 |
3,886 |
385 |
380 |
25.91 |
2.57 |
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.8 |
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,474 |
1 |
65 |
15.2 |
34.5 |
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,432 |
3 |
58 |
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,696 |
1 |
2 |
2.7 |
28.8 |
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.4 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,697 |
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.6 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
793 |
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,566 |
1 |
66 |
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,495 |
3 |
58 |
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,699 |
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,713 |
1 |
2 |
2.6 |
33.2 |
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 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
531 |
482 |
53 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
620 |
322 |
339 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
452 |
273 |
185 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,454 |
883 |
1,835 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
803 |
296 |
521 |
9.0 |
osh-native |
| 33 |
no-host |
bin-true |
793 |
297 |
513 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,995 |
7,617 |
6,757 |
34.1 |
bash |
| 10 |
no-host |
configure.cpython |
13,814 |
7,507 |
6,703 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,182 |
16,075 |
15,066 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,474 |
7,245 |
7,521 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,566 |
7,264 |
7,444 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,629 |
1,437 |
1,232 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,572 |
1,440 |
1,155 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,600 |
2,087 |
1,736 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,696 |
1,447 |
1,290 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,699 |
1,472 |
1,266 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
18 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
219 |
165 |
58 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
28 |
22 |
26.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,733 |
6,610 |
6,579 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,183 |
6,459 |
7,213 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
32,002 |
20,250 |
12,817 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,432 |
6,199 |
7,464 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,495 |
6,109 |
7,462 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,674 |
928 |
754 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,619 |
945 |
676 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,396 |
1,469 |
970 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,697 |
937 |
764 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,713 |
947 |
768 |
33.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
41 |
19 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
6.6 |
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,415 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,885 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,491 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,363 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
103,915 |
0 |
0 |
0 |
8 |
0 |
1,995 |
50 |
bash |
| 9 |
no-host |
bin-true |
49,384 |
0 |
0 |
0 |
8 |
0 |
2,970 |
59 |
dash |
| 17 |
no-host |
bin-true |
835,047 |
0 |
0 |
0 |
8 |
0 |
1,995 |
120 |
osh-cpython |
| 25 |
no-host |
bin-true |
139,251 |
0 |
0 |
0 |
16 |
0 |
1,949 |
121 |
osh-native |
| 33 |
no-host |
bin-true |
133,328 |
0 |
0 |
0 |
16 |
0 |
1,988 |
91 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,628,618 |
0 |
0 |
0 |
25,272 |
0 |
14,031 |
1,082 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,809 |
0 |
0 |
0 |
25,272 |
0 |
14,015 |
1,050 |
dash |
| 18 |
no-host |
configure.cpython |
5,952,257 |
0 |
0 |
0 |
25,272 |
0 |
12,871 |
823 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,805,096 |
0 |
0 |
0 |
25,280 |
0 |
12,840 |
1,071 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,796,157 |
0 |
0 |
0 |
25,280 |
0 |
12,841 |
1,047 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,306 |
0 |
0 |
0 |
4,432 |
0 |
2,004 |
211 |
bash |
| 12 |
no-host |
configure.ocaml |
280,757 |
0 |
0 |
0 |
4,432 |
0 |
2,098 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
555,943 |
0 |
0 |
0 |
4,432 |
0 |
1,917 |
181 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,381 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
212 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,009 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
204 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,215 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,205 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,727 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,971 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,898 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,532,634 |
2 |
0 |
0 |
35,944 |
0 |
18,949 |
1,036 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,009 |
0 |
0 |
0 |
35,936 |
0 |
17,039 |
1,172 |
dash |
| 19 |
no-host |
configure.util-linux |
4,951,073 |
0 |
0 |
0 |
35,944 |
0 |
17,546 |
946 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,724,435 |
0 |
0 |
0 |
35,944 |
0 |
17,506 |
1,258 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,700,192 |
1 |
0 |
0 |
35,952 |
0 |
17,521 |
1,082 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,500 |
0 |
0 |
0 |
3,616 |
0 |
875 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,499 |
0 |
0 |
0 |
3,616 |
0 |
995 |
90 |
dash |
| 22 |
no-host |
configure.yash |
315,562 |
0 |
0 |
0 |
3,616 |
0 |
858 |
103 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,665 |
0 |
0 |
0 |
3,624 |
0 |
858 |
95 |
osh-native |
| 38 |
no-host |
configure.yash |
179,154 |
0 |
0 |
0 |
3,624 |
0 |
856 |
115 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,886 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
380 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host