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.77 |
1.13 |
bin-true |
no-host |
669 |
543 |
2,326 |
815 |
815 |
3.48 |
1.22 |
configure.cpython |
no-host |
15,013 |
15,063 |
28,797 |
15,223 |
15,337 |
1.92 |
1.01 |
configure.ocaml |
no-host |
3,796 |
3,733 |
4,655 |
3,824 |
3,825 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
205 |
49 |
49 |
4.28 |
1.02 |
configure.util-linux |
no-host |
13,969 |
14,917 |
31,657 |
14,368 |
14,359 |
2.27 |
1.03 |
configure.yash |
no-host |
1,826 |
1,770 |
2,471 |
1,821 |
1,827 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
57 |
3 |
3 |
33.52 |
1.67 |
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,573 |
1,104 |
23,784 |
3,188 |
3,118 |
9.24 |
1.24 |
bin-true |
no-host |
105,304 |
66,474 |
768,493 |
128,318 |
127,275 |
7.30 |
1.22 |
configure.cpython |
no-host |
2,224,890 |
2,239,299 |
6,227,497 |
2,226,145 |
2,211,110 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,662 |
391,411 |
646,656 |
413,566 |
412,202 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,549 |
5,479 |
24,031 |
6,983 |
6,914 |
3.67 |
1.07 |
configure.util-linux |
no-host |
2,100,522 |
2,262,139 |
5,355,105 |
2,000,593 |
1,991,710 |
2.55 |
0.95 |
configure.yash |
no-host |
256,481 |
244,492 |
387,214 |
256,695 |
257,543 |
1.51 |
1.00 |
hello-world |
no-host |
150 |
83 |
3,923 |
343 |
337 |
26.15 |
2.29 |
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,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.6 |
8.1 |
153,746 |
12,267 |
2,887 |
8,743 |
78,327 |
66,676 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,223 |
1 |
60 |
14.9 |
27.4 |
1,771,747 |
49,125 |
28,512 |
85,415 |
908,079 |
778,253 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,368 |
3 |
60 |
21.2 |
30.1 |
2,702,513 |
45,898 |
65,711 |
108,691 |
1,320,585 |
1,273,237 |
32,239 |
41 |
131,422 |
1 |
configure.ocaml |
no-host |
3,824 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,112 |
5,207 |
7,508 |
71,612 |
70,960 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,518 |
14,782 |
14,286 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,821 |
1 |
2 |
2.5 |
24.4 |
139,412 |
8,024 |
6,686 |
5,989 |
70,287 |
63,136 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,292 |
64,403 |
42,613 |
4,532 |
54,527 |
57,233 |
277 |
3 |
85,226 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.6 |
7.5 |
153,745 |
12,111 |
2,825 |
8,744 |
78,327 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,337 |
1 |
61 |
14.9 |
27.4 |
1,771,746 |
44,577 |
28,450 |
85,416 |
908,079 |
778,251 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,359 |
3 |
60 |
21.2 |
30.3 |
2,702,513 |
53,693 |
65,649 |
108,693 |
1,320,585 |
1,273,235 |
32,239 |
41 |
131,298 |
1 |
configure.ocaml |
no-host |
3,825 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,050 |
5,145 |
7,510 |
71,612 |
70,958 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,520 |
14,782 |
14,284 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,827 |
1 |
2 |
2.5 |
24.5 |
139,412 |
7,962 |
6,624 |
5,991 |
70,287 |
63,134 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,291 |
64,341 |
42,551 |
4,533 |
54,527 |
57,231 |
277 |
3 |
85,102 |
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 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
462 |
429 |
37 |
22.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
8.8 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
17 |
5 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
669 |
491 |
209 |
3.0 |
bash |
9 |
no-host |
bin-true |
543 |
416 |
135 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,326 |
1,550 |
1,038 |
18.2 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
573 |
256 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
815 |
605 |
225 |
7.5 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,013 |
9,106 |
6,308 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,063 |
9,050 |
6,440 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,797 |
17,723 |
12,927 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,223 |
8,897 |
6,596 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,337 |
9,020 |
6,457 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,796 |
1,686 |
1,148 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,733 |
1,527 |
1,225 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,655 |
2,302 |
1,562 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,824 |
1,586 |
1,278 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,825 |
1,601 |
1,261 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
31 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
24 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
205 |
149 |
59 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
20 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
38 |
11 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,969 |
8,867 |
5,580 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,917 |
9,181 |
6,236 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,657 |
21,274 |
11,472 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,368 |
8,806 |
5,765 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,359 |
8,773 |
5,777 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,826 |
1,035 |
793 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,770 |
1,031 |
742 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,471 |
1,572 |
940 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,821 |
1,083 |
742 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,827 |
1,017 |
815 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
57 |
37 |
20 |
18.1 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.8 |
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,573 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,784 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,188 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,118 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,304 |
0 |
0 |
0 |
8 |
0 |
1,993 |
42 |
bash |
9 |
no-host |
bin-true |
66,474 |
0 |
0 |
0 |
8 |
0 |
1,989 |
57 |
dash |
17 |
no-host |
bin-true |
768,493 |
0 |
0 |
0 |
8 |
0 |
2,000 |
203 |
osh-cpython |
25 |
no-host |
bin-true |
128,318 |
0 |
0 |
0 |
16 |
0 |
1,993 |
62 |
osh-native |
33 |
no-host |
bin-true |
127,275 |
0 |
0 |
0 |
16 |
0 |
1,995 |
67 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,224,890 |
1 |
0 |
0 |
32,928 |
0 |
14,523 |
1,177 |
bash |
10 |
no-host |
configure.cpython |
2,239,299 |
0 |
0 |
0 |
32,992 |
0 |
14,660 |
1,272 |
dash |
18 |
no-host |
configure.cpython |
6,227,497 |
0 |
0 |
0 |
27,512 |
0 |
13,273 |
1,112 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,226,145 |
0 |
0 |
0 |
27,520 |
0 |
13,312 |
973 |
osh-native |
34 |
no-host |
configure.cpython |
2,211,110 |
0 |
0 |
0 |
27,520 |
0 |
13,268 |
1,258 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,662 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
150 |
bash |
12 |
no-host |
configure.ocaml |
391,411 |
0 |
0 |
0 |
5,112 |
0 |
1,928 |
231 |
dash |
20 |
no-host |
configure.ocaml |
646,656 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
183 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,566 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
168 |
osh-native |
36 |
no-host |
configure.ocaml |
412,202 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
147 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,549 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
24,031 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,983 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,914 |
0 |
0 |
0 |
104 |
0 |
47 |
11 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,100,522 |
0 |
0 |
0 |
42,400 |
0 |
18,548 |
986 |
bash |
11 |
no-host |
configure.util-linux |
2,262,139 |
2 |
0 |
0 |
42,584 |
0 |
17,398 |
1,151 |
dash |
19 |
no-host |
configure.util-linux |
5,355,105 |
13 |
0 |
0 |
39,128 |
0 |
16,885 |
1,258 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,000,593 |
0 |
0 |
0 |
39,120 |
0 |
16,982 |
1,029 |
osh-native |
35 |
no-host |
configure.util-linux |
1,991,710 |
1 |
0 |
0 |
39,128 |
0 |
16,967 |
1,035 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,481 |
0 |
0 |
0 |
4,120 |
0 |
872 |
87 |
bash |
14 |
no-host |
configure.yash |
244,492 |
0 |
0 |
0 |
3,720 |
0 |
869 |
77 |
dash |
22 |
no-host |
configure.yash |
387,214 |
0 |
0 |
0 |
3,728 |
0 |
854 |
78 |
osh-cpython |
30 |
no-host |
configure.yash |
256,695 |
0 |
0 |
0 |
3,736 |
0 |
848 |
72 |
osh-native |
38 |
no-host |
configure.yash |
257,543 |
0 |
0 |
0 |
3,736 |
0 |
849 |
77 |
osh-native-souffle |
0 |
no-host |
hello-world |
150 |
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,923 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
337 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host