oilshell.org
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 |
20 |
9 |
475 |
23 |
21 |
24.30 |
1.17 |
bin-true |
no-host |
690 |
553 |
2,393 |
828 |
828 |
3.47 |
1.20 |
configure.cpython |
no-host |
15,623 |
15,605 |
30,321 |
15,912 |
15,877 |
1.94 |
1.02 |
configure.ocaml |
no-host |
3,933 |
3,923 |
4,858 |
3,950 |
3,919 |
1.24 |
1.00 |
configure.tcc |
no-host |
49 |
45 |
212 |
49 |
49 |
4.35 |
1.01 |
configure.util-linux |
no-host |
14,646 |
15,332 |
33,064 |
14,986 |
14,854 |
2.26 |
1.02 |
configure.yash |
no-host |
1,883 |
1,858 |
2,593 |
1,890 |
1,888 |
1.38 |
1.00 |
hello-world |
no-host |
2 |
1 |
61 |
3 |
3 |
38.24 |
1.85 |
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,559 |
1,095 |
23,912 |
3,158 |
3,103 |
9.34 |
1.23 |
bin-true |
no-host |
105,333 |
65,417 |
791,111 |
124,307 |
127,227 |
7.51 |
1.18 |
configure.cpython |
no-host |
2,219,708 |
2,241,959 |
6,250,902 |
2,228,224 |
2,210,747 |
2.82 |
1.00 |
configure.ocaml |
no-host |
410,371 |
391,244 |
648,496 |
413,007 |
412,592 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,562 |
5,492 |
24,522 |
6,985 |
6,929 |
3.74 |
1.06 |
configure.util-linux |
no-host |
2,103,175 |
2,259,471 |
5,412,479 |
2,001,173 |
1,996,250 |
2.57 |
0.95 |
configure.yash |
no-host |
256,745 |
245,159 |
390,087 |
258,230 |
257,582 |
1.52 |
1.01 |
hello-world |
no-host |
154 |
81 |
4,000 |
351 |
344 |
25.97 |
2.28 |
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.2 |
6.3 |
3,782 |
3,782 |
0 |
695 |
1,857 |
1,230 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
828 |
1 |
2 |
2.6 |
8.3 |
153,746 |
12,266 |
2,886 |
8,744 |
78,326 |
66,676 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,912 |
1 |
66 |
14.9 |
27.4 |
1,771,747 |
49,906 |
28,595 |
85,416 |
908,078 |
778,253 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,986 |
3 |
65 |
21.2 |
30.3 |
2,702,513 |
29,751 |
65,879 |
108,692 |
1,320,584 |
1,273,237 |
32,239 |
41 |
131,758 |
1 |
configure.ocaml |
no-host |
3,950 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,130 |
5,225 |
7,509 |
71,611 |
70,960 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,519 |
14,781 |
14,286 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,890 |
1 |
2 |
2.5 |
24.4 |
139,406 |
8,026 |
6,688 |
5,987 |
70,286 |
63,133 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,292 |
64,539 |
42,749 |
4,533 |
54,526 |
57,233 |
277 |
3 |
85,498 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,781 |
3,781 |
0 |
696 |
1,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
828 |
1 |
2 |
2.6 |
7.6 |
153,745 |
12,110 |
2,824 |
8,745 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,877 |
1 |
65 |
14.9 |
27.5 |
1,771,746 |
49,108 |
28,533 |
85,417 |
908,078 |
778,251 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,854 |
3 |
62 |
21.2 |
30.3 |
2,702,513 |
29,765 |
65,817 |
108,694 |
1,320,584 |
1,273,235 |
32,239 |
41 |
131,634 |
1 |
configure.ocaml |
no-host |
3,919 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,068 |
5,163 |
7,511 |
71,611 |
70,958 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,521 |
14,781 |
14,284 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,888 |
1 |
2 |
2.5 |
24.4 |
139,406 |
7,964 |
6,626 |
5,989 |
70,286 |
63,131 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,291 |
64,477 |
42,687 |
4,534 |
54,526 |
57,231 |
277 |
3 |
85,374 |
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 |
20 |
20 |
0 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
475 |
418 |
60 |
23.3 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
9 |
8.8 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
17 |
5 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
690 |
493 |
226 |
3.0 |
bash |
9 |
no-host |
bin-true |
553 |
418 |
144 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,393 |
1,545 |
1,120 |
18.9 |
osh-cpython |
25 |
no-host |
bin-true |
828 |
576 |
262 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
828 |
578 |
264 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,623 |
9,459 |
6,569 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,605 |
9,385 |
6,654 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
30,321 |
17,826 |
14,467 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,912 |
9,244 |
6,941 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,877 |
9,223 |
6,829 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,933 |
1,661 |
1,314 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,923 |
1,613 |
1,328 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,858 |
2,294 |
1,789 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,950 |
1,674 |
1,313 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,919 |
1,665 |
1,291 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
35 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
45 |
21 |
24 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
212 |
156 |
59 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
27 |
23 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
31 |
18 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,646 |
8,971 |
6,154 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,332 |
9,362 |
6,461 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
33,064 |
21,693 |
12,509 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,986 |
8,943 |
6,240 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,854 |
8,918 |
6,130 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,883 |
1,150 |
740 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,858 |
1,008 |
853 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,593 |
1,511 |
1,126 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,890 |
1,075 |
819 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,888 |
1,023 |
869 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
61 |
38 |
22 |
18.8 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
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,559 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,095 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,912 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,158 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,103 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,333 |
0 |
0 |
0 |
8 |
0 |
1,987 |
43 |
bash |
9 |
no-host |
bin-true |
65,417 |
0 |
0 |
0 |
8 |
0 |
1,985 |
99 |
dash |
17 |
no-host |
bin-true |
791,111 |
0 |
0 |
0 |
8 |
0 |
1,999 |
282 |
osh-cpython |
25 |
no-host |
bin-true |
124,307 |
0 |
0 |
0 |
16 |
0 |
1,985 |
49 |
osh-native |
33 |
no-host |
bin-true |
127,227 |
0 |
0 |
0 |
16 |
0 |
1,984 |
58 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,219,708 |
0 |
0 |
0 |
32,928 |
0 |
14,507 |
999 |
bash |
10 |
no-host |
configure.cpython |
2,241,959 |
0 |
0 |
0 |
32,992 |
0 |
14,640 |
991 |
dash |
18 |
no-host |
configure.cpython |
6,250,902 |
0 |
0 |
0 |
27,512 |
0 |
13,262 |
1,200 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,224 |
0 |
0 |
0 |
27,520 |
0 |
13,252 |
1,001 |
osh-native |
34 |
no-host |
configure.cpython |
2,210,747 |
0 |
0 |
0 |
27,520 |
0 |
13,306 |
955 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,371 |
0 |
0 |
0 |
5,120 |
0 |
1,942 |
179 |
bash |
12 |
no-host |
configure.ocaml |
391,244 |
0 |
0 |
0 |
5,112 |
0 |
1,872 |
251 |
dash |
20 |
no-host |
configure.ocaml |
648,496 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
188 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,007 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
166 |
osh-native |
36 |
no-host |
configure.ocaml |
412,592 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
142 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,562 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,492 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
dash |
21 |
no-host |
configure.tcc |
24,522 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,985 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,929 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,103,175 |
0 |
0 |
0 |
42,408 |
0 |
18,736 |
1,070 |
bash |
11 |
no-host |
configure.util-linux |
2,259,471 |
0 |
0 |
0 |
42,592 |
0 |
17,479 |
1,046 |
dash |
19 |
no-host |
configure.util-linux |
5,412,479 |
3 |
0 |
0 |
39,144 |
0 |
16,956 |
1,371 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,001,173 |
2 |
0 |
0 |
39,128 |
0 |
16,984 |
960 |
osh-native |
35 |
no-host |
configure.util-linux |
1,996,250 |
1 |
0 |
0 |
39,136 |
0 |
16,971 |
1,005 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,745 |
0 |
0 |
0 |
4,120 |
0 |
868 |
84 |
bash |
14 |
no-host |
configure.yash |
245,159 |
0 |
0 |
0 |
3,720 |
0 |
867 |
76 |
dash |
22 |
no-host |
configure.yash |
390,087 |
0 |
0 |
0 |
3,728 |
0 |
853 |
106 |
osh-cpython |
30 |
no-host |
configure.yash |
258,230 |
0 |
0 |
0 |
3,736 |
0 |
848 |
91 |
osh-native |
38 |
no-host |
configure.yash |
257,582 |
0 |
0 |
0 |
3,736 |
0 |
849 |
78 |
osh-native-souffle |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
4,000 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host