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 |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
21 |
10 |
498 |
24 |
23 |
23.68 |
1.12 |
bin-true |
no-host |
715 |
564 |
2,507 |
843 |
830 |
3.50 |
1.18 |
configure.cpython |
no-host |
16,729 |
16,756 |
32,561 |
16,759 |
16,541 |
1.95 |
1.00 |
configure.ocaml |
no-host |
4,175 |
3,982 |
5,061 |
4,027 |
4,127 |
1.21 |
0.96 |
configure.tcc |
no-host |
54 |
46 |
227 |
52 |
55 |
4.23 |
0.98 |
configure.util-linux |
no-host |
15,576 |
16,433 |
35,342 |
15,720 |
15,553 |
2.27 |
1.01 |
configure.yash |
no-host |
2,024 |
1,930 |
2,707 |
1,928 |
1,983 |
1.34 |
0.95 |
hello-world |
no-host |
2 |
1 |
66 |
3 |
3 |
40.67 |
2.00 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,536 |
1,073 |
23,934 |
3,163 |
3,081 |
9.44 |
1.25 |
bin-true |
no-host |
107,396 |
66,440 |
794,449 |
126,290 |
126,130 |
7.40 |
1.18 |
configure.cpython |
no-host |
2,223,438 |
2,248,103 |
6,273,870 |
2,213,659 |
2,207,258 |
2.82 |
1.00 |
configure.ocaml |
no-host |
410,297 |
391,597 |
650,045 |
412,034 |
411,848 |
1.58 |
1.00 |
configure.tcc |
no-host |
6,554 |
5,491 |
24,436 |
6,964 |
6,884 |
3.73 |
1.06 |
configure.util-linux |
no-host |
2,104,972 |
2,269,339 |
5,423,395 |
1,995,102 |
1,992,734 |
2.58 |
0.95 |
configure.yash |
no-host |
255,999 |
244,154 |
391,423 |
258,387 |
256,824 |
1.53 |
1.01 |
hello-world |
no-host |
151 |
86 |
3,992 |
347 |
346 |
26.44 |
2.30 |
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,780 |
3,780 |
0 |
695 |
1,856 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
843 |
1 |
2 |
2.6 |
8.1 |
153,744 |
12,264 |
2,884 |
8,744 |
78,325 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,759 |
2 |
72 |
14.9 |
27.3 |
1,771,745 |
49,904 |
28,593 |
85,416 |
908,077 |
778,252 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,720 |
3 |
71 |
21.2 |
30.1 |
2,702,511 |
29,749 |
65,877 |
108,692 |
1,320,583 |
1,273,236 |
32,239 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
4,027 |
1 |
2 |
2.6 |
20.6 |
150,078 |
11,128 |
5,223 |
7,509 |
71,610 |
70,959 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
52 |
0 |
0 |
1.3 |
19.1 |
30,584 |
30,584 |
0 |
1,519 |
14,780 |
14,285 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,928 |
1 |
2 |
2.5 |
24.4 |
139,404 |
8,024 |
6,686 |
5,987 |
70,285 |
63,132 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
24 |
1 |
2 |
2.8 |
8.9 |
116,290 |
64,537 |
42,747 |
4,533 |
54,525 |
57,232 |
277 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,779 |
3,779 |
0 |
696 |
1,856 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
830 |
1 |
2 |
2.6 |
7.9 |
153,743 |
12,053 |
2,822 |
8,745 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,541 |
1 |
72 |
14.8 |
27.4 |
1,771,744 |
49,106 |
28,531 |
85,417 |
908,077 |
778,250 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,553 |
3 |
72 |
21.2 |
30.1 |
2,702,620 |
29,763 |
65,815 |
108,724 |
1,320,619 |
1,273,277 |
32,242 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
4,127 |
1 |
2 |
2.6 |
20.4 |
150,078 |
11,066 |
5,161 |
7,511 |
71,610 |
70,957 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
55 |
0 |
0 |
1.3 |
19.3 |
30,584 |
30,584 |
0 |
1,521 |
14,780 |
14,283 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,983 |
1 |
2 |
2.5 |
24.5 |
139,404 |
7,962 |
6,624 |
5,989 |
70,285 |
63,130 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.7 |
116,289 |
64,475 |
42,685 |
4,534 |
54,525 |
57,230 |
277 |
3 |
85,370 |
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 |
21 |
17 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
498 |
455 |
46 |
23.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
18 |
6 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
23 |
15 |
9 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
715 |
506 |
237 |
2.9 |
bash |
9 |
no-host |
bin-true |
564 |
418 |
156 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,507 |
1,525 |
1,263 |
18.9 |
osh-cpython |
25 |
no-host |
bin-true |
843 |
583 |
276 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
830 |
580 |
265 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
16,729 |
9,980 |
7,161 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
16,756 |
9,921 |
7,260 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
32,561 |
19,412 |
15,236 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,759 |
9,800 |
7,224 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
16,541 |
9,536 |
7,151 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
4,175 |
1,812 |
1,374 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,982 |
1,675 |
1,329 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
5,061 |
2,518 |
1,783 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,027 |
1,792 |
1,273 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
4,127 |
1,796 |
1,369 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
54 |
32 |
23 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
46 |
30 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
227 |
169 |
61 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
46 |
7 |
19.1 |
osh-native |
37 |
no-host |
configure.tcc |
55 |
31 |
24 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
15,576 |
9,648 |
6,403 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
16,433 |
9,842 |
7,067 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
35,342 |
23,411 |
13,118 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,720 |
9,381 |
6,492 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
15,553 |
9,225 |
6,491 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
2,024 |
1,228 |
804 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,930 |
1,130 |
802 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,707 |
1,663 |
1,090 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,928 |
1,113 |
818 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,983 |
1,134 |
854 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
66 |
53 |
12 |
18.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
5.9 |
osh-native-souffle |
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,536 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,073 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,934 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,163 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,081 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,396 |
0 |
0 |
0 |
8 |
0 |
1,983 |
72 |
bash |
9 |
no-host |
bin-true |
66,440 |
0 |
0 |
0 |
8 |
0 |
1,978 |
33 |
dash |
17 |
no-host |
bin-true |
794,449 |
0 |
0 |
0 |
8 |
0 |
1,998 |
185 |
osh-cpython |
25 |
no-host |
bin-true |
126,290 |
0 |
0 |
0 |
16 |
0 |
1,979 |
53 |
osh-native |
33 |
no-host |
bin-true |
126,130 |
0 |
0 |
0 |
16 |
0 |
1,989 |
68 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,223,438 |
0 |
0 |
0 |
32,928 |
0 |
14,469 |
1,086 |
bash |
10 |
no-host |
configure.cpython |
2,248,103 |
1 |
0 |
0 |
32,992 |
0 |
14,665 |
1,009 |
dash |
18 |
no-host |
configure.cpython |
6,273,870 |
0 |
0 |
0 |
27,520 |
0 |
13,217 |
1,405 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,213,659 |
0 |
0 |
0 |
27,520 |
0 |
13,253 |
950 |
osh-native |
34 |
no-host |
configure.cpython |
2,207,258 |
0 |
0 |
0 |
27,520 |
0 |
13,217 |
918 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,297 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
171 |
bash |
12 |
no-host |
configure.ocaml |
391,597 |
0 |
0 |
0 |
5,112 |
0 |
1,911 |
138 |
dash |
20 |
no-host |
configure.ocaml |
650,045 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
273 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,034 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
174 |
osh-native |
36 |
no-host |
configure.ocaml |
411,848 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
153 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,554 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,491 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
24,436 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,964 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,884 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,104,972 |
0 |
0 |
0 |
42,408 |
0 |
18,660 |
1,153 |
bash |
11 |
no-host |
configure.util-linux |
2,269,339 |
0 |
0 |
0 |
42,592 |
0 |
17,453 |
1,078 |
dash |
19 |
no-host |
configure.util-linux |
5,423,395 |
10 |
0 |
0 |
39,112 |
0 |
16,936 |
1,259 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,995,102 |
0 |
0 |
0 |
39,128 |
0 |
16,901 |
1,000 |
osh-native |
35 |
no-host |
configure.util-linux |
1,992,734 |
2 |
0 |
0 |
39,152 |
0 |
16,933 |
1,001 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,999 |
0 |
0 |
0 |
4,120 |
0 |
871 |
95 |
bash |
14 |
no-host |
configure.yash |
244,154 |
0 |
0 |
0 |
3,720 |
0 |
865 |
77 |
dash |
22 |
no-host |
configure.yash |
391,423 |
0 |
0 |
0 |
3,728 |
0 |
856 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
258,387 |
0 |
0 |
0 |
3,736 |
0 |
848 |
91 |
osh-native |
38 |
no-host |
configure.yash |
256,824 |
0 |
0 |
0 |
3,736 |
0 |
851 |
68 |
osh-native-souffle |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,992 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host