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 |
454 |
22 |
23.89 |
1.18 |
bin-true |
no-host |
703 |
546 |
2,219 |
814 |
3.16 |
1.16 |
configure.cpython |
no-host |
15,106 |
15,221 |
28,594 |
15,463 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,821 |
3,763 |
4,650 |
3,843 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
194 |
49 |
4.08 |
1.04 |
configure.util-linux |
no-host |
14,146 |
14,932 |
31,389 |
14,522 |
2.22 |
1.03 |
configure.yash |
no-host |
1,820 |
1,779 |
2,479 |
1,832 |
1.36 |
1.01 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
35.51 |
2.00 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,510 |
1,118 |
23,174 |
3,174 |
9.23 |
1.26 |
bin-true |
no-host |
107,382 |
66,479 |
754,225 |
127,200 |
7.02 |
1.18 |
configure.cpython |
no-host |
2,216,591 |
2,241,870 |
6,113,746 |
2,235,564 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,131 |
391,247 |
636,863 |
413,512 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,554 |
5,491 |
23,120 |
6,977 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,096,518 |
2,256,648 |
5,296,854 |
2,017,820 |
2.53 |
0.96 |
configure.yash |
no-host |
256,585 |
244,686 |
384,415 |
258,895 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,649 |
343 |
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.0 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
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,463 |
1 |
62 |
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,522 |
3 |
62 |
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,843 |
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,832 |
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 |
22 |
1 |
2 |
2.8 |
8.8 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
408 |
49 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
703 |
530 |
207 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
412 |
143 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,219 |
1,405 |
1,066 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
562 |
268 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,106 |
9,219 |
6,278 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,221 |
9,062 |
6,571 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,594 |
17,430 |
13,016 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,463 |
9,134 |
6,588 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,821 |
1,673 |
1,187 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,763 |
1,626 |
1,154 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,650 |
2,270 |
1,581 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,843 |
1,660 |
1,224 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
37 |
12 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
24 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
134 |
63 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
32 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,146 |
8,888 |
5,743 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,932 |
9,083 |
6,333 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,389 |
20,937 |
11,538 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,522 |
8,822 |
5,883 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,820 |
1,046 |
778 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,779 |
1,027 |
755 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,479 |
1,537 |
985 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,832 |
1,028 |
808 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
34 |
16 |
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,510 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,174 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,174 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,382 |
0 |
0 |
0 |
8 |
0 |
1,995 |
68 |
bash |
9 |
no-host |
bin-true |
66,479 |
0 |
0 |
0 |
8 |
0 |
1,982 |
84 |
dash |
17 |
no-host |
bin-true |
754,225 |
0 |
0 |
0 |
8 |
0 |
1,997 |
93 |
osh-cpython |
25 |
no-host |
bin-true |
127,200 |
0 |
0 |
0 |
16 |
0 |
1,987 |
42 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,591 |
0 |
0 |
0 |
32,928 |
0 |
14,555 |
1,247 |
bash |
10 |
no-host |
configure.cpython |
2,241,870 |
0 |
0 |
0 |
32,992 |
0 |
14,516 |
1,152 |
dash |
18 |
no-host |
configure.cpython |
6,113,746 |
0 |
0 |
0 |
27,512 |
0 |
13,245 |
1,197 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,564 |
0 |
0 |
0 |
27,520 |
0 |
13,300 |
1,036 |
osh-native |
4 |
no-host |
configure.ocaml |
410,131 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
182 |
bash |
12 |
no-host |
configure.ocaml |
391,247 |
0 |
0 |
0 |
5,112 |
0 |
1,911 |
256 |
dash |
20 |
no-host |
configure.ocaml |
636,863 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
179 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,512 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
158 |
osh-native |
5 |
no-host |
configure.tcc |
6,554 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,491 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,120 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,977 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,518 |
0 |
0 |
0 |
42,408 |
0 |
19,087 |
1,132 |
bash |
11 |
no-host |
configure.util-linux |
2,256,648 |
1 |
0 |
0 |
42,592 |
0 |
17,543 |
1,141 |
dash |
19 |
no-host |
configure.util-linux |
5,296,854 |
9 |
0 |
0 |
39,120 |
0 |
17,190 |
1,382 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,820 |
7 |
0 |
0 |
39,128 |
0 |
17,057 |
980 |
osh-native |
6 |
no-host |
configure.yash |
256,585 |
0 |
0 |
0 |
4,120 |
0 |
874 |
78 |
bash |
14 |
no-host |
configure.yash |
244,686 |
0 |
0 |
0 |
3,720 |
0 |
868 |
92 |
dash |
22 |
no-host |
configure.yash |
384,415 |
0 |
0 |
0 |
3,728 |
0 |
857 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
258,895 |
0 |
0 |
0 |
3,736 |
0 |
851 |
83 |
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,649 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host