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 |
466 |
23 |
21 |
24.14 |
1.17 |
bin-true |
no-host |
677 |
541 |
2,292 |
813 |
810 |
3.39 |
1.20 |
configure.cpython |
no-host |
15,126 |
15,203 |
29,122 |
15,324 |
15,381 |
1.93 |
1.01 |
configure.ocaml |
no-host |
3,829 |
3,765 |
4,681 |
3,865 |
3,860 |
1.22 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
202 |
49 |
49 |
4.16 |
1.02 |
configure.util-linux |
no-host |
14,028 |
14,908 |
31,548 |
14,460 |
14,465 |
2.25 |
1.03 |
configure.yash |
no-host |
1,838 |
1,782 |
2,480 |
1,851 |
1,842 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
56 |
3 |
3 |
35.43 |
1.83 |
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,534 |
1,095 |
23,878 |
3,210 |
3,105 |
9.42 |
1.27 |
bin-true |
no-host |
106,335 |
66,423 |
764,850 |
127,251 |
126,310 |
7.19 |
1.20 |
configure.cpython |
no-host |
2,222,768 |
2,238,294 |
6,215,302 |
2,218,363 |
2,209,713 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,985 |
391,415 |
646,222 |
412,844 |
412,254 |
1.57 |
1.00 |
configure.tcc |
no-host |
6,537 |
5,475 |
23,988 |
7,012 |
6,903 |
3.67 |
1.07 |
configure.util-linux |
no-host |
2,110,161 |
2,257,321 |
5,375,961 |
1,993,912 |
1,984,736 |
2.55 |
0.94 |
configure.yash |
no-host |
256,799 |
244,657 |
387,709 |
257,631 |
258,200 |
1.51 |
1.00 |
hello-world |
no-host |
153 |
83 |
3,927 |
342 |
337 |
25.67 |
2.24 |
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.4 |
3,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.3 |
153,746 |
12,267 |
2,887 |
8,743 |
78,327 |
66,676 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,324 |
1 |
62 |
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,460 |
3 |
62 |
21.2 |
30.3 |
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,865 |
1 |
2 |
2.6 |
20.4 |
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,851 |
1 |
2 |
2.5 |
24.5 |
139,412 |
8,024 |
6,686 |
5,989 |
70,287 |
63,136 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
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.9 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
810 |
1 |
2 |
2.6 |
7.6 |
153,745 |
12,111 |
2,825 |
8,744 |
78,327 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,381 |
1 |
62 |
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,465 |
3 |
65 |
21.2 |
30.0 |
2,702,513 |
53,693 |
65,629 |
108,693 |
1,320,585 |
1,273,235 |
32,239 |
41 |
131,258 |
1 |
configure.ocaml |
no-host |
3,860 |
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.4 |
30,586 |
30,586 |
0 |
1,520 |
14,782 |
14,284 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,842 |
1 |
2 |
2.5 |
24.2 |
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.5 |
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 |
19 |
0 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
466 |
420 |
50 |
22.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
9 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
677 |
502 |
207 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
416 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,292 |
1,451 |
1,101 |
18.2 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
583 |
245 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
810 |
572 |
255 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,126 |
9,169 |
6,361 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,203 |
9,134 |
6,498 |
27.1 |
dash |
18 |
no-host |
configure.cpython |
29,122 |
17,561 |
13,460 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,324 |
9,076 |
6,525 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,381 |
9,107 |
6,404 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,829 |
1,656 |
1,213 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,765 |
1,592 |
1,192 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,681 |
2,331 |
1,561 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,865 |
1,671 |
1,233 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,860 |
1,623 |
1,272 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
19 |
23 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
202 |
140 |
66 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
32 |
18 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
18 |
32 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,028 |
8,984 |
5,525 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,908 |
9,257 |
6,148 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,548 |
21,077 |
11,561 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,460 |
8,618 |
6,047 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,465 |
8,541 |
6,120 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,838 |
1,062 |
785 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,782 |
1,048 |
737 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,480 |
1,513 |
1,009 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,851 |
1,070 |
785 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,842 |
1,059 |
786 |
24.2 |
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 |
56 |
28 |
28 |
18.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
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,534 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,095 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,878 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,210 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,105 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,335 |
0 |
0 |
0 |
8 |
0 |
1,990 |
64 |
bash |
9 |
no-host |
bin-true |
66,423 |
0 |
0 |
0 |
8 |
0 |
1,983 |
78 |
dash |
17 |
no-host |
bin-true |
764,850 |
0 |
0 |
0 |
8 |
0 |
2,001 |
230 |
osh-cpython |
25 |
no-host |
bin-true |
127,251 |
0 |
0 |
0 |
16 |
0 |
1,995 |
121 |
osh-native |
33 |
no-host |
bin-true |
126,310 |
0 |
0 |
0 |
16 |
0 |
1,989 |
58 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,222,768 |
0 |
0 |
0 |
32,928 |
0 |
14,519 |
1,041 |
bash |
10 |
no-host |
configure.cpython |
2,238,294 |
0 |
0 |
0 |
32,992 |
0 |
14,672 |
1,055 |
dash |
18 |
no-host |
configure.cpython |
6,215,302 |
0 |
0 |
0 |
27,512 |
0 |
13,252 |
1,121 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,363 |
0 |
0 |
0 |
27,520 |
0 |
13,237 |
981 |
osh-native |
34 |
no-host |
configure.cpython |
2,209,713 |
0 |
0 |
0 |
27,520 |
0 |
13,231 |
994 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,985 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
169 |
bash |
12 |
no-host |
configure.ocaml |
391,415 |
0 |
0 |
0 |
5,112 |
0 |
1,899 |
141 |
dash |
20 |
no-host |
configure.ocaml |
646,222 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
180 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,844 |
0 |
0 |
0 |
5,120 |
0 |
1,922 |
176 |
osh-native |
36 |
no-host |
configure.ocaml |
412,254 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
159 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,537 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,988 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,012 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,903 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,110,161 |
1 |
0 |
0 |
42,400 |
0 |
18,452 |
1,022 |
bash |
11 |
no-host |
configure.util-linux |
2,257,321 |
1 |
0 |
0 |
42,584 |
0 |
17,347 |
966 |
dash |
19 |
no-host |
configure.util-linux |
5,375,961 |
10 |
0 |
0 |
39,128 |
0 |
16,950 |
1,159 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,912 |
0 |
0 |
0 |
39,120 |
0 |
16,980 |
951 |
osh-native |
35 |
no-host |
configure.util-linux |
1,984,736 |
0 |
0 |
0 |
39,136 |
0 |
16,955 |
938 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,799 |
0 |
0 |
0 |
4,120 |
0 |
870 |
78 |
bash |
14 |
no-host |
configure.yash |
244,657 |
0 |
0 |
0 |
3,720 |
0 |
867 |
81 |
dash |
22 |
no-host |
configure.yash |
387,709 |
0 |
0 |
0 |
3,728 |
0 |
855 |
84 |
osh-cpython |
30 |
no-host |
configure.yash |
257,631 |
0 |
0 |
0 |
3,736 |
0 |
849 |
78 |
osh-native |
38 |
no-host |
configure.yash |
258,200 |
0 |
0 |
0 |
3,736 |
0 |
846 |
98 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
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,927 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
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