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 |
458 |
22 |
23.92 |
1.14 |
bin-true |
no-host |
682 |
552 |
2,246 |
826 |
3.29 |
1.21 |
configure.cpython |
no-host |
15,054 |
15,110 |
28,526 |
15,299 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,841 |
3,741 |
4,651 |
3,828 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
194 |
49 |
4.09 |
1.04 |
configure.util-linux |
no-host |
14,058 |
14,878 |
31,104 |
14,399 |
2.21 |
1.02 |
configure.yash |
no-host |
1,819 |
1,775 |
2,478 |
1,828 |
1.36 |
1.00 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.64 |
1.91 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,507 |
1,114 |
23,024 |
3,153 |
9.18 |
1.26 |
bin-true |
no-host |
106,346 |
66,476 |
750,557 |
128,413 |
7.06 |
1.21 |
configure.cpython |
no-host |
2,220,070 |
2,239,054 |
6,110,587 |
2,215,323 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,450 |
390,893 |
638,883 |
413,055 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,561 |
5,497 |
23,289 |
6,976 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,099,810 |
2,261,622 |
5,300,367 |
1,991,879 |
2.52 |
0.95 |
configure.yash |
no-host |
256,022 |
244,507 |
383,650 |
258,057 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
78 |
3,692 |
348 |
24.13 |
2.27 |
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.2 |
3,736 |
3,736 |
0 |
681 |
1,886 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
826 |
1 |
2 |
2.6 |
7.9 |
154,701 |
13,053 |
2,806 |
9,731 |
78,355 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,299 |
1 |
62 |
15.0 |
27.4 |
1,772,677 |
49,204 |
28,515 |
86,378 |
908,107 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,399 |
3 |
61 |
21.3 |
30.0 |
2,703,413 |
42,779 |
65,820 |
109,640 |
1,320,605 |
1,273,168 |
49,081 |
41 |
131,640 |
1 |
configure.ocaml |
no-host |
3,828 |
1 |
2 |
2.6 |
20.6 |
150,047 |
11,053 |
5,146 |
7,510 |
71,643 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,536 |
30,536 |
0 |
1,501 |
14,810 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,828 |
1 |
2 |
2.6 |
24.4 |
139,704 |
7,971 |
6,607 |
6,317 |
70,315 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,279 |
64,462 |
42,670 |
4,552 |
54,555 |
57,172 |
478 |
3 |
85,340 |
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 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
458 |
417 |
45 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
682 |
496 |
218 |
3.0 |
bash |
9 |
no-host |
bin-true |
552 |
419 |
141 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,246 |
1,540 |
966 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
826 |
594 |
246 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,054 |
9,165 |
6,282 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,110 |
9,073 |
6,453 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,526 |
17,276 |
13,091 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,299 |
8,981 |
6,565 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,841 |
1,638 |
1,227 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,741 |
1,595 |
1,167 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,651 |
2,283 |
1,576 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,828 |
1,645 |
1,222 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
15 |
33 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
145 |
53 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
21 |
29 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,058 |
8,778 |
5,759 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
14,878 |
9,145 |
6,232 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,104 |
20,690 |
11,504 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,399 |
8,647 |
5,938 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,819 |
1,030 |
796 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,775 |
1,014 |
765 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,478 |
1,581 |
939 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,828 |
1,073 |
760 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
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,507 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,114 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,024 |
0 |
0 |
0 |
8 |
0 |
45 |
15 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,153 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
1 |
no-host |
bin-true |
106,346 |
0 |
0 |
0 |
8 |
0 |
1,993 |
113 |
bash |
9 |
no-host |
bin-true |
66,476 |
0 |
0 |
0 |
8 |
0 |
1,986 |
73 |
dash |
17 |
no-host |
bin-true |
750,557 |
0 |
0 |
0 |
8 |
0 |
1,995 |
208 |
osh-cpython |
25 |
no-host |
bin-true |
128,413 |
0 |
0 |
0 |
16 |
0 |
1,988 |
299 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,070 |
1 |
0 |
0 |
32,928 |
0 |
14,501 |
1,103 |
bash |
10 |
no-host |
configure.cpython |
2,239,054 |
0 |
0 |
0 |
32,992 |
0 |
14,665 |
1,136 |
dash |
18 |
no-host |
configure.cpython |
6,110,587 |
0 |
0 |
0 |
27,512 |
0 |
13,232 |
1,125 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,215,323 |
0 |
0 |
0 |
27,520 |
0 |
13,209 |
1,121 |
osh-native |
4 |
no-host |
configure.ocaml |
410,450 |
0 |
0 |
0 |
5,120 |
0 |
1,963 |
176 |
bash |
12 |
no-host |
configure.ocaml |
390,893 |
0 |
0 |
0 |
5,112 |
0 |
1,879 |
161 |
dash |
20 |
no-host |
configure.ocaml |
638,883 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
201 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,055 |
0 |
0 |
0 |
5,120 |
0 |
1,921 |
188 |
osh-native |
5 |
no-host |
configure.tcc |
6,561 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,497 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,289 |
0 |
0 |
0 |
96 |
0 |
53 |
13 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,810 |
0 |
0 |
0 |
42,408 |
0 |
18,590 |
1,031 |
bash |
11 |
no-host |
configure.util-linux |
2,261,622 |
1 |
0 |
0 |
42,592 |
0 |
17,443 |
1,030 |
dash |
19 |
no-host |
configure.util-linux |
5,300,367 |
6 |
0 |
0 |
39,112 |
0 |
16,949 |
1,279 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,991,879 |
0 |
0 |
0 |
39,128 |
0 |
16,979 |
1,033 |
osh-native |
6 |
no-host |
configure.yash |
256,022 |
0 |
0 |
0 |
4,120 |
0 |
869 |
96 |
bash |
14 |
no-host |
configure.yash |
244,507 |
0 |
0 |
0 |
3,720 |
0 |
872 |
81 |
dash |
22 |
no-host |
configure.yash |
383,650 |
0 |
0 |
0 |
3,728 |
0 |
856 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
258,057 |
0 |
0 |
0 |
3,736 |
0 |
848 |
96 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,692 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host