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 |
10 |
450 |
22 |
21 |
22.77 |
1.13 |
bin-true |
no-host |
679 |
541 |
2,268 |
808 |
812 |
3.34 |
1.19 |
configure.cpython |
no-host |
15,033 |
15,048 |
28,489 |
15,274 |
15,338 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,807 |
3,704 |
4,586 |
3,872 |
3,813 |
1.20 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
193 |
50 |
48 |
4.03 |
1.04 |
configure.util-linux |
no-host |
14,092 |
14,948 |
31,283 |
14,302 |
14,393 |
2.22 |
1.01 |
configure.yash |
no-host |
1,835 |
1,749 |
2,424 |
1,839 |
1,815 |
1.32 |
1.00 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
3 |
33.17 |
1.91 |
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,105 |
23,433 |
3,150 |
3,076 |
9.19 |
1.24 |
bin-true |
no-host |
107,359 |
65,430 |
773,252 |
127,293 |
125,210 |
7.20 |
1.19 |
configure.cpython |
no-host |
2,221,247 |
2,239,893 |
6,231,652 |
2,219,873 |
2,206,623 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,093 |
390,852 |
646,132 |
412,836 |
411,634 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,558 |
5,478 |
23,687 |
6,953 |
6,872 |
3.61 |
1.06 |
configure.util-linux |
no-host |
2,099,164 |
2,257,417 |
5,337,688 |
1,997,015 |
1,989,166 |
2.54 |
0.95 |
configure.yash |
no-host |
255,875 |
245,218 |
386,627 |
257,329 |
257,597 |
1.51 |
1.01 |
hello-world |
no-host |
150 |
81 |
3,743 |
349 |
344 |
24.95 |
2.33 |
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.2 |
3,780 |
3,780 |
0 |
695 |
1,856 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.6 |
8.1 |
153,744 |
12,264 |
2,884 |
8,744 |
78,325 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,274 |
1 |
60 |
14.9 |
28.4 |
1,771,745 |
49,904 |
28,593 |
85,416 |
908,077 |
778,252 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,302 |
3 |
58 |
21.2 |
30.3 |
2,702,511 |
29,654 |
65,897 |
108,692 |
1,320,583 |
1,273,236 |
32,239 |
41 |
131,794 |
1 |
configure.ocaml |
no-host |
3,872 |
1 |
2 |
2.6 |
20.6 |
150,078 |
11,128 |
5,223 |
7,509 |
71,610 |
70,959 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,584 |
30,584 |
0 |
1,519 |
14,780 |
14,285 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,839 |
1 |
2 |
2.5 |
24.4 |
139,404 |
8,024 |
6,686 |
5,987 |
70,285 |
63,132 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,290 |
64,537 |
42,747 |
4,533 |
54,525 |
57,232 |
277 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,779 |
3,779 |
0 |
696 |
1,856 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
812 |
1 |
2 |
2.6 |
7.6 |
153,743 |
12,053 |
2,822 |
8,745 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,338 |
1 |
63 |
14.8 |
27.4 |
1,771,744 |
49,106 |
28,531 |
85,417 |
908,077 |
778,250 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,393 |
3 |
63 |
21.2 |
30.1 |
2,702,511 |
29,763 |
65,835 |
108,694 |
1,320,583 |
1,273,234 |
32,239 |
41 |
131,670 |
1 |
configure.ocaml |
no-host |
3,813 |
1 |
2 |
2.6 |
20.4 |
150,078 |
11,066 |
5,161 |
7,511 |
71,610 |
70,957 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,584 |
30,584 |
0 |
1,521 |
14,780 |
14,283 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,815 |
1 |
2 |
2.5 |
24.4 |
139,404 |
7,962 |
6,624 |
5,989 |
70,285 |
63,130 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.4 |
116,289 |
64,475 |
42,685 |
4,534 |
54,525 |
57,230 |
277 |
3 |
85,370 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
450 |
415 |
38 |
22.2 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
8.4 |
osh-native-souffle |
1 |
no-host |
bin-true |
679 |
527 |
185 |
2.9 |
bash |
9 |
no-host |
bin-true |
541 |
411 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,268 |
1,507 |
1,016 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
808 |
557 |
265 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
812 |
563 |
263 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,033 |
9,176 |
6,256 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,048 |
9,432 |
6,029 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,489 |
17,194 |
13,145 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,274 |
9,048 |
6,484 |
28.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,338 |
9,018 |
6,500 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,807 |
1,610 |
1,237 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,704 |
1,587 |
1,136 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,586 |
2,190 |
1,603 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,872 |
1,675 |
1,235 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,813 |
1,652 |
1,196 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
16 |
32 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
130 |
66 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
35 |
15 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
30 |
19 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,092 |
8,837 |
5,741 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,948 |
9,152 |
6,285 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,283 |
20,988 |
11,385 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,302 |
8,578 |
5,922 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,393 |
8,676 |
5,907 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,835 |
1,096 |
748 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,749 |
1,010 |
742 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,424 |
1,483 |
983 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,839 |
1,032 |
810 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,815 |
1,026 |
792 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
27 |
22 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
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 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,105 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,433 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,150 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,076 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,359 |
0 |
0 |
0 |
8 |
0 |
1,993 |
48 |
bash |
9 |
no-host |
bin-true |
65,430 |
0 |
0 |
0 |
8 |
0 |
1,988 |
69 |
dash |
17 |
no-host |
bin-true |
773,252 |
0 |
0 |
0 |
8 |
0 |
1,993 |
111 |
osh-cpython |
25 |
no-host |
bin-true |
127,293 |
0 |
0 |
0 |
16 |
0 |
1,984 |
125 |
osh-native |
33 |
no-host |
bin-true |
125,210 |
0 |
0 |
0 |
16 |
0 |
1,992 |
56 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,221,247 |
0 |
0 |
0 |
32,928 |
0 |
14,491 |
925 |
bash |
10 |
no-host |
configure.cpython |
2,239,893 |
0 |
0 |
0 |
32,992 |
0 |
14,643 |
1,090 |
dash |
18 |
no-host |
configure.cpython |
6,231,652 |
0 |
0 |
0 |
27,512 |
0 |
13,287 |
1,131 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,219,873 |
1 |
0 |
0 |
27,520 |
0 |
13,191 |
998 |
osh-native |
34 |
no-host |
configure.cpython |
2,206,623 |
0 |
0 |
0 |
27,520 |
0 |
13,299 |
950 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,093 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
175 |
bash |
12 |
no-host |
configure.ocaml |
390,852 |
0 |
0 |
0 |
5,112 |
0 |
1,918 |
157 |
dash |
20 |
no-host |
configure.ocaml |
646,132 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
198 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,836 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
162 |
osh-native |
36 |
no-host |
configure.ocaml |
411,634 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
170 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,558 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,687 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,953 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,872 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,099,164 |
0 |
0 |
0 |
42,400 |
0 |
18,697 |
1,123 |
bash |
11 |
no-host |
configure.util-linux |
2,257,417 |
1 |
0 |
0 |
42,592 |
0 |
17,488 |
1,006 |
dash |
19 |
no-host |
configure.util-linux |
5,337,688 |
10 |
0 |
0 |
39,112 |
0 |
17,046 |
1,247 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,015 |
0 |
0 |
0 |
39,120 |
0 |
17,005 |
1,154 |
osh-native |
35 |
no-host |
configure.util-linux |
1,989,166 |
1 |
0 |
0 |
39,128 |
0 |
16,932 |
969 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,875 |
0 |
0 |
0 |
4,120 |
0 |
873 |
70 |
bash |
14 |
no-host |
configure.yash |
245,218 |
0 |
0 |
0 |
3,720 |
0 |
868 |
66 |
dash |
22 |
no-host |
configure.yash |
386,627 |
0 |
0 |
0 |
3,728 |
0 |
850 |
81 |
osh-cpython |
30 |
no-host |
configure.yash |
257,329 |
0 |
0 |
0 |
3,736 |
0 |
848 |
82 |
osh-native |
38 |
no-host |
configure.yash |
257,597 |
0 |
0 |
0 |
3,736 |
0 |
851 |
73 |
osh-native-souffle |
0 |
no-host |
hello-world |
150 |
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 |
3,743 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host