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 |
10 |
447 |
22 |
21 |
23.51 |
1.18 |
bin-true |
no-host |
673 |
543 |
2,261 |
819 |
823 |
3.36 |
1.22 |
configure.cpython |
no-host |
14,985 |
15,103 |
28,673 |
15,320 |
15,319 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,803 |
3,751 |
4,640 |
3,822 |
3,849 |
1.22 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
195 |
48 |
49 |
4.13 |
1.02 |
configure.util-linux |
no-host |
14,028 |
14,910 |
31,176 |
14,360 |
14,343 |
2.22 |
1.02 |
configure.yash |
no-host |
1,814 |
1,768 |
2,451 |
1,830 |
1,857 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
3 |
32.54 |
1.90 |
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,549 |
1,106 |
23,161 |
3,222 |
3,077 |
9.09 |
1.26 |
bin-true |
no-host |
103,387 |
67,465 |
764,242 |
127,127 |
125,930 |
7.39 |
1.23 |
configure.cpython |
no-host |
2,220,835 |
2,236,866 |
6,212,976 |
2,230,322 |
2,211,794 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,176 |
390,386 |
644,890 |
413,315 |
413,816 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,541 |
5,473 |
23,558 |
6,991 |
6,948 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,099,993 |
2,262,314 |
5,345,534 |
2,002,743 |
1,993,965 |
2.55 |
0.95 |
configure.yash |
no-host |
255,551 |
245,197 |
386,393 |
258,585 |
258,049 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
83 |
3,736 |
351 |
342 |
24.74 |
2.32 |
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 |
819 |
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 |
15,320 |
1 |
64 |
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,360 |
3 |
61 |
21.3 |
30.0 |
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,822 |
1 |
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,830 |
1 |
2 |
2.6 |
24.2 |
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 |
9.0 |
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 |
5.9 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
823 |
1 |
2 |
2.6 |
7.3 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,319 |
1 |
64 |
14.9 |
27.3 |
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,343 |
3 |
61 |
21.3 |
30.0 |
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,849 |
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 |
49 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,857 |
1 |
2 |
2.6 |
24.4 |
139,749 |
7,958 |
6,617 |
6,338 |
70,281 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.4 |
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 |
15 |
5 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
447 |
416 |
34 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
8.4 |
osh-native-souffle |
1 |
no-host |
bin-true |
673 |
500 |
200 |
3.0 |
bash |
9 |
no-host |
bin-true |
543 |
412 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,261 |
1,510 |
1,008 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
587 |
248 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
823 |
574 |
257 |
7.3 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,985 |
8,926 |
6,449 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,103 |
9,135 |
6,392 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,673 |
17,192 |
13,351 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,320 |
8,961 |
6,621 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,319 |
8,971 |
6,523 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,803 |
1,664 |
1,174 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,751 |
1,545 |
1,226 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,640 |
2,284 |
1,566 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,822 |
1,665 |
1,195 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,849 |
1,676 |
1,211 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
31 |
16 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
10 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
162 |
37 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
25 |
24 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,028 |
8,758 |
5,730 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,910 |
9,088 |
6,312 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,176 |
20,717 |
11,535 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,360 |
8,652 |
5,889 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,343 |
8,674 |
5,835 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,814 |
1,039 |
784 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,768 |
1,049 |
723 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,451 |
1,513 |
980 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,830 |
1,013 |
822 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,857 |
1,048 |
812 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
33 |
16 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,549 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,161 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,222 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,077 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
103,387 |
0 |
0 |
0 |
8 |
0 |
1,990 |
45 |
bash |
9 |
no-host |
bin-true |
67,465 |
0 |
0 |
0 |
8 |
0 |
1,993 |
98 |
dash |
17 |
no-host |
bin-true |
764,242 |
0 |
0 |
0 |
8 |
0 |
1,999 |
338 |
osh-cpython |
25 |
no-host |
bin-true |
127,127 |
0 |
0 |
0 |
16 |
0 |
1,993 |
305 |
osh-native |
33 |
no-host |
bin-true |
125,930 |
0 |
0 |
0 |
16 |
0 |
1,993 |
51 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,220,835 |
0 |
0 |
0 |
32,928 |
0 |
14,525 |
1,089 |
bash |
10 |
no-host |
configure.cpython |
2,236,866 |
0 |
0 |
0 |
32,992 |
0 |
14,712 |
1,019 |
dash |
18 |
no-host |
configure.cpython |
6,212,976 |
0 |
0 |
0 |
27,512 |
0 |
13,326 |
1,271 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,230,322 |
0 |
0 |
0 |
27,520 |
0 |
13,247 |
1,205 |
osh-native |
34 |
no-host |
configure.cpython |
2,211,794 |
0 |
0 |
0 |
27,520 |
0 |
13,328 |
1,153 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,176 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
194 |
bash |
12 |
no-host |
configure.ocaml |
390,386 |
0 |
0 |
0 |
5,112 |
0 |
1,895 |
155 |
dash |
20 |
no-host |
configure.ocaml |
644,890 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
182 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,315 |
0 |
0 |
0 |
5,120 |
0 |
1,919 |
159 |
osh-native |
36 |
no-host |
configure.ocaml |
413,816 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
181 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,541 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,558 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,991 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,948 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,099,993 |
0 |
0 |
0 |
42,400 |
0 |
18,655 |
1,173 |
bash |
11 |
no-host |
configure.util-linux |
2,262,314 |
1 |
0 |
0 |
42,584 |
0 |
17,479 |
1,126 |
dash |
19 |
no-host |
configure.util-linux |
5,345,534 |
9 |
0 |
0 |
39,112 |
0 |
17,110 |
1,242 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,743 |
0 |
0 |
0 |
39,128 |
0 |
16,951 |
1,128 |
osh-native |
35 |
no-host |
configure.util-linux |
1,993,965 |
0 |
0 |
0 |
39,136 |
0 |
16,961 |
1,080 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,551 |
0 |
0 |
0 |
4,120 |
0 |
867 |
87 |
bash |
14 |
no-host |
configure.yash |
245,197 |
0 |
0 |
0 |
3,720 |
0 |
872 |
83 |
dash |
22 |
no-host |
configure.yash |
386,393 |
0 |
0 |
0 |
3,728 |
0 |
851 |
108 |
osh-cpython |
30 |
no-host |
configure.yash |
258,585 |
0 |
0 |
0 |
3,736 |
0 |
848 |
81 |
osh-native |
38 |
no-host |
configure.yash |
258,049 |
0 |
0 |
0 |
3,736 |
0 |
847 |
75 |
osh-native-souffle |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,736 |
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 |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host