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 |
535 |
23 |
21 |
32.45 |
1.37 |
| bin-true |
no-host |
650 |
464 |
2,491 |
826 |
820 |
3.83 |
1.27 |
| configure.cpython |
no-host |
14,316 |
14,288 |
30,581 |
15,185 |
15,272 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,771 |
3,746 |
4,781 |
3,840 |
3,840 |
1.27 |
1.02 |
| configure.tcc |
no-host |
47 |
43 |
225 |
51 |
49 |
4.80 |
1.08 |
| configure.util-linux |
no-host |
12,988 |
13,792 |
33,354 |
14,166 |
14,250 |
2.57 |
1.09 |
| configure.yash |
no-host |
1,755 |
1,719 |
2,543 |
1,796 |
1,785 |
1.45 |
1.02 |
| hello-world |
no-host |
1 |
1 |
64 |
3 |
3 |
42.88 |
2.00 |
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,399 |
1,160 |
24,737 |
3,467 |
3,365 |
10.31 |
1.45 |
| bin-true |
no-host |
101,941 |
49,349 |
829,600 |
136,222 |
133,277 |
8.14 |
1.34 |
| configure.cpython |
no-host |
1,626,230 |
1,642,746 |
5,946,688 |
1,804,100 |
1,790,001 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
298,944 |
280,760 |
555,134 |
316,310 |
316,007 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,199 |
4,213 |
23,723 |
6,015 |
5,912 |
4.56 |
1.16 |
| configure.util-linux |
no-host |
1,533,346 |
1,696,686 |
4,958,783 |
1,718,529 |
1,702,230 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,502 |
159,557 |
314,885 |
179,577 |
179,203 |
1.81 |
1.04 |
| hello-world |
no-host |
151 |
85 |
3,876 |
386 |
375 |
25.67 |
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,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
826 |
1 |
2 |
2.6 |
8.7 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,185 |
1 |
72 |
15.2 |
34.5 |
1,782,988 |
46,101 |
25,356 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,166 |
3 |
66 |
21.4 |
39.7 |
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,840 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
26.0 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,796 |
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 |
23 |
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.4 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
820 |
1 |
2 |
2.6 |
8.3 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,272 |
1 |
68 |
15.2 |
34.5 |
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,250 |
3 |
64 |
21.4 |
39.6 |
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,840 |
1 |
2 |
2.7 |
28.5 |
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,785 |
1 |
2 |
2.6 |
33.3 |
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.3 |
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 |
7 |
10 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
535 |
475 |
64 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
10 |
13 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
650 |
313 |
376 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
464 |
285 |
187 |
1.8 |
dash |
| 17 |
no-host |
bin-true |
2,491 |
864 |
1,899 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
826 |
304 |
538 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
820 |
310 |
529 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,316 |
7,663 |
7,049 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,288 |
7,661 |
7,045 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
30,581 |
16,681 |
15,936 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,185 |
7,520 |
7,979 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,272 |
7,441 |
7,987 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,771 |
1,465 |
1,347 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,746 |
1,464 |
1,307 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,781 |
2,186 |
1,820 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,840 |
1,573 |
1,309 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,840 |
1,496 |
1,384 |
28.5 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
22 |
26 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
25 |
18 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
225 |
157 |
72 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
25 |
26 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
26 |
24 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,988 |
6,666 |
6,806 |
39.8 |
bash |
| 11 |
no-host |
configure.util-linux |
13,792 |
6,522 |
7,776 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
33,354 |
20,810 |
13,672 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,166 |
6,497 |
7,915 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,250 |
6,386 |
7,953 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,755 |
969 |
795 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,719 |
939 |
782 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
2,543 |
1,498 |
1,091 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,796 |
994 |
805 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,785 |
996 |
792 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
64 |
39 |
25 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,399 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,160 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,737 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,467 |
0 |
0 |
0 |
16 |
0 |
38 |
3 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,365 |
0 |
0 |
0 |
16 |
0 |
39 |
6 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,941 |
0 |
0 |
0 |
8 |
0 |
1,983 |
96 |
bash |
| 9 |
no-host |
bin-true |
49,349 |
0 |
0 |
0 |
8 |
0 |
2,979 |
61 |
dash |
| 17 |
no-host |
bin-true |
829,600 |
0 |
0 |
0 |
8 |
0 |
1,973 |
241 |
osh-cpython |
| 25 |
no-host |
bin-true |
136,222 |
0 |
0 |
0 |
16 |
0 |
1,982 |
121 |
osh-native |
| 33 |
no-host |
bin-true |
133,277 |
0 |
0 |
0 |
16 |
0 |
1,968 |
83 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,626,230 |
0 |
0 |
0 |
25,272 |
0 |
14,037 |
1,213 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,746 |
0 |
0 |
0 |
25,272 |
0 |
14,083 |
1,169 |
dash |
| 18 |
no-host |
configure.cpython |
5,946,688 |
0 |
0 |
0 |
25,272 |
0 |
12,863 |
1,104 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,804,100 |
0 |
0 |
0 |
25,280 |
0 |
12,876 |
1,173 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,790,001 |
0 |
0 |
0 |
25,280 |
0 |
12,861 |
1,069 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,944 |
0 |
0 |
0 |
4,432 |
0 |
2,005 |
200 |
bash |
| 12 |
no-host |
configure.ocaml |
280,760 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
201 |
dash |
| 20 |
no-host |
configure.ocaml |
555,134 |
0 |
0 |
0 |
4,432 |
0 |
1,914 |
203 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,310 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
209 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,007 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
271 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,199 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,723 |
0 |
0 |
0 |
88 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,015 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,912 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,533,346 |
0 |
0 |
0 |
35,944 |
0 |
18,999 |
1,192 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,686 |
0 |
0 |
0 |
35,936 |
0 |
17,053 |
1,276 |
dash |
| 19 |
no-host |
configure.util-linux |
4,958,783 |
4 |
0 |
0 |
35,952 |
0 |
17,571 |
1,114 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,718,529 |
0 |
0 |
0 |
35,952 |
0 |
17,574 |
1,097 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,702,230 |
1 |
0 |
0 |
35,952 |
0 |
17,439 |
1,081 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,502 |
0 |
0 |
0 |
3,616 |
0 |
875 |
123 |
bash |
| 14 |
no-host |
configure.yash |
159,557 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
142 |
dash |
| 22 |
no-host |
configure.yash |
314,885 |
0 |
0 |
0 |
3,616 |
0 |
860 |
118 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,577 |
0 |
0 |
0 |
3,624 |
0 |
856 |
138 |
osh-native |
| 38 |
no-host |
configure.yash |
179,203 |
0 |
0 |
0 |
3,624 |
0 |
854 |
142 |
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 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,876 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
375 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host