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 |
448 |
22 |
23.71 |
1.16 |
bin-true |
no-host |
678 |
539 |
2,199 |
822 |
3.24 |
1.21 |
configure.cpython |
no-host |
14,969 |
14,974 |
28,087 |
15,048 |
1.88 |
1.01 |
configure.ocaml |
no-host |
3,825 |
3,692 |
4,561 |
3,824 |
1.19 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
191 |
49 |
4.04 |
1.04 |
configure.util-linux |
no-host |
13,940 |
14,852 |
30,794 |
14,353 |
2.21 |
1.03 |
configure.yash |
no-host |
1,841 |
1,739 |
2,408 |
1,862 |
1.31 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
34.13 |
2.09 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,530 |
1,099 |
23,665 |
3,190 |
9.35 |
1.26 |
bin-true |
no-host |
108,400 |
66,458 |
753,049 |
128,153 |
6.95 |
1.18 |
configure.cpython |
no-host |
2,214,622 |
2,238,980 |
6,158,519 |
2,233,481 |
2.78 |
1.01 |
configure.ocaml |
no-host |
410,210 |
391,334 |
640,700 |
413,727 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,536 |
5,475 |
23,274 |
6,986 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,098,881 |
2,261,736 |
5,340,968 |
2,014,699 |
2.54 |
0.96 |
configure.yash |
no-host |
256,550 |
244,595 |
384,965 |
259,309 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,680 |
348 |
24.05 |
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,726 |
3,726 |
0 |
684 |
1,876 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
822 |
1 |
2 |
2.7 |
7.9 |
154,691 |
12,991 |
2,798 |
11,737 |
78,345 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,048 |
1 |
59 |
15.8 |
27.5 |
1,772,667 |
49,196 |
28,507 |
101,770 |
908,097 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,353 |
2 |
58 |
22.2 |
30.3 |
2,703,403 |
44,765 |
65,811 |
126,121 |
1,320,595 |
1,256,687 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,824 |
1 |
2 |
2.7 |
20.6 |
150,037 |
11,044 |
5,137 |
8,602 |
71,633 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,526 |
30,526 |
0 |
1,599 |
14,800 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,862 |
1 |
2 |
2.6 |
24.4 |
139,694 |
7,963 |
6,599 |
7,554 |
70,305 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,269 |
64,454 |
42,662 |
4,610 |
54,545 |
57,114 |
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 |
14 |
5 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
448 |
416 |
36 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
22 |
0 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
678 |
505 |
205 |
3.0 |
bash |
9 |
no-host |
bin-true |
539 |
408 |
141 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,199 |
1,472 |
976 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
822 |
588 |
246 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,969 |
9,103 |
6,267 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,974 |
9,033 |
6,356 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,087 |
17,105 |
12,791 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,048 |
8,764 |
6,549 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,825 |
1,680 |
1,185 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,692 |
1,530 |
1,180 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,561 |
2,151 |
1,614 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,824 |
1,676 |
1,187 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
34 |
14 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
33 |
9 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
191 |
153 |
41 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
33 |
16 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,940 |
8,815 |
5,594 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,852 |
9,047 |
6,298 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,794 |
20,669 |
11,204 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,353 |
8,605 |
5,941 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,841 |
1,070 |
761 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,739 |
1,005 |
735 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,408 |
1,421 |
1,029 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,862 |
1,033 |
832 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
36 |
12 |
17.3 |
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,530 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,099 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,665 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,190 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
108,400 |
0 |
0 |
0 |
8 |
0 |
1,990 |
89 |
bash |
9 |
no-host |
bin-true |
66,458 |
0 |
0 |
0 |
8 |
0 |
1,986 |
54 |
dash |
17 |
no-host |
bin-true |
753,049 |
0 |
0 |
0 |
8 |
0 |
1,992 |
148 |
osh-cpython |
25 |
no-host |
bin-true |
128,153 |
0 |
0 |
0 |
16 |
0 |
1,993 |
210 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,622 |
0 |
0 |
0 |
32,928 |
0 |
14,454 |
1,090 |
bash |
10 |
no-host |
configure.cpython |
2,238,980 |
0 |
0 |
0 |
32,992 |
0 |
14,669 |
1,198 |
dash |
18 |
no-host |
configure.cpython |
6,158,519 |
0 |
0 |
0 |
27,512 |
0 |
13,274 |
1,198 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,481 |
0 |
0 |
0 |
27,520 |
0 |
13,285 |
989 |
osh-native |
4 |
no-host |
configure.ocaml |
410,210 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
147 |
bash |
12 |
no-host |
configure.ocaml |
391,334 |
0 |
0 |
0 |
5,112 |
0 |
1,928 |
152 |
dash |
20 |
no-host |
configure.ocaml |
640,700 |
1 |
0 |
0 |
5,112 |
0 |
1,860 |
175 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,727 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
176 |
osh-native |
5 |
no-host |
configure.tcc |
6,536 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,274 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,986 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,881 |
1 |
0 |
0 |
42,400 |
0 |
18,594 |
1,058 |
bash |
11 |
no-host |
configure.util-linux |
2,261,736 |
1 |
0 |
0 |
42,592 |
0 |
17,442 |
1,072 |
dash |
19 |
no-host |
configure.util-linux |
5,340,968 |
7 |
0 |
0 |
39,120 |
0 |
17,035 |
1,215 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,014,699 |
1 |
0 |
0 |
39,128 |
0 |
17,210 |
955 |
osh-native |
6 |
no-host |
configure.yash |
256,550 |
0 |
0 |
0 |
4,120 |
0 |
881 |
81 |
bash |
14 |
no-host |
configure.yash |
244,595 |
0 |
0 |
0 |
3,720 |
0 |
866 |
80 |
dash |
22 |
no-host |
configure.yash |
384,965 |
0 |
0 |
0 |
3,728 |
0 |
857 |
83 |
osh-cpython |
30 |
no-host |
configure.yash |
259,309 |
0 |
0 |
0 |
3,736 |
0 |
849 |
102 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,680 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host