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 |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
9 |
459 |
22 |
24.23 |
1.17 |
bin-true |
no-host |
672 |
538 |
2,216 |
825 |
3.30 |
1.23 |
configure.cpython |
no-host |
15,006 |
15,122 |
28,434 |
15,264 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,812 |
3,745 |
4,639 |
3,839 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
194 |
49 |
4.06 |
1.02 |
configure.util-linux |
no-host |
13,947 |
14,863 |
31,110 |
14,417 |
2.23 |
1.03 |
configure.yash |
no-host |
1,811 |
1,779 |
2,429 |
1,818 |
1.34 |
1.00 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
31.98 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,517 |
1,098 |
23,380 |
3,210 |
9.29 |
1.28 |
bin-true |
no-host |
104,275 |
66,341 |
754,912 |
129,170 |
7.24 |
1.24 |
configure.cpython |
no-host |
2,226,994 |
2,241,933 |
6,158,066 |
2,233,951 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,497 |
391,718 |
638,218 |
414,082 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,467 |
23,225 |
6,967 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,101,042 |
2,257,768 |
5,316,758 |
2,009,029 |
2.53 |
0.96 |
configure.yash |
no-host |
256,786 |
244,498 |
386,136 |
257,828 |
1.50 |
1.00 |
hello-world |
no-host |
155 |
79 |
3,657 |
345 |
23.59 |
2.23 |
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.3 |
3,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
825 |
1 |
2 |
2.7 |
8.1 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,264 |
1 |
60 |
15.8 |
27.3 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,417 |
3 |
59 |
22.2 |
30.3 |
2,703,267 |
44,765 |
65,811 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,839 |
1 |
2 |
2.7 |
20.4 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,818 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,265 |
64,454 |
42,662 |
4,609 |
54,543 |
57,113 |
478 |
3 |
85,324 |
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 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
459 |
430 |
32 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
672 |
482 |
221 |
2.9 |
bash |
9 |
no-host |
bin-true |
538 |
417 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,216 |
1,450 |
1,022 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
825 |
599 |
240 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,006 |
8,977 |
6,426 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,122 |
9,120 |
6,427 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,434 |
17,112 |
13,155 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,264 |
9,211 |
6,323 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,812 |
1,660 |
1,188 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,745 |
1,547 |
1,217 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,639 |
2,282 |
1,560 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,839 |
1,630 |
1,247 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
21 |
27 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
21 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
155 |
42 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,947 |
8,791 |
5,627 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,863 |
9,072 |
6,285 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,110 |
20,729 |
11,465 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,417 |
8,678 |
5,933 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,811 |
1,077 |
743 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,779 |
1,038 |
744 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,429 |
1,497 |
975 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,818 |
1,036 |
785 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
48 |
24 |
23 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
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 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,098 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,380 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,210 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
104,275 |
0 |
0 |
0 |
8 |
0 |
1,984 |
48 |
bash |
9 |
no-host |
bin-true |
66,341 |
0 |
0 |
0 |
8 |
0 |
1,989 |
102 |
dash |
17 |
no-host |
bin-true |
754,912 |
0 |
0 |
0 |
8 |
0 |
1,993 |
89 |
osh-cpython |
25 |
no-host |
bin-true |
129,170 |
0 |
0 |
0 |
16 |
0 |
1,990 |
170 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,994 |
0 |
0 |
0 |
32,928 |
0 |
14,398 |
1,122 |
bash |
10 |
no-host |
configure.cpython |
2,241,933 |
0 |
0 |
0 |
32,992 |
0 |
14,534 |
1,063 |
dash |
18 |
no-host |
configure.cpython |
6,158,066 |
1 |
0 |
0 |
27,512 |
0 |
13,217 |
1,382 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,951 |
0 |
0 |
0 |
27,520 |
0 |
13,353 |
1,182 |
osh-native |
4 |
no-host |
configure.ocaml |
410,497 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
160 |
bash |
12 |
no-host |
configure.ocaml |
391,718 |
0 |
0 |
0 |
5,112 |
0 |
1,924 |
152 |
dash |
20 |
no-host |
configure.ocaml |
638,218 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
174 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,082 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
185 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,467 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,225 |
0 |
0 |
0 |
96 |
0 |
53 |
20 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,967 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,042 |
0 |
0 |
0 |
42,400 |
0 |
18,612 |
1,132 |
bash |
11 |
no-host |
configure.util-linux |
2,257,768 |
0 |
0 |
0 |
42,584 |
0 |
17,464 |
980 |
dash |
19 |
no-host |
configure.util-linux |
5,316,758 |
6 |
0 |
0 |
39,112 |
0 |
17,049 |
1,351 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,029 |
1 |
0 |
0 |
39,120 |
0 |
17,050 |
960 |
osh-native |
6 |
no-host |
configure.yash |
256,786 |
0 |
0 |
0 |
4,120 |
0 |
865 |
81 |
bash |
14 |
no-host |
configure.yash |
244,498 |
0 |
0 |
0 |
3,720 |
0 |
865 |
103 |
dash |
22 |
no-host |
configure.yash |
386,136 |
0 |
0 |
0 |
3,728 |
0 |
858 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
257,828 |
0 |
0 |
0 |
3,736 |
0 |
852 |
90 |
osh-native |
0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,657 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host