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 |
526 |
22 |
21 |
33.88 |
1.45 |
| bin-true |
no-host |
630 |
452 |
2,474 |
820 |
809 |
3.93 |
1.30 |
| configure.cpython |
no-host |
13,841 |
13,943 |
29,451 |
14,710 |
14,982 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,677 |
3,641 |
4,644 |
3,746 |
3,774 |
1.26 |
1.02 |
| configure.tcc |
no-host |
46 |
42 |
220 |
50 |
49 |
4.80 |
1.08 |
| configure.util-linux |
no-host |
12,668 |
13,501 |
32,374 |
13,719 |
14,077 |
2.56 |
1.08 |
| configure.yash |
no-host |
1,699 |
1,652 |
2,431 |
1,744 |
1,753 |
1.43 |
1.03 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
48.13 |
2.32 |
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,363 |
1,168 |
24,746 |
3,467 |
3,363 |
10.47 |
1.47 |
| bin-true |
no-host |
98,924 |
49,405 |
829,549 |
135,261 |
131,300 |
8.39 |
1.37 |
| configure.cpython |
no-host |
1,613,612 |
1,638,296 |
5,953,735 |
1,810,846 |
1,797,537 |
3.69 |
1.12 |
| configure.ocaml |
no-host |
298,807 |
280,970 |
554,926 |
317,248 |
315,896 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,201 |
4,220 |
23,751 |
5,924 |
5,874 |
4.57 |
1.14 |
| configure.util-linux |
no-host |
1,534,367 |
1,695,302 |
4,956,500 |
1,722,838 |
1,709,398 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,547 |
159,522 |
314,999 |
179,172 |
178,545 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
84 |
3,880 |
383 |
380 |
25.53 |
2.52 |
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,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
820 |
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,710 |
1 |
67 |
15.2 |
34.4 |
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,719 |
3 |
60 |
21.4 |
39.6 |
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,746 |
1 |
2 |
2.7 |
28.5 |
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,744 |
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.6 |
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.4 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,982 |
1 |
65 |
15.2 |
34.8 |
1,782,987 |
46,087 |
25,352 |
91,623 |
885,111 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,077 |
3 |
60 |
21.4 |
39.7 |
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,774 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
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,753 |
1 |
2 |
2.6 |
33.4 |
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.4 |
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 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
526 |
469 |
61 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
13 |
9 |
9.4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
630 |
316 |
352 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
452 |
274 |
184 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,474 |
907 |
1,831 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
820 |
293 |
544 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
809 |
305 |
522 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,841 |
7,483 |
6,732 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,943 |
7,488 |
6,844 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,451 |
16,093 |
15,321 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,710 |
7,407 |
7,610 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,982 |
7,341 |
7,828 |
34.8 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,677 |
1,455 |
1,260 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,641 |
1,450 |
1,214 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,644 |
2,100 |
1,764 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,746 |
1,462 |
1,326 |
28.5 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,774 |
1,474 |
1,339 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
21 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
153 |
71 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
29 |
21 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
25 |
25 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,668 |
6,473 |
6,663 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,501 |
6,434 |
7,560 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,374 |
20,214 |
13,229 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,719 |
6,211 |
7,751 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,077 |
6,273 |
7,892 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,699 |
958 |
749 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,652 |
906 |
746 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,431 |
1,411 |
1,063 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,744 |
943 |
805 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,753 |
931 |
825 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
34 |
27 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
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,363 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,168 |
0 |
0 |
0 |
8 |
0 |
40 |
4 |
dash |
| 23 |
no-host |
abuild-print-help |
24,746 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,467 |
0 |
0 |
0 |
16 |
0 |
39 |
7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,363 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
98,924 |
0 |
0 |
0 |
8 |
0 |
1,975 |
68 |
bash |
| 9 |
no-host |
bin-true |
49,405 |
0 |
0 |
0 |
8 |
0 |
2,972 |
59 |
dash |
| 17 |
no-host |
bin-true |
829,549 |
0 |
0 |
0 |
8 |
0 |
1,975 |
155 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,261 |
0 |
0 |
0 |
16 |
0 |
1,975 |
122 |
osh-native |
| 33 |
no-host |
bin-true |
131,300 |
0 |
0 |
0 |
16 |
0 |
1,966 |
97 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,613,612 |
0 |
0 |
0 |
25,272 |
0 |
14,014 |
1,296 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,296 |
2 |
0 |
0 |
25,272 |
0 |
14,081 |
1,283 |
dash |
| 18 |
no-host |
configure.cpython |
5,953,735 |
0 |
0 |
0 |
25,272 |
0 |
12,870 |
1,184 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,810,846 |
0 |
0 |
0 |
25,280 |
0 |
12,848 |
1,125 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,797,537 |
0 |
0 |
0 |
25,280 |
0 |
12,840 |
1,105 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,807 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
218 |
bash |
| 12 |
no-host |
configure.ocaml |
280,970 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
171 |
dash |
| 20 |
no-host |
configure.ocaml |
554,926 |
0 |
0 |
0 |
4,432 |
0 |
1,911 |
195 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,248 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
207 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,896 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
221 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,201 |
0 |
0 |
0 |
80 |
0 |
47 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,220 |
0 |
0 |
0 |
88 |
0 |
52 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
23,751 |
0 |
0 |
0 |
88 |
0 |
53 |
3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,924 |
0 |
0 |
0 |
96 |
0 |
46 |
7 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,874 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,534,367 |
0 |
0 |
0 |
35,944 |
0 |
18,952 |
1,198 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,302 |
1 |
0 |
0 |
35,936 |
0 |
17,033 |
1,301 |
dash |
| 19 |
no-host |
configure.util-linux |
4,956,500 |
6 |
0 |
0 |
35,960 |
0 |
17,502 |
1,062 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,722,838 |
0 |
0 |
0 |
35,944 |
0 |
17,476 |
1,050 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,709,398 |
1 |
0 |
0 |
35,944 |
0 |
17,454 |
1,098 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,547 |
0 |
0 |
0 |
3,616 |
0 |
877 |
131 |
bash |
| 14 |
no-host |
configure.yash |
159,522 |
0 |
0 |
0 |
3,616 |
0 |
990 |
136 |
dash |
| 22 |
no-host |
configure.yash |
314,999 |
0 |
0 |
0 |
3,616 |
0 |
862 |
144 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,172 |
0 |
0 |
0 |
3,624 |
0 |
855 |
127 |
osh-native |
| 38 |
no-host |
configure.yash |
178,545 |
0 |
0 |
0 |
3,624 |
0 |
858 |
140 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,880 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
383 |
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