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 |
543 |
21 |
20 |
34.33 |
1.36 |
| bin-true |
no-host |
609 |
434 |
2,451 |
790 |
794 |
4.02 |
1.30 |
| configure.cpython |
no-host |
13,678 |
13,702 |
29,250 |
14,530 |
14,525 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,631 |
3,617 |
4,612 |
3,694 |
3,688 |
1.27 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
222 |
48 |
48 |
4.83 |
1.05 |
| configure.util-linux |
no-host |
12,442 |
13,213 |
31,804 |
13,424 |
13,435 |
2.56 |
1.08 |
| configure.yash |
no-host |
1,678 |
1,634 |
2,401 |
1,704 |
1,692 |
1.43 |
1.02 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
52.36 |
2.53 |
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,394 |
1,172 |
24,837 |
3,438 |
3,304 |
10.37 |
1.44 |
| bin-true |
no-host |
100,917 |
49,361 |
844,524 |
135,273 |
134,369 |
8.37 |
1.34 |
| configure.cpython |
no-host |
1,620,701 |
1,636,034 |
5,997,978 |
1,815,767 |
1,795,642 |
3.70 |
1.12 |
| configure.ocaml |
no-host |
298,221 |
280,731 |
557,618 |
317,150 |
316,214 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,244 |
4,203 |
23,945 |
5,964 |
5,837 |
4.57 |
1.14 |
| configure.util-linux |
no-host |
1,536,448 |
1,695,643 |
4,993,814 |
1,717,676 |
1,706,044 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,512 |
159,554 |
316,347 |
179,940 |
178,641 |
1.82 |
1.04 |
| hello-world |
no-host |
152 |
84 |
3,931 |
390 |
377 |
25.86 |
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.9 |
3,827 |
3,827 |
0 |
704 |
1,881 |
1,242 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
790 |
1 |
2 |
2.6 |
8.8 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,530 |
1 |
64 |
15.2 |
34.7 |
1,782,990 |
46,102 |
25,357 |
91,622 |
885,112 |
806,256 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,424 |
3 |
58 |
21.4 |
39.7 |
2,707,123 |
126,355 |
66,587 |
113,463 |
1,294,568 |
1,299,092 |
32,539 |
41 |
133,174 |
1 |
| configure.ocaml |
no-host |
3,694 |
1 |
2 |
2.7 |
28.8 |
149,874 |
12,477 |
6,520 |
7,819 |
70,840 |
71,215 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.3 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,704 |
1 |
2 |
2.6 |
33.3 |
140,018 |
8,081 |
6,715 |
6,526 |
68,348 |
65,144 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.8 |
116,369 |
64,439 |
42,640 |
4,562 |
54,472 |
57,335 |
277 |
3 |
85,280 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,826 |
3,826 |
0 |
705 |
1,881 |
1,240 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
794 |
1 |
2 |
2.6 |
8.1 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,525 |
1 |
63 |
15.2 |
34.5 |
1,782,989 |
46,088 |
25,353 |
91,623 |
885,112 |
806,254 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,435 |
3 |
57 |
21.4 |
39.6 |
2,707,123 |
126,348 |
66,580 |
113,465 |
1,294,568 |
1,299,090 |
32,539 |
41 |
133,160 |
1 |
| configure.ocaml |
no-host |
3,688 |
1 |
2 |
2.7 |
28.8 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.1 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,692 |
1 |
2 |
2.6 |
33.3 |
140,018 |
8,070 |
6,704 |
6,528 |
68,348 |
65,142 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
9.2 |
116,368 |
64,434 |
42,635 |
4,563 |
54,472 |
57,333 |
277 |
3 |
85,270 |
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 |
10 |
6 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
543 |
486 |
60 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
12 |
9 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
609 |
313 |
335 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
434 |
275 |
166 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,451 |
887 |
1,828 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
790 |
303 |
504 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
794 |
316 |
494 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,678 |
7,393 |
6,654 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,702 |
7,360 |
6,718 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,250 |
16,014 |
15,187 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,530 |
7,218 |
7,598 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,525 |
7,221 |
7,449 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,631 |
1,435 |
1,235 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,617 |
1,415 |
1,226 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,612 |
2,133 |
1,699 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,694 |
1,447 |
1,288 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,688 |
1,455 |
1,272 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
26 |
20 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
26 |
15 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
163 |
63 |
26.0 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
24 |
24 |
26.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,442 |
6,431 |
6,461 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,213 |
6,396 |
7,293 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
31,804 |
20,055 |
12,789 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,424 |
6,154 |
7,495 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,435 |
6,120 |
7,386 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,678 |
923 |
763 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,634 |
920 |
715 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,401 |
1,424 |
1,019 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,704 |
921 |
786 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,692 |
895 |
800 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
41 |
20 |
18.0 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
6.4 |
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,394 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,172 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,837 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,438 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,304 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,917 |
0 |
0 |
0 |
8 |
0 |
1,992 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,361 |
0 |
0 |
0 |
8 |
0 |
2,987 |
47 |
dash |
| 17 |
no-host |
bin-true |
844,524 |
0 |
0 |
0 |
8 |
0 |
1,999 |
136 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,273 |
0 |
0 |
0 |
16 |
0 |
1,992 |
115 |
osh-native |
| 33 |
no-host |
bin-true |
134,369 |
0 |
0 |
0 |
16 |
0 |
1,980 |
102 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,620,701 |
0 |
0 |
0 |
25,272 |
0 |
14,031 |
1,059 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,034 |
0 |
0 |
0 |
25,272 |
0 |
14,061 |
1,079 |
dash |
| 18 |
no-host |
configure.cpython |
5,997,978 |
0 |
0 |
0 |
25,272 |
0 |
12,887 |
857 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,815,767 |
0 |
0 |
0 |
25,280 |
0 |
12,865 |
1,093 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,795,642 |
0 |
0 |
0 |
25,280 |
0 |
12,842 |
1,183 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,221 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
202 |
bash |
| 12 |
no-host |
configure.ocaml |
280,731 |
0 |
0 |
0 |
4,432 |
0 |
2,096 |
187 |
dash |
| 20 |
no-host |
configure.ocaml |
557,618 |
0 |
0 |
0 |
4,432 |
0 |
1,910 |
179 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,150 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
184 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,214 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
192 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,244 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,203 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,945 |
0 |
0 |
0 |
88 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,964 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,837 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,536,448 |
1 |
0 |
0 |
35,944 |
0 |
18,973 |
1,142 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,643 |
1 |
0 |
0 |
35,936 |
0 |
16,971 |
1,251 |
dash |
| 19 |
no-host |
configure.util-linux |
4,993,814 |
0 |
0 |
0 |
35,944 |
0 |
17,553 |
1,022 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,717,676 |
0 |
0 |
0 |
35,944 |
0 |
17,579 |
1,070 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,706,044 |
2 |
0 |
0 |
35,944 |
0 |
17,501 |
1,124 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,512 |
0 |
0 |
0 |
3,616 |
0 |
874 |
96 |
bash |
| 14 |
no-host |
configure.yash |
159,554 |
0 |
0 |
0 |
3,624 |
0 |
1,000 |
103 |
dash |
| 22 |
no-host |
configure.yash |
316,347 |
0 |
0 |
0 |
3,616 |
0 |
861 |
107 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,940 |
0 |
0 |
0 |
3,624 |
0 |
859 |
102 |
osh-native |
| 38 |
no-host |
configure.yash |
178,641 |
0 |
0 |
0 |
3,624 |
0 |
856 |
103 |
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,931 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
390 |
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