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 |
10 |
465 |
22 |
24.24 |
1.17 |
bin-true |
no-host |
679 |
545 |
2,253 |
832 |
3.32 |
1.22 |
configure.cpython |
no-host |
15,031 |
15,106 |
28,522 |
15,695 |
1.90 |
1.04 |
configure.ocaml |
no-host |
3,801 |
3,736 |
4,651 |
3,883 |
1.22 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
195 |
49 |
4.06 |
1.02 |
configure.util-linux |
no-host |
14,067 |
14,894 |
31,512 |
14,738 |
2.24 |
1.05 |
configure.yash |
no-host |
1,813 |
1,766 |
2,469 |
1,827 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
29.61 |
1.78 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,539 |
1,128 |
23,403 |
3,227 |
9.22 |
1.27 |
bin-true |
no-host |
106,386 |
66,470 |
752,404 |
129,131 |
7.07 |
1.21 |
configure.cpython |
no-host |
2,218,769 |
2,239,368 |
6,142,801 |
2,241,296 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,464 |
391,323 |
639,559 |
413,150 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,550 |
5,468 |
23,189 |
6,979 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,100,619 |
2,263,846 |
5,328,479 |
2,013,220 |
2.54 |
0.96 |
configure.yash |
no-host |
255,532 |
244,616 |
385,908 |
258,264 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
83 |
3,656 |
351 |
24.21 |
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.3 |
6.3 |
3,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
832 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,695 |
1 |
63 |
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,738 |
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,883 |
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.1 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,827 |
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 |
8.9 |
116,265 |
64,454 |
42,662 |
4,610 |
54,543 |
57,112 |
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 |
17 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
465 |
422 |
46 |
21.4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
679 |
502 |
209 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
421 |
133 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,253 |
1,507 |
1,007 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
832 |
580 |
261 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,031 |
8,935 |
6,492 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,106 |
9,339 |
6,189 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,522 |
17,239 |
13,104 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,695 |
9,192 |
6,774 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,801 |
1,699 |
1,135 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,736 |
1,632 |
1,125 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,651 |
2,200 |
1,652 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,883 |
1,668 |
1,253 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
27 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
21 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
130 |
68 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
36 |
13 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,067 |
8,897 |
5,645 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,894 |
9,118 |
6,291 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,512 |
20,818 |
11,773 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,738 |
8,973 |
5,960 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,813 |
1,060 |
763 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,766 |
1,032 |
736 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,469 |
1,540 |
972 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,827 |
1,050 |
781 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
28 |
19 |
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,539 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,128 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,403 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,227 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,386 |
0 |
0 |
0 |
8 |
0 |
1,992 |
87 |
bash |
9 |
no-host |
bin-true |
66,470 |
0 |
0 |
0 |
8 |
0 |
1,985 |
43 |
dash |
17 |
no-host |
bin-true |
752,404 |
0 |
0 |
0 |
8 |
0 |
1,994 |
314 |
osh-cpython |
25 |
no-host |
bin-true |
129,131 |
0 |
0 |
0 |
16 |
0 |
1,989 |
224 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,769 |
0 |
0 |
0 |
32,928 |
0 |
14,429 |
1,227 |
bash |
10 |
no-host |
configure.cpython |
2,239,368 |
0 |
0 |
0 |
32,992 |
0 |
14,610 |
1,206 |
dash |
18 |
no-host |
configure.cpython |
6,142,801 |
1 |
0 |
0 |
27,512 |
0 |
13,205 |
1,138 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,241,296 |
0 |
0 |
0 |
27,520 |
0 |
13,315 |
1,091 |
osh-native |
4 |
no-host |
configure.ocaml |
410,464 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
172 |
bash |
12 |
no-host |
configure.ocaml |
391,323 |
0 |
0 |
0 |
5,112 |
0 |
1,916 |
149 |
dash |
20 |
no-host |
configure.ocaml |
639,559 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
182 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,150 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
159 |
osh-native |
5 |
no-host |
configure.tcc |
6,550 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,189 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,979 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,619 |
0 |
0 |
0 |
42,408 |
0 |
18,688 |
1,055 |
bash |
11 |
no-host |
configure.util-linux |
2,263,846 |
1 |
0 |
0 |
42,592 |
0 |
17,405 |
1,101 |
dash |
19 |
no-host |
configure.util-linux |
5,328,479 |
12 |
0 |
0 |
39,120 |
0 |
17,081 |
1,451 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,220 |
1 |
0 |
0 |
39,128 |
0 |
17,086 |
1,058 |
osh-native |
6 |
no-host |
configure.yash |
255,532 |
0 |
0 |
0 |
4,120 |
0 |
872 |
84 |
bash |
14 |
no-host |
configure.yash |
244,616 |
0 |
0 |
0 |
3,720 |
0 |
867 |
73 |
dash |
22 |
no-host |
configure.yash |
385,908 |
0 |
0 |
0 |
3,728 |
0 |
857 |
101 |
osh-cpython |
30 |
no-host |
configure.yash |
258,264 |
0 |
0 |
0 |
3,736 |
0 |
852 |
95 |
osh-native |
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,656 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host