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 |
19 |
9 |
455 |
22 |
20 |
24.21 |
1.17 |
bin-true |
no-host |
678 |
535 |
2,247 |
808 |
806 |
3.32 |
1.19 |
configure.cpython |
no-host |
14,729 |
14,808 |
28,173 |
14,981 |
15,012 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,745 |
3,683 |
4,577 |
3,765 |
3,747 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
193 |
48 |
47 |
4.05 |
1.01 |
configure.util-linux |
no-host |
13,738 |
14,624 |
30,599 |
14,121 |
14,070 |
2.23 |
1.03 |
configure.yash |
no-host |
1,785 |
1,732 |
2,402 |
1,787 |
1,786 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
3 |
31.71 |
1.88 |
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,517 |
1,100 |
23,135 |
3,182 |
3,087 |
9.19 |
1.26 |
bin-true |
no-host |
108,340 |
65,416 |
765,302 |
127,111 |
125,884 |
7.06 |
1.17 |
configure.cpython |
no-host |
2,223,935 |
2,240,615 |
6,214,270 |
2,234,336 |
2,212,107 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,339 |
391,664 |
646,444 |
413,387 |
412,860 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,557 |
5,459 |
23,611 |
7,020 |
6,909 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,102,277 |
2,263,133 |
5,322,607 |
2,002,080 |
1,988,591 |
2.53 |
0.95 |
configure.yash |
no-host |
256,647 |
244,645 |
387,349 |
256,730 |
257,841 |
1.51 |
1.00 |
hello-world |
no-host |
152 |
84 |
3,732 |
351 |
345 |
24.55 |
2.31 |
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,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.6 |
8.1 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,981 |
1 |
57 |
15.0 |
27.4 |
1,772,722 |
49,854 |
28,587 |
86,397 |
908,073 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,121 |
3 |
56 |
21.3 |
30.1 |
2,703,490 |
29,146 |
65,890 |
109,675 |
1,320,579 |
1,273,236 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,765 |
0 |
2 |
2.6 |
20.6 |
150,096 |
11,051 |
5,221 |
7,531 |
71,606 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,520 |
14,776 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,787 |
1 |
2 |
2.6 |
24.4 |
139,749 |
8,020 |
6,679 |
6,336 |
70,281 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,324 |
64,530 |
42,740 |
4,571 |
54,521 |
57,232 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
6.0 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
806 |
1 |
2 |
2.6 |
7.6 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,012 |
1 |
58 |
14.9 |
27.4 |
1,772,721 |
49,105 |
28,525 |
86,398 |
908,073 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,070 |
3 |
57 |
21.3 |
30.1 |
2,703,490 |
42,741 |
65,828 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,747 |
1 |
2 |
2.6 |
20.6 |
150,096 |
10,989 |
5,159 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
47 |
0 |
0 |
1.3 |
19.4 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,786 |
1 |
2 |
2.6 |
24.5 |
139,749 |
7,958 |
6,617 |
6,338 |
70,281 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
8.5 |
116,323 |
64,468 |
42,678 |
4,572 |
54,521 |
57,230 |
270 |
3 |
85,356 |
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 |
17 |
2 |
4.2 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
423 |
35 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
20 |
15 |
6 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
678 |
523 |
189 |
3.0 |
bash |
9 |
no-host |
bin-true |
535 |
426 |
119 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,247 |
1,431 |
1,068 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
808 |
578 |
245 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
806 |
575 |
245 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,729 |
8,895 |
6,236 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,808 |
8,958 |
6,269 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,173 |
17,122 |
12,868 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,981 |
8,878 |
6,372 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,012 |
8,863 |
6,281 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,745 |
1,561 |
1,217 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,683 |
1,542 |
1,163 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,577 |
2,233 |
1,548 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,765 |
1,608 |
1,195 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,747 |
1,640 |
1,143 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
23 |
18 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
193 |
150 |
46 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
47 |
34 |
13 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,738 |
8,711 |
5,503 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,624 |
9,010 |
6,110 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,599 |
20,711 |
10,957 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,121 |
8,526 |
5,793 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,070 |
8,457 |
5,802 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,785 |
1,039 |
746 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,732 |
1,023 |
713 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,402 |
1,508 |
934 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,787 |
1,047 |
745 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,786 |
1,116 |
673 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
28 |
19 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
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,517 |
0 |
0 |
0 |
16 |
0 |
40 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,135 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,182 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,087 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
108,340 |
0 |
0 |
0 |
8 |
0 |
1,994 |
126 |
bash |
9 |
no-host |
bin-true |
65,416 |
0 |
0 |
0 |
8 |
0 |
1,986 |
58 |
dash |
17 |
no-host |
bin-true |
765,302 |
0 |
0 |
0 |
8 |
0 |
1,990 |
173 |
osh-cpython |
25 |
no-host |
bin-true |
127,111 |
0 |
0 |
0 |
16 |
0 |
1,991 |
52 |
osh-native |
33 |
no-host |
bin-true |
125,884 |
0 |
0 |
0 |
16 |
0 |
1,990 |
85 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,223,935 |
0 |
0 |
0 |
32,928 |
0 |
14,584 |
1,207 |
bash |
10 |
no-host |
configure.cpython |
2,240,615 |
0 |
0 |
0 |
32,992 |
0 |
14,643 |
1,216 |
dash |
18 |
no-host |
configure.cpython |
6,214,270 |
0 |
0 |
0 |
27,512 |
0 |
13,273 |
1,215 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,336 |
1 |
0 |
0 |
27,520 |
0 |
13,223 |
1,091 |
osh-native |
34 |
no-host |
configure.cpython |
2,212,107 |
0 |
0 |
0 |
27,520 |
0 |
13,290 |
970 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,339 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
168 |
bash |
12 |
no-host |
configure.ocaml |
391,664 |
0 |
0 |
0 |
5,112 |
0 |
1,939 |
257 |
dash |
20 |
no-host |
configure.ocaml |
646,444 |
1 |
0 |
0 |
5,112 |
0 |
1,858 |
215 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,387 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
160 |
osh-native |
36 |
no-host |
configure.ocaml |
412,860 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
166 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,459 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,611 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,020 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,909 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,277 |
0 |
0 |
0 |
42,400 |
0 |
18,592 |
1,024 |
bash |
11 |
no-host |
configure.util-linux |
2,263,133 |
0 |
0 |
0 |
42,584 |
0 |
17,400 |
1,021 |
dash |
19 |
no-host |
configure.util-linux |
5,322,607 |
8 |
0 |
0 |
39,112 |
0 |
16,932 |
1,320 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,080 |
1 |
0 |
0 |
39,128 |
0 |
16,918 |
1,037 |
osh-native |
35 |
no-host |
configure.util-linux |
1,988,591 |
0 |
0 |
0 |
39,136 |
0 |
16,950 |
908 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,647 |
0 |
0 |
0 |
4,120 |
0 |
870 |
79 |
bash |
14 |
no-host |
configure.yash |
244,645 |
0 |
0 |
0 |
3,720 |
0 |
867 |
80 |
dash |
22 |
no-host |
configure.yash |
387,349 |
0 |
0 |
0 |
3,728 |
0 |
852 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
256,730 |
0 |
0 |
0 |
3,736 |
0 |
846 |
93 |
osh-native |
38 |
no-host |
configure.yash |
257,841 |
0 |
0 |
0 |
3,736 |
0 |
850 |
73 |
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,732 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host