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 |
544 |
22 |
21 |
34.19 |
1.35 |
| bin-true |
no-host |
617 |
444 |
2,445 |
790 |
790 |
3.96 |
1.28 |
| configure.cpython |
no-host |
13,961 |
14,050 |
29,855 |
14,821 |
14,914 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,729 |
3,660 |
4,697 |
3,773 |
3,780 |
1.26 |
1.01 |
| configure.tcc |
no-host |
47 |
42 |
224 |
50 |
49 |
4.81 |
1.07 |
| configure.util-linux |
no-host |
12,721 |
13,469 |
32,517 |
13,690 |
13,892 |
2.56 |
1.08 |
| configure.yash |
no-host |
1,720 |
1,663 |
2,462 |
1,773 |
1,738 |
1.43 |
1.03 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
49.05 |
2.40 |
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,396 |
1,184 |
24,711 |
3,457 |
3,353 |
10.31 |
1.44 |
| bin-true |
no-host |
100,954 |
49,400 |
836,609 |
134,209 |
132,218 |
8.29 |
1.33 |
| configure.cpython |
no-host |
1,622,785 |
1,641,459 |
6,006,068 |
1,816,004 |
1,798,290 |
3.70 |
1.12 |
| configure.ocaml |
no-host |
298,450 |
280,574 |
557,462 |
317,700 |
315,782 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,216 |
4,210 |
23,914 |
5,997 |
5,855 |
4.58 |
1.15 |
| configure.util-linux |
no-host |
1,539,552 |
1,692,130 |
4,977,345 |
1,710,388 |
1,711,495 |
3.23 |
1.11 |
| configure.yash |
no-host |
173,597 |
159,572 |
315,867 |
179,585 |
178,831 |
1.82 |
1.03 |
| hello-world |
no-host |
149 |
86 |
3,871 |
385 |
377 |
25.98 |
2.58 |
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,827 |
3,827 |
0 |
704 |
1,881 |
1,242 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
790 |
1 |
2 |
2.6 |
8.7 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,821 |
1 |
66 |
15.2 |
34.2 |
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,690 |
3 |
60 |
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,773 |
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 |
50 |
0 |
0 |
1.3 |
26.2 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,773 |
1 |
2 |
2.6 |
33.4 |
140,018 |
8,081 |
6,715 |
6,526 |
68,348 |
65,144 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.7 |
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 |
790 |
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,914 |
1 |
65 |
15.2 |
34.4 |
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,892 |
3 |
61 |
21.4 |
39.9 |
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,780 |
1 |
2 |
2.7 |
28.7 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.4 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,738 |
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 |
21 |
1 |
2 |
2.8 |
9.3 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
544 |
488 |
59 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
617 |
309 |
344 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
444 |
286 |
161 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,445 |
890 |
1,821 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
790 |
314 |
492 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
790 |
322 |
485 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,961 |
7,639 |
6,685 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,050 |
7,578 |
6,860 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,855 |
16,211 |
15,627 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,821 |
7,410 |
7,694 |
34.2 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,914 |
7,460 |
7,584 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,729 |
1,506 |
1,262 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,660 |
1,501 |
1,181 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,697 |
2,118 |
1,800 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,773 |
1,496 |
1,318 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,780 |
1,518 |
1,302 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
23 |
24 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
20 |
22 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
224 |
155 |
73 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
28 |
22 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
29 |
20 |
26.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,721 |
6,541 |
6,641 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,469 |
6,490 |
7,447 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,517 |
20,442 |
13,142 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,690 |
6,381 |
7,537 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,892 |
6,276 |
7,685 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,720 |
981 |
747 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,663 |
950 |
714 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,462 |
1,443 |
1,060 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,773 |
995 |
781 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,738 |
964 |
777 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
44 |
16 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
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,396 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,184 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,711 |
0 |
0 |
0 |
8 |
0 |
44 |
4 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,457 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,353 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,954 |
0 |
0 |
0 |
8 |
0 |
1,982 |
64 |
bash |
| 9 |
no-host |
bin-true |
49,400 |
0 |
0 |
0 |
8 |
0 |
2,956 |
75 |
dash |
| 17 |
no-host |
bin-true |
836,609 |
0 |
0 |
0 |
8 |
0 |
1,991 |
147 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,209 |
0 |
0 |
0 |
16 |
0 |
1,976 |
93 |
osh-native |
| 33 |
no-host |
bin-true |
132,218 |
0 |
0 |
0 |
16 |
0 |
1,987 |
87 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,622,785 |
0 |
0 |
0 |
25,272 |
0 |
14,037 |
1,035 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,459 |
0 |
0 |
0 |
25,272 |
0 |
14,068 |
1,113 |
dash |
| 18 |
no-host |
configure.cpython |
6,006,068 |
0 |
0 |
0 |
25,272 |
0 |
12,886 |
880 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,816,004 |
0 |
0 |
0 |
25,280 |
0 |
12,866 |
1,041 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,798,290 |
0 |
0 |
0 |
25,280 |
0 |
12,840 |
1,056 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,450 |
0 |
0 |
0 |
4,432 |
0 |
2,011 |
202 |
bash |
| 12 |
no-host |
configure.ocaml |
280,574 |
0 |
0 |
0 |
4,432 |
0 |
2,093 |
203 |
dash |
| 20 |
no-host |
configure.ocaml |
557,462 |
0 |
0 |
0 |
4,432 |
0 |
1,915 |
194 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,700 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
200 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,782 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
185 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,216 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,210 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,914 |
0 |
0 |
0 |
88 |
0 |
53 |
8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,997 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,855 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,539,552 |
1 |
0 |
0 |
35,944 |
0 |
18,957 |
1,081 |
bash |
| 11 |
no-host |
configure.util-linux |
1,692,130 |
3 |
0 |
0 |
35,936 |
0 |
17,117 |
1,266 |
dash |
| 19 |
no-host |
configure.util-linux |
4,977,345 |
2 |
0 |
0 |
35,944 |
0 |
17,520 |
905 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,710,388 |
0 |
0 |
0 |
35,944 |
0 |
17,406 |
1,122 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,711,495 |
0 |
0 |
0 |
35,952 |
0 |
17,434 |
1,080 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,597 |
0 |
0 |
0 |
3,616 |
0 |
874 |
102 |
bash |
| 14 |
no-host |
configure.yash |
159,572 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
105 |
dash |
| 22 |
no-host |
configure.yash |
315,867 |
0 |
0 |
0 |
3,616 |
0 |
864 |
108 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,585 |
0 |
0 |
0 |
3,624 |
0 |
858 |
91 |
osh-native |
| 38 |
no-host |
configure.yash |
178,831 |
0 |
0 |
0 |
3,624 |
0 |
856 |
107 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,871 |
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 |
377 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host