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 |
530 |
22 |
21 |
33.77 |
1.38 |
| bin-true |
no-host |
610 |
438 |
2,474 |
795 |
787 |
4.05 |
1.30 |
| configure.cpython |
no-host |
13,857 |
14,039 |
29,476 |
14,779 |
14,903 |
2.13 |
1.07 |
| configure.ocaml |
no-host |
3,672 |
3,629 |
4,669 |
3,742 |
3,729 |
1.27 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
222 |
49 |
49 |
4.85 |
1.07 |
| configure.util-linux |
no-host |
12,605 |
13,332 |
32,266 |
13,646 |
13,765 |
2.56 |
1.08 |
| configure.yash |
no-host |
1,704 |
1,648 |
2,463 |
1,726 |
1,726 |
1.45 |
1.01 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
47.64 |
2.28 |
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,406 |
1,171 |
24,857 |
3,467 |
3,289 |
10.33 |
1.44 |
| bin-true |
no-host |
100,965 |
49,369 |
834,034 |
134,259 |
132,256 |
8.26 |
1.33 |
| configure.cpython |
no-host |
1,621,373 |
1,642,503 |
5,953,012 |
1,810,082 |
1,784,535 |
3.67 |
1.12 |
| configure.ocaml |
no-host |
298,720 |
280,791 |
555,938 |
317,332 |
315,675 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,216 |
4,187 |
23,760 |
5,949 |
5,888 |
4.56 |
1.14 |
| configure.util-linux |
no-host |
1,536,719 |
1,693,937 |
4,965,702 |
1,715,804 |
1,702,974 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,327 |
159,501 |
315,136 |
179,133 |
178,855 |
1.82 |
1.03 |
| hello-world |
no-host |
151 |
85 |
3,871 |
387 |
377 |
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 |
6.9 |
3,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
795 |
1 |
2 |
2.6 |
8.8 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,779 |
1 |
66 |
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,646 |
3 |
61 |
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,742 |
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.4 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,726 |
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.7 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
787 |
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,903 |
1 |
65 |
15.2 |
34.4 |
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,765 |
3 |
61 |
21.4 |
39.7 |
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,729 |
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,726 |
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 |
13 |
3 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
530 |
474 |
59 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
610 |
314 |
334 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
438 |
275 |
168 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,474 |
896 |
1,850 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
795 |
307 |
505 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
787 |
318 |
486 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,857 |
7,565 |
6,661 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,039 |
7,663 |
6,770 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,476 |
16,139 |
15,287 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,779 |
7,517 |
7,561 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,903 |
7,362 |
7,571 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,672 |
1,466 |
1,246 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,629 |
1,462 |
1,189 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,669 |
2,122 |
1,769 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,742 |
1,491 |
1,292 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,729 |
1,513 |
1,255 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
22 |
24 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
18 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
155 |
70 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
24 |
25 |
26.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
22 |
27 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,605 |
6,564 |
6,494 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,332 |
6,433 |
7,379 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
32,266 |
20,250 |
13,090 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,646 |
6,387 |
7,486 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,765 |
6,365 |
7,476 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,704 |
965 |
747 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,648 |
945 |
704 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,463 |
1,463 |
1,043 |
33.0 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,726 |
962 |
768 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,726 |
976 |
752 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
60 |
40 |
20 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
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,406 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,171 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,857 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,467 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,289 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,965 |
0 |
0 |
0 |
8 |
0 |
1,968 |
76 |
bash |
| 9 |
no-host |
bin-true |
49,369 |
0 |
0 |
0 |
8 |
0 |
2,971 |
53 |
dash |
| 17 |
no-host |
bin-true |
834,034 |
0 |
0 |
0 |
8 |
0 |
1,974 |
136 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,259 |
0 |
0 |
0 |
16 |
0 |
1,976 |
110 |
osh-native |
| 33 |
no-host |
bin-true |
132,256 |
0 |
0 |
0 |
16 |
0 |
1,962 |
86 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,621,373 |
0 |
0 |
0 |
25,272 |
0 |
14,019 |
1,154 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,503 |
0 |
0 |
0 |
25,272 |
0 |
14,061 |
1,014 |
dash |
| 18 |
no-host |
configure.cpython |
5,953,012 |
0 |
0 |
0 |
25,272 |
0 |
12,844 |
814 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,810,082 |
0 |
0 |
0 |
25,280 |
0 |
12,856 |
1,070 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,784,535 |
0 |
0 |
0 |
25,280 |
0 |
12,845 |
1,105 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,720 |
0 |
0 |
0 |
4,432 |
0 |
2,007 |
174 |
bash |
| 12 |
no-host |
configure.ocaml |
280,791 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
304 |
dash |
| 20 |
no-host |
configure.ocaml |
555,938 |
0 |
0 |
0 |
4,432 |
0 |
1,908 |
177 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,332 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
198 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,675 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
192 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,216 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,187 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,760 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,949 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,888 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,536,719 |
0 |
0 |
0 |
35,944 |
0 |
18,943 |
1,056 |
bash |
| 11 |
no-host |
configure.util-linux |
1,693,937 |
2 |
0 |
0 |
35,936 |
0 |
17,077 |
1,131 |
dash |
| 19 |
no-host |
configure.util-linux |
4,965,702 |
1 |
0 |
0 |
35,960 |
0 |
17,517 |
877 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,715,804 |
4 |
0 |
0 |
35,944 |
0 |
17,482 |
1,100 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,702,974 |
1 |
0 |
0 |
35,944 |
0 |
17,443 |
1,027 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,327 |
0 |
0 |
0 |
3,616 |
0 |
875 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,501 |
0 |
0 |
0 |
3,616 |
0 |
997 |
93 |
dash |
| 22 |
no-host |
configure.yash |
315,136 |
0 |
0 |
0 |
3,616 |
0 |
858 |
103 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,133 |
0 |
0 |
0 |
3,624 |
0 |
857 |
102 |
osh-native |
| 38 |
no-host |
configure.yash |
178,855 |
0 |
0 |
0 |
3,624 |
0 |
861 |
111 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
| 16 |
no-host |
hello-world |
3,871 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
387 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
377 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host