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 |
22 |
10 |
451 |
23 |
20.78 |
1.04 |
bin-true |
no-host |
711 |
561 |
2,226 |
817 |
3.13 |
1.15 |
configure.cpython |
no-host |
15,903 |
15,290 |
29,152 |
15,188 |
1.83 |
0.96 |
configure.ocaml |
no-host |
3,835 |
3,800 |
4,616 |
3,811 |
1.20 |
0.99 |
configure.tcc |
no-host |
50 |
42 |
193 |
49 |
3.83 |
0.97 |
configure.util-linux |
no-host |
14,773 |
15,380 |
31,873 |
14,571 |
2.16 |
0.99 |
configure.yash |
no-host |
1,916 |
1,743 |
2,429 |
1,808 |
1.27 |
0.94 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
30.35 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,566 |
1,140 |
23,395 |
3,209 |
9.12 |
1.25 |
bin-true |
no-host |
106,367 |
66,359 |
753,355 |
127,186 |
7.08 |
1.20 |
configure.cpython |
no-host |
2,214,275 |
2,251,195 |
6,155,619 |
2,233,804 |
2.78 |
1.01 |
configure.ocaml |
no-host |
410,141 |
390,736 |
638,740 |
414,287 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,531 |
5,482 |
23,175 |
6,968 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,104,113 |
2,259,296 |
5,321,740 |
2,010,731 |
2.53 |
0.96 |
configure.yash |
no-host |
255,510 |
245,400 |
386,313 |
259,342 |
1.51 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,658 |
348 |
23.75 |
2.26 |
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.0 |
3,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.7 |
7.9 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,188 |
1 |
62 |
15.8 |
27.4 |
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,571 |
3 |
64 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,811 |
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,808 |
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 |
23 |
1 |
2 |
2.8 |
8.9 |
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 |
22 |
14 |
8 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
451 |
396 |
58 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
5 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
711 |
516 |
230 |
3.0 |
bash |
9 |
no-host |
bin-true |
561 |
428 |
144 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,226 |
1,511 |
973 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
586 |
246 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,903 |
9,520 |
6,815 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,290 |
9,482 |
6,252 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,152 |
17,956 |
13,071 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,188 |
8,972 |
6,492 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,835 |
1,580 |
1,298 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,800 |
1,606 |
1,214 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,616 |
2,175 |
1,645 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,811 |
1,597 |
1,252 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
29 |
22 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
42 |
20 |
22 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
148 |
48 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
24 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,773 |
9,301 |
5,979 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,380 |
9,416 |
6,478 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,873 |
21,472 |
11,513 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,571 |
8,848 |
5,929 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,916 |
1,189 |
737 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,743 |
1,003 |
743 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,429 |
1,479 |
992 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,808 |
1,041 |
772 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
47 |
22 |
25 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,566 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,140 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,395 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,209 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
106,367 |
0 |
0 |
0 |
8 |
0 |
1,992 |
139 |
bash |
9 |
no-host |
bin-true |
66,359 |
0 |
0 |
0 |
8 |
0 |
1,985 |
49 |
dash |
17 |
no-host |
bin-true |
753,355 |
0 |
0 |
0 |
8 |
0 |
1,991 |
133 |
osh-cpython |
25 |
no-host |
bin-true |
127,186 |
0 |
0 |
0 |
16 |
0 |
1,984 |
65 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,275 |
0 |
0 |
0 |
32,928 |
0 |
14,474 |
1,062 |
bash |
10 |
no-host |
configure.cpython |
2,251,195 |
0 |
0 |
0 |
32,992 |
0 |
14,633 |
998 |
dash |
18 |
no-host |
configure.cpython |
6,155,619 |
0 |
0 |
0 |
27,512 |
0 |
13,249 |
1,220 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,804 |
0 |
0 |
0 |
27,520 |
0 |
13,322 |
923 |
osh-native |
4 |
no-host |
configure.ocaml |
410,141 |
0 |
0 |
0 |
5,120 |
0 |
1,941 |
167 |
bash |
12 |
no-host |
configure.ocaml |
390,736 |
0 |
0 |
0 |
5,112 |
0 |
1,928 |
224 |
dash |
20 |
no-host |
configure.ocaml |
638,740 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
191 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,287 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
153 |
osh-native |
5 |
no-host |
configure.tcc |
6,531 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,175 |
0 |
0 |
0 |
96 |
0 |
53 |
21 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,968 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,113 |
0 |
0 |
0 |
42,400 |
0 |
18,693 |
1,169 |
bash |
11 |
no-host |
configure.util-linux |
2,259,296 |
0 |
0 |
0 |
42,592 |
0 |
17,427 |
1,096 |
dash |
19 |
no-host |
configure.util-linux |
5,321,740 |
11 |
0 |
0 |
39,112 |
0 |
17,080 |
1,299 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,010,731 |
1 |
0 |
0 |
39,120 |
0 |
17,072 |
1,084 |
osh-native |
6 |
no-host |
configure.yash |
255,510 |
0 |
0 |
0 |
4,120 |
0 |
869 |
76 |
bash |
14 |
no-host |
configure.yash |
245,400 |
0 |
0 |
0 |
3,720 |
0 |
870 |
90 |
dash |
22 |
no-host |
configure.yash |
386,313 |
0 |
0 |
0 |
3,728 |
0 |
850 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
259,342 |
0 |
0 |
0 |
3,736 |
0 |
854 |
83 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,658 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host