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 |
444 |
22 |
21 |
23.29 |
1.14 |
bin-true |
no-host |
667 |
538 |
2,251 |
811 |
801 |
3.37 |
1.22 |
configure.cpython |
no-host |
14,875 |
14,961 |
28,425 |
15,143 |
15,144 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,769 |
3,717 |
4,619 |
3,803 |
3,807 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
193 |
48 |
49 |
4.06 |
1.01 |
configure.util-linux |
no-host |
13,881 |
14,766 |
30,931 |
14,303 |
14,230 |
2.23 |
1.03 |
configure.yash |
no-host |
1,829 |
1,757 |
2,430 |
1,804 |
1,803 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
32.64 |
1.85 |
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,520 |
1,093 |
23,361 |
3,203 |
3,122 |
9.27 |
1.27 |
bin-true |
no-host |
106,389 |
66,379 |
758,953 |
125,181 |
125,888 |
7.13 |
1.18 |
configure.cpython |
no-host |
2,223,222 |
2,247,031 |
6,229,588 |
2,241,006 |
2,219,672 |
2.80 |
1.01 |
configure.ocaml |
no-host |
410,790 |
391,176 |
644,930 |
413,767 |
413,561 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,579 |
5,470 |
23,473 |
6,984 |
6,951 |
3.57 |
1.06 |
configure.util-linux |
no-host |
2,103,282 |
2,260,651 |
5,342,535 |
2,006,331 |
1,998,855 |
2.54 |
0.95 |
configure.yash |
no-host |
256,494 |
244,485 |
388,095 |
258,759 |
257,510 |
1.51 |
1.01 |
hello-world |
no-host |
156 |
81 |
3,742 |
353 |
345 |
23.99 |
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.2 |
3,746 |
3,746 |
0 |
694 |
1,840 |
1,212 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.6 |
7.9 |
154,711 |
13,191 |
2,848 |
9,744 |
78,309 |
66,658 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,143 |
2 |
60 |
15.0 |
27.4 |
1,772,693 |
49,825 |
28,558 |
86,397 |
908,061 |
778,235 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,303 |
3 |
58 |
21.3 |
30.3 |
2,703,461 |
29,117 |
65,861 |
109,675 |
1,320,567 |
1,273,219 |
27,391 |
41 |
131,722 |
1 |
configure.ocaml |
no-host |
3,803 |
1 |
2 |
2.6 |
20.6 |
150,067 |
11,022 |
5,192 |
7,531 |
71,594 |
70,942 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.4 |
30,552 |
30,552 |
0 |
1,520 |
14,764 |
14,268 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,804 |
1 |
2 |
2.6 |
24.4 |
139,720 |
7,991 |
6,650 |
6,336 |
70,269 |
63,115 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,295 |
64,501 |
42,711 |
4,571 |
54,509 |
57,215 |
270 |
3 |
85,422 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,745 |
3,745 |
0 |
695 |
1,840 |
1,210 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
801 |
1 |
2 |
2.6 |
7.7 |
154,710 |
12,979 |
2,786 |
9,745 |
78,309 |
66,656 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,144 |
1 |
59 |
15.0 |
27.4 |
1,772,692 |
49,076 |
28,496 |
86,398 |
908,061 |
778,233 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,230 |
3 |
59 |
21.3 |
30.1 |
2,703,461 |
42,712 |
65,799 |
109,677 |
1,320,567 |
1,273,217 |
27,391 |
41 |
131,598 |
1 |
configure.ocaml |
no-host |
3,807 |
1 |
2 |
2.6 |
20.6 |
150,067 |
10,960 |
5,130 |
7,533 |
71,594 |
70,940 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,552 |
30,552 |
0 |
1,522 |
14,764 |
14,266 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,803 |
1 |
2 |
2.6 |
24.5 |
139,720 |
7,929 |
6,588 |
6,338 |
70,269 |
63,113 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.8 |
116,294 |
64,439 |
42,649 |
4,572 |
54,509 |
57,213 |
270 |
3 |
85,298 |
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 |
9 |
9 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
444 |
403 |
44 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
2 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.8 |
osh-native-souffle |
1 |
no-host |
bin-true |
667 |
483 |
215 |
2.9 |
bash |
9 |
no-host |
bin-true |
538 |
417 |
132 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,251 |
1,442 |
1,069 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
576 |
247 |
7.9 |
osh-native |
33 |
no-host |
bin-true |
801 |
555 |
261 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,875 |
9,151 |
6,125 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,961 |
9,152 |
6,230 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,425 |
17,191 |
13,073 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,143 |
9,051 |
6,364 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,144 |
8,835 |
6,494 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,769 |
1,651 |
1,158 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,717 |
1,558 |
1,178 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,619 |
2,162 |
1,667 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,803 |
1,638 |
1,204 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,807 |
1,616 |
1,228 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
23 |
25 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
36 |
6 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
141 |
56 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
30 |
18 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
42 |
8 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,881 |
8,580 |
5,779 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,766 |
9,298 |
5,963 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,931 |
20,653 |
11,352 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,303 |
8,627 |
5,880 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,230 |
8,571 |
5,855 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,829 |
1,003 |
833 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,757 |
999 |
761 |
25.4 |
dash |
22 |
no-host |
configure.yash |
2,430 |
1,519 |
952 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,804 |
1,013 |
795 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,803 |
1,044 |
763 |
24.5 |
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 |
32 |
17 |
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,520 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,361 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,203 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,122 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,389 |
0 |
0 |
0 |
8 |
0 |
1,992 |
55 |
bash |
9 |
no-host |
bin-true |
66,379 |
0 |
0 |
0 |
8 |
0 |
1,990 |
39 |
dash |
17 |
no-host |
bin-true |
758,953 |
0 |
0 |
0 |
8 |
0 |
1,997 |
337 |
osh-cpython |
25 |
no-host |
bin-true |
125,181 |
0 |
0 |
0 |
16 |
0 |
1,987 |
115 |
osh-native |
33 |
no-host |
bin-true |
125,888 |
0 |
0 |
0 |
16 |
0 |
1,986 |
51 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,223,222 |
0 |
0 |
0 |
32,928 |
0 |
14,525 |
1,030 |
bash |
10 |
no-host |
configure.cpython |
2,247,031 |
0 |
0 |
0 |
32,992 |
0 |
14,626 |
1,098 |
dash |
18 |
no-host |
configure.cpython |
6,229,588 |
1 |
0 |
0 |
27,512 |
0 |
13,251 |
1,153 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,241,006 |
0 |
0 |
0 |
27,520 |
0 |
13,199 |
1,171 |
osh-native |
34 |
no-host |
configure.cpython |
2,219,672 |
1 |
0 |
0 |
27,520 |
0 |
13,273 |
917 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,790 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
174 |
bash |
12 |
no-host |
configure.ocaml |
391,176 |
0 |
0 |
0 |
5,112 |
0 |
1,893 |
151 |
dash |
20 |
no-host |
configure.ocaml |
644,930 |
1 |
0 |
0 |
5,112 |
0 |
1,861 |
198 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,767 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
179 |
osh-native |
36 |
no-host |
configure.ocaml |
413,561 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
155 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,579 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,473 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,951 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,103,282 |
0 |
0 |
0 |
42,400 |
0 |
18,676 |
1,007 |
bash |
11 |
no-host |
configure.util-linux |
2,260,651 |
0 |
0 |
0 |
42,592 |
0 |
17,427 |
1,037 |
dash |
19 |
no-host |
configure.util-linux |
5,342,535 |
15 |
0 |
0 |
39,112 |
0 |
16,971 |
1,318 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,006,331 |
0 |
0 |
0 |
39,120 |
0 |
16,963 |
1,214 |
osh-native |
35 |
no-host |
configure.util-linux |
1,998,855 |
0 |
0 |
0 |
39,136 |
0 |
16,972 |
951 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,494 |
0 |
0 |
0 |
4,120 |
0 |
875 |
84 |
bash |
14 |
no-host |
configure.yash |
244,485 |
0 |
0 |
0 |
3,720 |
0 |
868 |
77 |
dash |
22 |
no-host |
configure.yash |
388,095 |
0 |
0 |
0 |
3,728 |
0 |
855 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
258,759 |
0 |
0 |
0 |
3,736 |
0 |
849 |
91 |
osh-native |
38 |
no-host |
configure.yash |
257,510 |
0 |
0 |
0 |
3,736 |
0 |
848 |
70 |
osh-native-souffle |
0 |
no-host |
hello-world |
156 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,742 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
353 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host