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 |
527 |
22 |
21 |
32.58 |
1.33 |
| bin-true |
no-host |
649 |
457 |
2,507 |
865 |
809 |
3.86 |
1.33 |
| configure.cpython |
no-host |
13,957 |
14,129 |
29,280 |
14,703 |
14,731 |
2.10 |
1.05 |
| configure.ocaml |
no-host |
3,709 |
3,622 |
4,632 |
3,735 |
3,723 |
1.25 |
1.01 |
| configure.tcc |
no-host |
48 |
42 |
219 |
50 |
50 |
4.58 |
1.04 |
| configure.util-linux |
no-host |
12,723 |
13,462 |
32,130 |
13,683 |
13,826 |
2.53 |
1.08 |
| configure.yash |
no-host |
1,755 |
1,665 |
2,432 |
1,727 |
1,731 |
1.39 |
0.98 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
48.95 |
2.33 |
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,387 |
1,147 |
24,699 |
3,432 |
3,391 |
10.35 |
1.44 |
| bin-true |
no-host |
103,933 |
49,383 |
831,636 |
135,251 |
132,293 |
8.00 |
1.30 |
| configure.cpython |
no-host |
1,618,981 |
1,640,371 |
5,951,305 |
1,818,603 |
1,795,407 |
3.68 |
1.12 |
| configure.ocaml |
no-host |
298,686 |
280,569 |
554,723 |
317,653 |
315,600 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,235 |
4,201 |
23,739 |
5,962 |
5,908 |
4.53 |
1.14 |
| configure.util-linux |
no-host |
1,527,871 |
1,693,598 |
4,957,873 |
1,720,207 |
1,707,680 |
3.24 |
1.13 |
| configure.yash |
no-host |
173,840 |
159,520 |
314,709 |
179,513 |
178,612 |
1.81 |
1.03 |
| hello-world |
no-host |
152 |
85 |
3,874 |
388 |
381 |
25.49 |
2.55 |
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,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
865 |
1 |
2 |
2.6 |
8.9 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,703 |
5 |
70 |
15.2 |
34.6 |
1,782,988 |
46,101 |
25,356 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,683 |
3 |
61 |
21.4 |
39.4 |
2,707,121 |
126,354 |
66,586 |
113,463 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,735 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.2 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,727 |
1 |
2 |
2.6 |
33.4 |
140,016 |
8,080 |
6,714 |
6,526 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,367 |
64,438 |
42,639 |
4,562 |
54,471 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.7 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
809 |
1 |
2 |
2.6 |
8.1 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,731 |
1 |
63 |
15.2 |
34.5 |
1,782,987 |
46,087 |
25,352 |
91,623 |
885,111 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,826 |
3 |
58 |
21.4 |
39.6 |
2,707,121 |
126,347 |
66,579 |
113,465 |
1,294,567 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,723 |
1 |
2 |
2.7 |
28.8 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.2 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,731 |
1 |
2 |
2.6 |
33.2 |
140,016 |
8,069 |
6,703 |
6,528 |
68,347 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,366 |
64,433 |
42,634 |
4,563 |
54,471 |
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 |
10 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
527 |
468 |
63 |
22.5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
649 |
326 |
364 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
457 |
274 |
190 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,507 |
927 |
1,846 |
18.3 |
osh-cpython |
| 25 |
no-host |
bin-true |
865 |
305 |
579 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
809 |
300 |
528 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,957 |
7,470 |
6,864 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,129 |
7,580 |
6,958 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,280 |
15,901 |
15,299 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,703 |
7,213 |
7,794 |
34.6 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,731 |
7,240 |
7,635 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,709 |
1,467 |
1,283 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,622 |
1,478 |
1,166 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,632 |
2,068 |
1,782 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,735 |
1,467 |
1,310 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,723 |
1,459 |
1,305 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
22 |
26 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
24 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
219 |
154 |
68 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
25 |
25 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
24 |
26 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,723 |
6,427 |
6,771 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,462 |
6,313 |
7,645 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,130 |
20,107 |
13,066 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,683 |
6,206 |
7,717 |
39.4 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,826 |
6,256 |
7,653 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,755 |
1,002 |
757 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,665 |
933 |
733 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,432 |
1,439 |
1,036 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,727 |
939 |
791 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,731 |
937 |
797 |
33.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
42 |
19 |
18.0 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
6.7 |
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,387 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,147 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,699 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,432 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,391 |
0 |
0 |
0 |
16 |
0 |
39 |
5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
103,933 |
0 |
0 |
0 |
8 |
0 |
1,972 |
159 |
bash |
| 9 |
no-host |
bin-true |
49,383 |
0 |
0 |
0 |
8 |
0 |
2,971 |
61 |
dash |
| 17 |
no-host |
bin-true |
831,636 |
0 |
0 |
0 |
8 |
0 |
1,984 |
423 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,251 |
0 |
0 |
0 |
16 |
0 |
1,974 |
82 |
osh-native |
| 33 |
no-host |
bin-true |
132,293 |
0 |
0 |
0 |
16 |
0 |
1,963 |
74 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,618,981 |
0 |
0 |
0 |
25,272 |
0 |
14,054 |
1,425 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,371 |
0 |
0 |
0 |
25,272 |
0 |
14,087 |
1,249 |
dash |
| 18 |
no-host |
configure.cpython |
5,951,305 |
1 |
0 |
0 |
25,272 |
0 |
12,884 |
1,200 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,818,603 |
0 |
0 |
0 |
25,280 |
0 |
12,893 |
1,235 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,795,407 |
0 |
0 |
0 |
25,280 |
0 |
12,864 |
1,163 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,686 |
0 |
0 |
0 |
4,432 |
0 |
2,010 |
193 |
bash |
| 12 |
no-host |
configure.ocaml |
280,569 |
0 |
0 |
0 |
4,432 |
0 |
2,095 |
203 |
dash |
| 20 |
no-host |
configure.ocaml |
554,723 |
0 |
0 |
0 |
4,432 |
0 |
1,912 |
213 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,653 |
0 |
0 |
0 |
4,440 |
0 |
1,990 |
198 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,600 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
213 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,235 |
0 |
0 |
0 |
80 |
0 |
49 |
9 |
bash |
| 13 |
no-host |
configure.tcc |
4,201 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,739 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,962 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,908 |
0 |
0 |
0 |
96 |
0 |
47 |
5 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,527,871 |
0 |
0 |
0 |
35,944 |
0 |
18,941 |
1,307 |
bash |
| 11 |
no-host |
configure.util-linux |
1,693,598 |
1 |
0 |
0 |
35,936 |
0 |
16,935 |
1,306 |
dash |
| 19 |
no-host |
configure.util-linux |
4,957,873 |
3 |
0 |
0 |
35,960 |
0 |
17,543 |
1,143 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,720,207 |
0 |
0 |
0 |
35,944 |
0 |
17,603 |
1,077 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,707,680 |
0 |
0 |
0 |
35,944 |
0 |
17,483 |
1,101 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,840 |
0 |
0 |
0 |
3,616 |
0 |
882 |
143 |
bash |
| 14 |
no-host |
configure.yash |
159,520 |
0 |
0 |
0 |
3,616 |
0 |
997 |
231 |
dash |
| 22 |
no-host |
configure.yash |
314,709 |
0 |
0 |
0 |
3,616 |
0 |
860 |
110 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,513 |
0 |
0 |
0 |
3,624 |
0 |
858 |
128 |
osh-native |
| 38 |
no-host |
configure.yash |
178,612 |
0 |
0 |
0 |
3,624 |
0 |
858 |
158 |
osh-native-souffle |
| 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 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,874 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
388 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
381 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host