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 |
10 |
462 |
22 |
21 |
23.94 |
1.15 |
bin-true |
no-host |
672 |
547 |
2,254 |
810 |
802 |
3.35 |
1.20 |
configure.cpython |
no-host |
15,193 |
15,338 |
29,129 |
15,297 |
15,558 |
1.92 |
1.01 |
configure.ocaml |
no-host |
3,825 |
3,786 |
4,649 |
3,825 |
3,857 |
1.22 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
198 |
49 |
49 |
4.24 |
1.05 |
configure.util-linux |
no-host |
14,226 |
15,099 |
31,408 |
14,367 |
14,537 |
2.21 |
1.01 |
configure.yash |
no-host |
1,864 |
1,788 |
2,450 |
1,834 |
1,867 |
1.31 |
0.98 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
3 |
33.25 |
1.91 |
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,547 |
1,126 |
23,546 |
3,195 |
3,087 |
9.24 |
1.25 |
bin-true |
no-host |
104,385 |
66,507 |
761,083 |
127,125 |
124,846 |
7.29 |
1.22 |
configure.cpython |
no-host |
2,224,588 |
2,244,080 |
6,214,952 |
2,229,619 |
2,223,184 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,726 |
391,041 |
645,534 |
413,177 |
412,939 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,557 |
5,468 |
23,533 |
7,000 |
6,893 |
3.59 |
1.07 |
configure.util-linux |
no-host |
2,108,841 |
2,256,727 |
5,361,907 |
1,998,969 |
1,997,881 |
2.54 |
0.95 |
configure.yash |
no-host |
256,261 |
245,123 |
387,455 |
258,051 |
257,883 |
1.51 |
1.01 |
hello-world |
no-host |
148 |
79 |
3,744 |
351 |
344 |
25.30 |
2.37 |
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 |
810 |
1 |
2 |
2.6 |
8.0 |
154,711 |
13,191 |
2,848 |
9,744 |
78,309 |
66,658 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,297 |
1 |
63 |
15.0 |
27.3 |
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,367 |
3 |
60 |
21.3 |
30.0 |
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,825 |
1 |
2 |
2.6 |
20.4 |
150,067 |
11,022 |
5,192 |
7,531 |
71,594 |
70,942 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,552 |
30,552 |
0 |
1,520 |
14,764 |
14,268 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,834 |
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 |
8.9 |
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 |
802 |
1 |
2 |
2.6 |
7.6 |
154,710 |
12,979 |
2,786 |
9,745 |
78,309 |
66,656 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,558 |
1 |
63 |
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,537 |
3 |
61 |
21.3 |
30.3 |
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,857 |
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,867 |
1 |
2 |
2.6 |
24.4 |
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.7 |
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 |
10 |
9 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
462 |
416 |
48 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
672 |
506 |
197 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
418 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,254 |
1,491 |
1,027 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
810 |
576 |
250 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
802 |
572 |
245 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,193 |
9,152 |
6,442 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,338 |
9,309 |
6,456 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,129 |
17,748 |
13,276 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,297 |
9,070 |
6,499 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,558 |
8,898 |
6,840 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,825 |
1,642 |
1,223 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,786 |
1,612 |
1,194 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,649 |
2,273 |
1,588 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,825 |
1,643 |
1,218 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,857 |
1,691 |
1,198 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
35 |
12 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
29 |
13 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
151 |
50 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
19 |
30 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,226 |
8,896 |
5,808 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,099 |
9,160 |
6,440 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,408 |
21,076 |
11,433 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,367 |
8,741 |
5,810 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,537 |
8,772 |
5,955 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,864 |
1,114 |
746 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,788 |
1,010 |
782 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,450 |
1,586 |
907 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,834 |
1,077 |
761 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,867 |
1,072 |
798 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
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,547 |
0 |
0 |
0 |
16 |
0 |
41 |
4 |
bash |
15 |
no-host |
abuild-print-help |
1,126 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,546 |
0 |
0 |
0 |
8 |
0 |
45 |
180 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,195 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,087 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,385 |
0 |
0 |
0 |
8 |
0 |
1,987 |
71 |
bash |
9 |
no-host |
bin-true |
66,507 |
0 |
0 |
0 |
8 |
0 |
1,991 |
78 |
dash |
17 |
no-host |
bin-true |
761,083 |
0 |
0 |
0 |
8 |
0 |
1,994 |
90 |
osh-cpython |
25 |
no-host |
bin-true |
127,125 |
0 |
0 |
0 |
16 |
0 |
1,986 |
42 |
osh-native |
33 |
no-host |
bin-true |
124,846 |
0 |
0 |
0 |
16 |
0 |
1,992 |
84 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,224,588 |
0 |
0 |
0 |
32,928 |
0 |
14,428 |
1,066 |
bash |
10 |
no-host |
configure.cpython |
2,244,080 |
0 |
0 |
0 |
32,992 |
0 |
14,626 |
965 |
dash |
18 |
no-host |
configure.cpython |
6,214,952 |
0 |
0 |
0 |
27,512 |
0 |
13,263 |
1,239 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,619 |
0 |
0 |
0 |
27,520 |
0 |
13,271 |
988 |
osh-native |
34 |
no-host |
configure.cpython |
2,223,184 |
0 |
0 |
0 |
27,520 |
0 |
13,281 |
1,079 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,726 |
0 |
0 |
0 |
5,120 |
0 |
1,943 |
148 |
bash |
12 |
no-host |
configure.ocaml |
391,041 |
0 |
0 |
0 |
5,112 |
0 |
1,932 |
149 |
dash |
20 |
no-host |
configure.ocaml |
645,534 |
1 |
0 |
0 |
5,112 |
0 |
1,865 |
176 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,177 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
213 |
osh-native |
36 |
no-host |
configure.ocaml |
412,939 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
162 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,533 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,000 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,893 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,108,841 |
2 |
0 |
0 |
42,408 |
0 |
18,544 |
1,042 |
bash |
11 |
no-host |
configure.util-linux |
2,256,727 |
0 |
0 |
0 |
42,592 |
0 |
17,489 |
1,047 |
dash |
19 |
no-host |
configure.util-linux |
5,361,907 |
11 |
0 |
0 |
39,112 |
0 |
17,083 |
1,260 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,969 |
0 |
0 |
0 |
39,120 |
0 |
16,991 |
1,033 |
osh-native |
35 |
no-host |
configure.util-linux |
1,997,881 |
0 |
0 |
0 |
39,128 |
0 |
16,958 |
1,004 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,261 |
0 |
0 |
0 |
4,120 |
0 |
874 |
77 |
bash |
14 |
no-host |
configure.yash |
245,123 |
0 |
0 |
0 |
3,720 |
0 |
870 |
91 |
dash |
22 |
no-host |
configure.yash |
387,455 |
0 |
0 |
0 |
3,728 |
0 |
858 |
123 |
osh-cpython |
30 |
no-host |
configure.yash |
258,051 |
0 |
0 |
0 |
3,736 |
0 |
850 |
85 |
osh-native |
38 |
no-host |
configure.yash |
257,883 |
0 |
0 |
0 |
3,736 |
0 |
853 |
74 |
osh-native-souffle |
0 |
no-host |
hello-world |
148 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,744 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host