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 |
19 |
9 |
476 |
21 |
20 |
25.30 |
1.14 |
| bin-true |
no-host |
647 |
525 |
2,304 |
770 |
767 |
3.56 |
1.19 |
| configure.cpython |
no-host |
14,717 |
14,824 |
28,376 |
14,927 |
15,020 |
1.93 |
1.01 |
| configure.ocaml |
no-host |
3,822 |
3,716 |
4,646 |
3,776 |
3,786 |
1.22 |
0.99 |
| configure.tcc |
no-host |
46 |
41 |
204 |
48 |
48 |
4.42 |
1.05 |
| configure.util-linux |
no-host |
13,701 |
14,508 |
31,151 |
13,949 |
13,965 |
2.27 |
1.02 |
| configure.yash |
no-host |
1,796 |
1,750 |
2,437 |
1,796 |
1,804 |
1.36 |
1.00 |
| hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
40.89 |
2.01 |
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,536 |
1,076 |
24,457 |
3,191 |
3,113 |
9.64 |
1.26 |
| bin-true |
no-host |
106,326 |
66,450 |
792,293 |
126,161 |
126,233 |
7.45 |
1.19 |
| configure.cpython |
no-host |
1,999,828 |
2,018,818 |
6,120,407 |
2,021,562 |
2,004,020 |
3.06 |
1.01 |
| configure.ocaml |
no-host |
373,165 |
353,739 |
618,293 |
377,166 |
376,377 |
1.66 |
1.01 |
| configure.tcc |
no-host |
6,072 |
5,005 |
24,108 |
6,521 |
6,435 |
3.97 |
1.07 |
| configure.util-linux |
no-host |
1,912,827 |
2,070,616 |
5,342,574 |
1,823,350 |
1,806,411 |
2.79 |
0.95 |
| configure.yash |
no-host |
233,116 |
222,263 |
367,969 |
235,286 |
234,674 |
1.58 |
1.01 |
| hello-world |
no-host |
145 |
77 |
3,984 |
344 |
342 |
27.48 |
2.37 |
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.4 |
3,810 |
3,810 |
0 |
702 |
1,870 |
1,238 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
770 |
1 |
2 |
2.6 |
8.3 |
156,777 |
15,416 |
2,903 |
8,754 |
77,337 |
70,686 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,927 |
2 |
73 |
15.2 |
29.3 |
1,785,027 |
49,179 |
25,898 |
91,515 |
886,574 |
806,938 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,949 |
3 |
68 |
21.6 |
30.3 |
2,709,226 |
56,216 |
66,561 |
114,377 |
1,295,038 |
1,299,811 |
32,241 |
42 |
133,122 |
1 |
| configure.ocaml |
no-host |
3,776 |
1 |
2 |
2.7 |
22.6 |
149,879 |
12,467 |
6,510 |
7,749 |
70,874 |
71,256 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.6 |
30,580 |
30,580 |
0 |
1,544 |
14,636 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,796 |
1 |
2 |
2.6 |
26.5 |
139,886 |
8,047 |
6,702 |
6,399 |
68,339 |
65,148 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.0 |
116,340 |
64,422 |
42,627 |
4,546 |
54,461 |
57,333 |
277 |
3 |
85,254 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.0 |
3,809 |
3,809 |
0 |
703 |
1,870 |
1,236 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
767 |
1 |
2 |
2.6 |
7.7 |
156,776 |
15,411 |
2,898 |
8,755 |
77,337 |
70,684 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,020 |
1 |
74 |
15.2 |
29.2 |
1,785,026 |
49,166 |
25,885 |
91,516 |
886,574 |
806,936 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,965 |
3 |
70 |
21.6 |
30.2 |
2,709,226 |
56,191 |
66,554 |
114,379 |
1,295,038 |
1,299,809 |
32,241 |
42 |
133,108 |
1 |
| configure.ocaml |
no-host |
3,786 |
1 |
2 |
2.7 |
22.6 |
149,879 |
12,461 |
6,504 |
7,751 |
70,874 |
71,254 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.5 |
30,580 |
30,580 |
0 |
1,546 |
14,636 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,804 |
1 |
2 |
2.6 |
26.2 |
139,886 |
8,036 |
6,691 |
6,401 |
68,339 |
65,146 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
8.8 |
116,339 |
64,417 |
42,622 |
4,547 |
54,461 |
57,331 |
277 |
3 |
85,244 |
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 |
19 |
9 |
11 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
476 |
419 |
61 |
23.0 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
8 |
13 |
8.8 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
647 |
306 |
373 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
525 |
282 |
257 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,304 |
812 |
1,754 |
18.6 |
osh-cpython |
| 25 |
no-host |
bin-true |
770 |
311 |
476 |
8.3 |
osh-native |
| 33 |
no-host |
bin-true |
767 |
308 |
475 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,717 |
6,772 |
8,358 |
29.2 |
bash |
| 10 |
no-host |
configure.cpython |
14,824 |
6,789 |
8,471 |
29.3 |
dash |
| 18 |
no-host |
configure.cpython |
28,376 |
14,394 |
15,856 |
29.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,927 |
6,696 |
8,526 |
29.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,020 |
6,696 |
8,432 |
29.2 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,822 |
1,334 |
1,520 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,716 |
1,333 |
1,405 |
22.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,646 |
1,928 |
1,932 |
22.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,776 |
1,325 |
1,489 |
22.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,786 |
1,357 |
1,468 |
22.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
19.6 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
20 |
21 |
19.7 |
dash |
| 21 |
no-host |
configure.tcc |
204 |
143 |
66 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
20 |
29 |
19.6 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
20 |
28 |
19.5 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,701 |
5,931 |
8,267 |
30.2 |
bash |
| 11 |
no-host |
configure.util-linux |
14,508 |
5,985 |
9,040 |
30.2 |
dash |
| 19 |
no-host |
configure.util-linux |
31,151 |
18,000 |
14,241 |
30.2 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,949 |
5,645 |
8,540 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,965 |
5,784 |
8,413 |
30.2 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,796 |
947 |
859 |
26.3 |
bash |
| 14 |
no-host |
configure.yash |
1,750 |
905 |
850 |
26.5 |
dash |
| 22 |
no-host |
configure.yash |
2,437 |
1,338 |
1,144 |
26.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,796 |
902 |
900 |
26.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,804 |
925 |
884 |
26.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
34 |
23 |
18.6 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.0 |
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,536 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,076 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,457 |
0 |
0 |
0 |
8 |
0 |
45 |
3 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,191 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,113 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,326 |
0 |
0 |
0 |
8 |
0 |
1,980 |
95 |
bash |
| 9 |
no-host |
bin-true |
66,450 |
0 |
0 |
0 |
8 |
0 |
1,980 |
52 |
dash |
| 17 |
no-host |
bin-true |
792,293 |
0 |
0 |
0 |
8 |
0 |
1,985 |
466 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,161 |
0 |
0 |
0 |
16 |
0 |
1,979 |
177 |
osh-native |
| 33 |
no-host |
bin-true |
126,233 |
0 |
0 |
0 |
16 |
0 |
1,968 |
93 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,999,828 |
0 |
0 |
0 |
32,928 |
0 |
14,280 |
1,276 |
bash |
| 10 |
no-host |
configure.cpython |
2,018,818 |
0 |
0 |
0 |
32,992 |
0 |
14,362 |
1,246 |
dash |
| 18 |
no-host |
configure.cpython |
6,120,407 |
1 |
0 |
0 |
27,512 |
0 |
13,095 |
1,211 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,021,562 |
0 |
0 |
0 |
27,520 |
0 |
13,041 |
1,048 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,004,020 |
0 |
0 |
0 |
27,520 |
0 |
13,022 |
1,224 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,165 |
0 |
0 |
0 |
5,120 |
0 |
1,957 |
187 |
bash |
| 12 |
no-host |
configure.ocaml |
353,739 |
0 |
0 |
0 |
5,112 |
0 |
1,938 |
215 |
dash |
| 20 |
no-host |
configure.ocaml |
618,293 |
0 |
0 |
0 |
5,112 |
0 |
1,848 |
208 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
377,166 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
200 |
osh-native |
| 36 |
no-host |
configure.ocaml |
376,377 |
0 |
0 |
0 |
5,120 |
0 |
1,923 |
213 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,072 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,005 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,108 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,521 |
0 |
0 |
0 |
104 |
0 |
46 |
6 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,435 |
0 |
0 |
0 |
104 |
0 |
45 |
5 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,912,827 |
0 |
0 |
0 |
42,400 |
0 |
18,571 |
1,338 |
bash |
| 11 |
no-host |
configure.util-linux |
2,070,616 |
1 |
0 |
0 |
42,584 |
0 |
17,374 |
1,362 |
dash |
| 19 |
no-host |
configure.util-linux |
5,342,574 |
16 |
0 |
0 |
39,120 |
0 |
17,036 |
1,225 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,823,350 |
8 |
0 |
0 |
39,120 |
0 |
17,135 |
1,145 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,806,411 |
3 |
0 |
0 |
39,128 |
0 |
17,023 |
1,240 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
233,116 |
0 |
0 |
0 |
4,120 |
0 |
871 |
88 |
bash |
| 14 |
no-host |
configure.yash |
222,263 |
0 |
0 |
0 |
3,720 |
0 |
869 |
90 |
dash |
| 22 |
no-host |
configure.yash |
367,969 |
0 |
0 |
0 |
3,728 |
0 |
852 |
120 |
osh-cpython |
| 30 |
no-host |
configure.yash |
235,286 |
0 |
0 |
0 |
3,736 |
0 |
849 |
84 |
osh-native |
| 38 |
no-host |
configure.yash |
234,674 |
0 |
0 |
0 |
3,736 |
0 |
850 |
111 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
145 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
77 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,984 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host