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 |
460 |
23 |
23.70 |
1.19 |
bin-true |
no-host |
688 |
554 |
2,275 |
824 |
3.31 |
1.20 |
configure.cpython |
no-host |
15,668 |
15,594 |
29,512 |
15,918 |
1.88 |
1.02 |
configure.ocaml |
no-host |
3,876 |
3,846 |
4,758 |
3,942 |
1.23 |
1.02 |
configure.tcc |
no-host |
49 |
42 |
198 |
49 |
4.03 |
1.01 |
configure.util-linux |
no-host |
14,489 |
15,446 |
32,395 |
14,950 |
2.24 |
1.03 |
configure.yash |
no-host |
1,903 |
1,803 |
2,521 |
1,903 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
31.98 |
1.87 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,552 |
1,103 |
23,219 |
3,230 |
9.10 |
1.27 |
bin-true |
no-host |
107,338 |
65,457 |
754,064 |
128,194 |
7.03 |
1.19 |
configure.cpython |
no-host |
2,220,029 |
2,243,444 |
6,136,354 |
2,228,956 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,469 |
391,428 |
637,340 |
413,803 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,550 |
5,473 |
23,178 |
6,974 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,093,813 |
2,259,943 |
5,319,237 |
2,013,599 |
2.54 |
0.96 |
configure.yash |
no-host |
255,980 |
245,164 |
385,873 |
257,774 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,650 |
344 |
24.01 |
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.2 |
6.3 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.7 |
8.1 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,918 |
1 |
66 |
15.8 |
27.4 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,950 |
3 |
65 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,786 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,942 |
1 |
2 |
2.7 |
20.6 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,903 |
1 |
2 |
2.6 |
24.4 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,257 |
64,449 |
42,657 |
4,609 |
54,535 |
57,113 |
478 |
3 |
85,314 |
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 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
460 |
409 |
55 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
10 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
688 |
515 |
202 |
2.9 |
bash |
9 |
no-host |
bin-true |
554 |
422 |
141 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,275 |
1,471 |
1,068 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
591 |
249 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,668 |
9,357 |
6,714 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,594 |
9,231 |
6,783 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,512 |
17,960 |
13,459 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,918 |
9,209 |
6,978 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,876 |
1,703 |
1,214 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,846 |
1,682 |
1,182 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,758 |
2,251 |
1,718 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,942 |
1,771 |
1,210 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
37 |
13 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
161 |
41 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
26 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,489 |
9,154 |
5,810 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,446 |
9,324 |
6,619 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,395 |
21,539 |
11,958 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,950 |
8,956 |
6,185 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,903 |
1,114 |
798 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,803 |
1,042 |
764 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,521 |
1,561 |
1,005 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,903 |
1,098 |
809 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
51 |
33 |
17 |
17.3 |
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,552 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,103 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,219 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,230 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
107,338 |
0 |
0 |
0 |
8 |
0 |
1,993 |
44 |
bash |
9 |
no-host |
bin-true |
65,457 |
0 |
0 |
0 |
8 |
0 |
1,989 |
50 |
dash |
17 |
no-host |
bin-true |
754,064 |
0 |
0 |
0 |
8 |
0 |
1,988 |
200 |
osh-cpython |
25 |
no-host |
bin-true |
128,194 |
0 |
0 |
0 |
16 |
0 |
1,988 |
84 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,029 |
0 |
0 |
0 |
32,928 |
0 |
14,468 |
1,192 |
bash |
10 |
no-host |
configure.cpython |
2,243,444 |
0 |
0 |
0 |
32,992 |
0 |
14,589 |
1,144 |
dash |
18 |
no-host |
configure.cpython |
6,136,354 |
1 |
0 |
0 |
27,512 |
0 |
13,258 |
1,297 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,956 |
0 |
0 |
0 |
27,520 |
0 |
13,298 |
1,134 |
osh-native |
4 |
no-host |
configure.ocaml |
410,469 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
169 |
bash |
12 |
no-host |
configure.ocaml |
391,428 |
0 |
0 |
0 |
5,112 |
0 |
1,948 |
173 |
dash |
20 |
no-host |
configure.ocaml |
637,340 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
226 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,803 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
172 |
osh-native |
5 |
no-host |
configure.tcc |
6,550 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,178 |
0 |
0 |
0 |
96 |
0 |
53 |
3 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,974 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,813 |
1 |
0 |
0 |
42,400 |
0 |
18,617 |
1,164 |
bash |
11 |
no-host |
configure.util-linux |
2,259,943 |
1 |
0 |
0 |
42,592 |
0 |
17,491 |
1,183 |
dash |
19 |
no-host |
configure.util-linux |
5,319,237 |
8 |
0 |
0 |
39,120 |
0 |
17,009 |
1,344 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,599 |
4 |
0 |
0 |
39,128 |
0 |
17,083 |
1,060 |
osh-native |
6 |
no-host |
configure.yash |
255,980 |
0 |
0 |
0 |
4,120 |
0 |
871 |
88 |
bash |
14 |
no-host |
configure.yash |
245,164 |
0 |
0 |
0 |
3,720 |
0 |
868 |
76 |
dash |
22 |
no-host |
configure.yash |
385,873 |
1 |
0 |
0 |
3,728 |
0 |
859 |
105 |
osh-cpython |
30 |
no-host |
configure.yash |
257,774 |
0 |
0 |
0 |
3,736 |
0 |
855 |
85 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,650 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host