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 |
468 |
22 |
22 |
24.84 |
1.17 |
bin-true |
no-host |
674 |
540 |
2,368 |
810 |
805 |
3.51 |
1.20 |
configure.cpython |
no-host |
15,060 |
15,118 |
28,962 |
15,220 |
15,378 |
1.92 |
1.01 |
configure.ocaml |
no-host |
3,800 |
3,728 |
4,655 |
3,828 |
3,905 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
204 |
48 |
50 |
4.28 |
1.01 |
configure.util-linux |
no-host |
13,988 |
14,865 |
31,470 |
14,399 |
14,915 |
2.25 |
1.03 |
configure.yash |
no-host |
1,830 |
1,762 |
2,475 |
1,833 |
1,913 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
56 |
3 |
3 |
36.34 |
1.86 |
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,532 |
1,099 |
23,956 |
3,196 |
3,099 |
9.46 |
1.26 |
bin-true |
no-host |
106,404 |
66,398 |
794,421 |
125,245 |
123,270 |
7.47 |
1.18 |
configure.cpython |
no-host |
2,220,536 |
2,235,872 |
6,274,615 |
2,214,805 |
2,203,416 |
2.83 |
1.00 |
configure.ocaml |
no-host |
410,806 |
390,395 |
650,606 |
412,685 |
412,016 |
1.58 |
1.00 |
configure.tcc |
no-host |
6,534 |
5,472 |
24,457 |
6,940 |
6,904 |
3.74 |
1.06 |
configure.util-linux |
no-host |
2,102,425 |
2,256,322 |
5,424,001 |
1,990,006 |
1,991,964 |
2.58 |
0.95 |
configure.yash |
no-host |
255,617 |
243,799 |
390,469 |
258,151 |
257,646 |
1.53 |
1.01 |
hello-world |
no-host |
150 |
82 |
3,988 |
349 |
344 |
26.59 |
2.33 |
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,780 |
3,780 |
0 |
695 |
1,856 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
810 |
1 |
2 |
2.6 |
8.1 |
153,744 |
12,264 |
2,884 |
8,744 |
78,325 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,220 |
1 |
60 |
14.9 |
27.3 |
1,771,745 |
49,904 |
28,593 |
85,416 |
908,077 |
778,252 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,399 |
3 |
59 |
21.2 |
30.3 |
2,702,511 |
29,654 |
65,897 |
108,692 |
1,320,583 |
1,273,236 |
32,239 |
41 |
131,794 |
1 |
configure.ocaml |
no-host |
3,828 |
1 |
2 |
2.6 |
20.6 |
150,078 |
11,128 |
5,223 |
7,509 |
71,610 |
70,959 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.1 |
30,584 |
30,584 |
0 |
1,519 |
14,780 |
14,285 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,833 |
1 |
2 |
2.5 |
24.4 |
139,404 |
8,024 |
6,686 |
5,987 |
70,285 |
63,132 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.2 |
116,290 |
64,537 |
42,747 |
4,533 |
54,525 |
57,232 |
277 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,779 |
3,779 |
0 |
696 |
1,856 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
805 |
1 |
2 |
2.6 |
7.3 |
153,743 |
12,053 |
2,822 |
8,745 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,378 |
1 |
63 |
14.8 |
27.4 |
1,771,744 |
49,106 |
28,531 |
85,417 |
908,077 |
778,250 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,915 |
3 |
63 |
21.2 |
30.3 |
2,702,511 |
29,763 |
65,815 |
108,694 |
1,320,583 |
1,273,234 |
32,239 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,905 |
1 |
2 |
2.6 |
20.6 |
150,078 |
11,066 |
5,161 |
7,511 |
71,610 |
70,957 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,584 |
30,584 |
0 |
1,521 |
14,780 |
14,283 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,913 |
1 |
2 |
2.5 |
24.2 |
139,404 |
7,962 |
6,624 |
5,989 |
70,285 |
63,130 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,289 |
64,475 |
42,685 |
4,534 |
54,525 |
57,230 |
277 |
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 |
19 |
16 |
3 |
4.2 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
468 |
429 |
43 |
23.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.2 |
osh-native |
39 |
no-host |
abuild-print-help |
22 |
11 |
11 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
674 |
503 |
206 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
414 |
137 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,368 |
1,563 |
1,070 |
18.9 |
osh-cpython |
25 |
no-host |
bin-true |
810 |
572 |
252 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
805 |
571 |
248 |
7.3 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,060 |
9,131 |
6,320 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,118 |
9,401 |
6,145 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,962 |
17,657 |
13,183 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,220 |
8,998 |
6,490 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,378 |
9,116 |
6,442 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,800 |
1,614 |
1,227 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,728 |
1,559 |
1,191 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,655 |
2,347 |
1,522 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,828 |
1,674 |
1,191 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,905 |
1,569 |
1,372 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
19 |
29 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
204 |
142 |
65 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
33 |
16 |
19.1 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
36 |
14 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,988 |
9,020 |
5,438 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,865 |
9,182 |
6,168 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,470 |
21,301 |
11,238 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,399 |
8,766 |
5,820 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,915 |
8,830 |
6,243 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,830 |
1,083 |
756 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,762 |
979 |
785 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,475 |
1,572 |
946 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,833 |
1,024 |
813 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,913 |
1,055 |
859 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
56 |
28 |
27 |
18.8 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,532 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,099 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,956 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,196 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,099 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,404 |
0 |
0 |
0 |
8 |
0 |
1,998 |
73 |
bash |
9 |
no-host |
bin-true |
66,398 |
0 |
0 |
0 |
8 |
0 |
1,985 |
48 |
dash |
17 |
no-host |
bin-true |
794,421 |
0 |
0 |
0 |
8 |
0 |
2,004 |
471 |
osh-cpython |
25 |
no-host |
bin-true |
125,245 |
0 |
0 |
0 |
16 |
0 |
1,993 |
61 |
osh-native |
33 |
no-host |
bin-true |
123,270 |
0 |
0 |
0 |
16 |
0 |
1,991 |
75 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,220,536 |
0 |
0 |
0 |
32,928 |
0 |
14,571 |
1,050 |
bash |
10 |
no-host |
configure.cpython |
2,235,872 |
0 |
0 |
0 |
32,992 |
0 |
14,696 |
963 |
dash |
18 |
no-host |
configure.cpython |
6,274,615 |
0 |
0 |
0 |
27,512 |
0 |
13,292 |
1,367 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,214,805 |
0 |
0 |
0 |
27,520 |
0 |
13,326 |
1,212 |
osh-native |
34 |
no-host |
configure.cpython |
2,203,416 |
0 |
0 |
0 |
27,520 |
0 |
13,280 |
946 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,806 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
156 |
bash |
12 |
no-host |
configure.ocaml |
390,395 |
0 |
0 |
0 |
5,112 |
0 |
1,930 |
151 |
dash |
20 |
no-host |
configure.ocaml |
650,606 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
163 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,685 |
0 |
0 |
0 |
5,120 |
0 |
1,920 |
181 |
osh-native |
36 |
no-host |
configure.ocaml |
412,016 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
157 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,534 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,472 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
24,457 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,940 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,904 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,425 |
0 |
0 |
0 |
42,400 |
0 |
18,623 |
1,164 |
bash |
11 |
no-host |
configure.util-linux |
2,256,322 |
0 |
0 |
0 |
42,592 |
0 |
17,496 |
1,024 |
dash |
19 |
no-host |
configure.util-linux |
5,424,001 |
15 |
0 |
0 |
39,136 |
0 |
17,010 |
1,140 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,990,006 |
0 |
0 |
0 |
39,120 |
0 |
16,962 |
970 |
osh-native |
35 |
no-host |
configure.util-linux |
1,991,964 |
2 |
0 |
0 |
39,136 |
0 |
16,971 |
1,096 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,617 |
0 |
0 |
0 |
4,120 |
0 |
869 |
72 |
bash |
14 |
no-host |
configure.yash |
243,799 |
0 |
0 |
0 |
3,720 |
0 |
869 |
86 |
dash |
22 |
no-host |
configure.yash |
390,469 |
0 |
0 |
0 |
3,728 |
0 |
854 |
73 |
osh-cpython |
30 |
no-host |
configure.yash |
258,151 |
0 |
0 |
0 |
3,736 |
0 |
849 |
82 |
osh-native |
38 |
no-host |
configure.yash |
257,646 |
0 |
0 |
0 |
3,736 |
0 |
851 |
95 |
osh-native-souffle |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,988 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host