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 |
20 |
10 |
464 |
23 |
22 |
23.73 |
1.16 |
bin-true |
no-host |
690 |
554 |
2,330 |
815 |
817 |
3.38 |
1.18 |
configure.cpython |
no-host |
15,613 |
15,541 |
29,338 |
15,627 |
15,645 |
1.88 |
1.00 |
configure.ocaml |
no-host |
3,896 |
3,830 |
4,730 |
3,940 |
3,907 |
1.21 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
197 |
49 |
50 |
4.04 |
1.02 |
configure.util-linux |
no-host |
14,518 |
15,263 |
31,747 |
14,988 |
14,662 |
2.19 |
1.03 |
configure.yash |
no-host |
1,873 |
1,804 |
2,482 |
1,900 |
1,896 |
1.33 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
3 |
27.29 |
1.54 |
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,543 |
1,108 |
23,324 |
3,217 |
3,131 |
9.17 |
1.27 |
bin-true |
no-host |
104,337 |
66,513 |
775,708 |
126,126 |
124,216 |
7.43 |
1.21 |
configure.cpython |
no-host |
2,226,120 |
2,235,546 |
6,220,900 |
2,227,190 |
2,211,411 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,439 |
390,832 |
645,629 |
413,932 |
412,746 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,557 |
5,488 |
23,693 |
6,984 |
6,927 |
3.61 |
1.07 |
configure.util-linux |
no-host |
2,099,654 |
2,256,321 |
5,372,330 |
2,003,308 |
1,985,738 |
2.56 |
0.95 |
configure.yash |
no-host |
255,030 |
245,193 |
386,717 |
257,422 |
258,039 |
1.52 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,742 |
355 |
346 |
24.46 |
2.32 |
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.3 |
6.4 |
3,783 |
3,783 |
0 |
698 |
1,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.6 |
8.3 |
154,748 |
13,282 |
2,884 |
9,748 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,627 |
2 |
66 |
15.0 |
27.5 |
1,772,730 |
49,861 |
28,594 |
86,401 |
908,078 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,988 |
3 |
66 |
21.3 |
30.3 |
2,703,498 |
29,752 |
65,877 |
109,679 |
1,320,584 |
1,273,235 |
27,391 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,940 |
1 |
2 |
2.7 |
20.6 |
150,104 |
11,058 |
5,228 |
7,535 |
71,611 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,589 |
30,589 |
0 |
1,524 |
14,781 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,900 |
1 |
2 |
2.6 |
24.2 |
139,757 |
8,027 |
6,686 |
6,340 |
70,286 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,332 |
64,537 |
42,747 |
4,575 |
54,526 |
57,231 |
270 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.3 |
5.9 |
3,782 |
3,782 |
0 |
699 |
1,857 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.6 |
7.6 |
154,747 |
13,070 |
2,822 |
9,749 |
78,326 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,645 |
1 |
65 |
14.9 |
27.4 |
1,772,729 |
49,112 |
28,532 |
86,402 |
908,078 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,662 |
3 |
64 |
21.3 |
30.1 |
2,703,498 |
42,748 |
65,835 |
109,681 |
1,320,584 |
1,273,233 |
27,391 |
41 |
131,670 |
1 |
configure.ocaml |
no-host |
3,907 |
1 |
2 |
2.6 |
20.6 |
150,104 |
10,996 |
5,166 |
7,537 |
71,611 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,589 |
30,589 |
0 |
1,526 |
14,781 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,896 |
1 |
2 |
2.6 |
24.4 |
139,757 |
7,965 |
6,624 |
6,342 |
70,286 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,331 |
64,475 |
42,685 |
4,576 |
54,526 |
57,229 |
270 |
3 |
85,370 |
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 |
20 |
11 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
464 |
418 |
49 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
19 |
4 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
22 |
13 |
9 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
690 |
496 |
227 |
2.8 |
bash |
9 |
no-host |
bin-true |
554 |
434 |
130 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,330 |
1,480 |
1,115 |
17.8 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
567 |
262 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
817 |
590 |
242 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,613 |
9,169 |
6,862 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,541 |
9,115 |
6,854 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,338 |
17,777 |
13,471 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,627 |
9,283 |
6,615 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,645 |
9,080 |
6,743 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,896 |
1,636 |
1,282 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,830 |
1,629 |
1,220 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,730 |
2,274 |
1,673 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,940 |
1,757 |
1,224 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,907 |
1,697 |
1,246 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
27 |
15 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
197 |
150 |
50 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
17 |
33 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
32 |
18 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,518 |
9,226 |
5,747 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,263 |
9,252 |
6,497 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,747 |
21,228 |
11,617 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,988 |
8,984 |
6,201 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,662 |
8,751 |
6,114 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,873 |
1,116 |
765 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,804 |
1,038 |
769 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,482 |
1,595 |
931 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,900 |
1,101 |
803 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,896 |
1,076 |
823 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
39 |
11 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.4 |
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,543 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,108 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,324 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,217 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,131 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,337 |
0 |
0 |
0 |
8 |
0 |
1,987 |
117 |
bash |
9 |
no-host |
bin-true |
66,513 |
0 |
0 |
0 |
8 |
0 |
1,990 |
39 |
dash |
17 |
no-host |
bin-true |
775,708 |
0 |
0 |
0 |
8 |
0 |
2,004 |
508 |
osh-cpython |
25 |
no-host |
bin-true |
126,126 |
0 |
0 |
0 |
16 |
0 |
1,991 |
104 |
osh-native |
33 |
no-host |
bin-true |
124,216 |
0 |
0 |
0 |
16 |
0 |
1,996 |
119 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,226,120 |
0 |
0 |
0 |
32,928 |
0 |
14,510 |
1,096 |
bash |
10 |
no-host |
configure.cpython |
2,235,546 |
0 |
0 |
0 |
32,992 |
0 |
14,671 |
1,281 |
dash |
18 |
no-host |
configure.cpython |
6,220,900 |
1 |
0 |
0 |
27,512 |
0 |
13,286 |
1,292 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,190 |
0 |
0 |
0 |
27,520 |
0 |
13,295 |
1,050 |
osh-native |
34 |
no-host |
configure.cpython |
2,211,411 |
0 |
0 |
0 |
27,520 |
0 |
13,192 |
940 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,439 |
0 |
0 |
0 |
5,120 |
0 |
1,962 |
160 |
bash |
12 |
no-host |
configure.ocaml |
390,832 |
0 |
0 |
0 |
5,112 |
0 |
1,869 |
132 |
dash |
20 |
no-host |
configure.ocaml |
645,629 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
178 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,932 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
164 |
osh-native |
36 |
no-host |
configure.ocaml |
412,746 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
170 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,488 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,693 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,927 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,099,654 |
1 |
0 |
0 |
42,400 |
0 |
18,606 |
1,081 |
bash |
11 |
no-host |
configure.util-linux |
2,256,321 |
0 |
0 |
0 |
42,584 |
0 |
17,400 |
1,074 |
dash |
19 |
no-host |
configure.util-linux |
5,372,330 |
6 |
0 |
0 |
39,112 |
0 |
16,924 |
1,377 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,003,308 |
2 |
0 |
0 |
39,128 |
0 |
16,961 |
1,068 |
osh-native |
35 |
no-host |
configure.util-linux |
1,985,738 |
1 |
0 |
0 |
39,136 |
0 |
17,031 |
983 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,030 |
0 |
0 |
0 |
4,120 |
0 |
872 |
77 |
bash |
14 |
no-host |
configure.yash |
245,193 |
0 |
0 |
0 |
3,720 |
0 |
865 |
70 |
dash |
22 |
no-host |
configure.yash |
386,717 |
0 |
0 |
0 |
3,728 |
0 |
852 |
88 |
osh-cpython |
30 |
no-host |
configure.yash |
257,422 |
0 |
0 |
0 |
3,736 |
0 |
850 |
76 |
osh-native |
38 |
no-host |
configure.yash |
258,039 |
0 |
0 |
0 |
3,736 |
0 |
849 |
94 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,742 |
0 |
0 |
0 |
8 |
0 |
7 |
8 |
osh-cpython |
24 |
no-host |
hello-world |
355 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host