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 |
19 |
9 |
453 |
22 |
21 |
23.97 |
1.17 |
bin-true |
no-host |
676 |
537 |
2,262 |
812 |
808 |
3.34 |
1.20 |
configure.cpython |
no-host |
14,912 |
14,969 |
28,620 |
15,300 |
15,360 |
1.92 |
1.03 |
configure.ocaml |
no-host |
3,804 |
3,728 |
4,669 |
3,825 |
3,828 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
204 |
49 |
49 |
4.27 |
1.03 |
configure.util-linux |
no-host |
13,978 |
14,808 |
31,332 |
14,446 |
14,398 |
2.24 |
1.03 |
configure.yash |
no-host |
1,806 |
1,747 |
2,472 |
1,863 |
1,829 |
1.37 |
1.03 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
30.88 |
1.80 |
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,537 |
1,109 |
23,277 |
3,168 |
3,065 |
9.18 |
1.25 |
bin-true |
no-host |
108,269 |
66,442 |
761,295 |
125,831 |
125,878 |
7.03 |
1.16 |
configure.cpython |
no-host |
2,219,474 |
2,249,212 |
6,224,566 |
2,233,890 |
2,213,376 |
2.80 |
1.01 |
configure.ocaml |
no-host |
409,985 |
391,065 |
645,246 |
412,779 |
412,363 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,563 |
5,504 |
23,712 |
6,972 |
6,926 |
3.61 |
1.06 |
configure.util-linux |
no-host |
2,098,869 |
2,259,619 |
5,373,570 |
1,993,389 |
1,993,322 |
2.56 |
0.95 |
configure.yash |
no-host |
255,950 |
245,065 |
387,100 |
258,343 |
256,577 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
80 |
3,739 |
349 |
346 |
24.44 |
2.28 |
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.2 |
3,773 |
3,773 |
0 |
695 |
1,850 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
812 |
1 |
2 |
2.6 |
7.9 |
154,738 |
13,220 |
2,877 |
9,745 |
78,319 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,300 |
1 |
60 |
15.0 |
27.3 |
1,772,720 |
49,854 |
28,587 |
86,398 |
908,071 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,446 |
4 |
61 |
21.3 |
30.1 |
2,703,488 |
29,146 |
65,890 |
109,676 |
1,320,577 |
1,273,235 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,825 |
1 |
2 |
2.6 |
20.6 |
150,094 |
11,051 |
5,221 |
7,532 |
71,604 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,579 |
30,579 |
0 |
1,521 |
14,774 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,863 |
1 |
2 |
2.6 |
24.2 |
139,747 |
8,020 |
6,679 |
6,337 |
70,279 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,322 |
64,530 |
42,740 |
4,572 |
54,519 |
57,231 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,772 |
3,772 |
0 |
696 |
1,850 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.6 |
7.7 |
154,737 |
13,063 |
2,815 |
9,746 |
78,319 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,360 |
1 |
61 |
14.9 |
27.4 |
1,772,719 |
49,105 |
28,525 |
86,399 |
908,071 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,398 |
3 |
61 |
21.3 |
30.0 |
2,703,488 |
42,741 |
65,828 |
109,678 |
1,320,577 |
1,273,233 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,828 |
1 |
2 |
2.6 |
20.6 |
150,094 |
10,989 |
5,159 |
7,534 |
71,604 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,579 |
30,579 |
0 |
1,523 |
14,774 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,829 |
1 |
2 |
2.6 |
24.4 |
139,747 |
7,958 |
6,617 |
6,339 |
70,279 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.5 |
116,321 |
64,468 |
42,678 |
4,573 |
54,519 |
57,229 |
270 |
3 |
85,356 |
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 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
453 |
412 |
44 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
20 |
1 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
676 |
511 |
199 |
2.8 |
bash |
9 |
no-host |
bin-true |
537 |
420 |
126 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,262 |
1,493 |
1,034 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
812 |
587 |
240 |
7.9 |
osh-native |
33 |
no-host |
bin-true |
808 |
569 |
255 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,912 |
8,865 |
6,438 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,969 |
9,055 |
6,323 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,620 |
17,321 |
13,174 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,300 |
8,984 |
6,585 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,360 |
8,896 |
6,649 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,804 |
1,607 |
1,233 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,728 |
1,589 |
1,159 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,669 |
2,234 |
1,645 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,825 |
1,599 |
1,266 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,828 |
1,656 |
1,207 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
29 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
204 |
151 |
57 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,978 |
8,796 |
5,657 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,808 |
9,123 |
6,173 |
29.9 |
dash |
19 |
no-host |
configure.util-linux |
31,332 |
20,994 |
11,437 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,446 |
8,761 |
5,881 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,398 |
8,720 |
5,856 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,806 |
1,069 |
746 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,747 |
1,002 |
748 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,472 |
1,460 |
1,056 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,863 |
1,039 |
805 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,829 |
1,100 |
733 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
37 |
12 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
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,537 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,109 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,277 |
0 |
0 |
0 |
8 |
0 |
44 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,168 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,065 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
108,269 |
0 |
0 |
0 |
8 |
0 |
1,990 |
47 |
bash |
9 |
no-host |
bin-true |
66,442 |
0 |
0 |
0 |
8 |
0 |
1,990 |
95 |
dash |
17 |
no-host |
bin-true |
761,295 |
0 |
0 |
0 |
8 |
0 |
1,999 |
321 |
osh-cpython |
25 |
no-host |
bin-true |
125,831 |
0 |
0 |
0 |
16 |
0 |
1,988 |
91 |
osh-native |
33 |
no-host |
bin-true |
125,878 |
0 |
0 |
0 |
16 |
0 |
1,979 |
47 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,219,474 |
0 |
0 |
0 |
32,928 |
0 |
14,525 |
1,092 |
bash |
10 |
no-host |
configure.cpython |
2,249,212 |
0 |
0 |
0 |
32,992 |
0 |
14,501 |
982 |
dash |
18 |
no-host |
configure.cpython |
6,224,566 |
0 |
0 |
0 |
27,512 |
0 |
13,276 |
1,270 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,890 |
0 |
0 |
0 |
27,520 |
0 |
13,188 |
1,164 |
osh-native |
34 |
no-host |
configure.cpython |
2,213,376 |
0 |
0 |
0 |
27,520 |
0 |
13,293 |
999 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
409,985 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
161 |
bash |
12 |
no-host |
configure.ocaml |
391,065 |
0 |
0 |
0 |
5,112 |
0 |
1,933 |
152 |
dash |
20 |
no-host |
configure.ocaml |
645,246 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
213 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,779 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
162 |
osh-native |
36 |
no-host |
configure.ocaml |
412,363 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
148 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,563 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,504 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,712 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,972 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,926 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,098,869 |
0 |
0 |
0 |
42,400 |
0 |
18,693 |
1,359 |
bash |
11 |
no-host |
configure.util-linux |
2,259,619 |
3 |
0 |
0 |
42,584 |
0 |
17,467 |
1,199 |
dash |
19 |
no-host |
configure.util-linux |
5,373,570 |
11 |
0 |
0 |
39,112 |
0 |
16,953 |
1,156 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,389 |
0 |
0 |
0 |
39,120 |
0 |
16,936 |
1,025 |
osh-native |
35 |
no-host |
configure.util-linux |
1,993,322 |
1 |
0 |
0 |
39,128 |
0 |
16,989 |
1,106 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,950 |
0 |
0 |
0 |
4,120 |
0 |
868 |
82 |
bash |
14 |
no-host |
configure.yash |
245,065 |
0 |
0 |
0 |
3,720 |
0 |
868 |
72 |
dash |
22 |
no-host |
configure.yash |
387,100 |
0 |
0 |
0 |
3,728 |
0 |
854 |
73 |
osh-cpython |
30 |
no-host |
configure.yash |
258,343 |
0 |
0 |
0 |
3,736 |
0 |
848 |
74 |
osh-native |
38 |
no-host |
configure.yash |
256,577 |
0 |
0 |
0 |
3,736 |
0 |
848 |
86 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,739 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host