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 |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
20 |
9 |
451 |
22 |
23.00 |
1.13 |
bin-true |
no-host |
683 |
555 |
2,227 |
820 |
3.26 |
1.20 |
configure.cpython |
no-host |
15,649 |
15,302 |
28,896 |
15,639 |
1.85 |
1.00 |
configure.ocaml |
no-host |
3,994 |
3,768 |
4,633 |
3,861 |
1.16 |
0.97 |
configure.tcc |
no-host |
49 |
42 |
212 |
49 |
4.31 |
1.01 |
configure.util-linux |
no-host |
14,311 |
15,087 |
31,304 |
14,721 |
2.19 |
1.03 |
configure.yash |
no-host |
1,877 |
1,785 |
2,488 |
1,854 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
27.11 |
1.63 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,512 |
1,100 |
23,035 |
3,177 |
9.17 |
1.26 |
bin-true |
no-host |
102,380 |
66,450 |
743,933 |
128,641 |
7.27 |
1.26 |
configure.cpython |
no-host |
2,218,839 |
2,244,247 |
6,062,454 |
2,256,553 |
2.73 |
1.02 |
configure.ocaml |
no-host |
410,365 |
391,066 |
634,669 |
414,194 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,543 |
5,493 |
22,970 |
6,957 |
3.51 |
1.06 |
configure.util-linux |
no-host |
2,105,887 |
2,260,653 |
5,293,931 |
2,013,770 |
2.51 |
0.96 |
configure.yash |
no-host |
256,817 |
244,465 |
383,565 |
258,189 |
1.49 |
1.01 |
hello-world |
no-host |
151 |
83 |
3,625 |
345 |
24.01 |
2.28 |
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.0 |
3,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.7 |
8.0 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,639 |
2 |
64 |
15.9 |
27.4 |
1,765,934 |
39,052 |
24,503 |
101,923 |
901,347 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,721 |
3 |
61 |
22.2 |
30.1 |
2,695,085 |
29,056 |
65,754 |
126,121 |
1,312,366 |
1,256,598 |
49,081 |
41 |
131,508 |
1 |
configure.ocaml |
no-host |
3,861 |
1 |
2 |
2.7 |
20.6 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,854 |
1 |
2 |
2.6 |
24.4 |
138,968 |
6,642 |
6,495 |
7,554 |
69,574 |
61,840 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,013 |
64,388 |
42,627 |
4,601 |
54,295 |
57,117 |
478 |
3 |
85,254 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
451 |
412 |
42 |
21.2 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
6 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
683 |
511 |
204 |
2.9 |
bash |
9 |
no-host |
bin-true |
555 |
414 |
150 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,227 |
1,490 |
987 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
583 |
252 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,649 |
9,336 |
6,690 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,302 |
9,178 |
6,541 |
27.1 |
dash |
18 |
no-host |
configure.cpython |
28,896 |
17,539 |
13,184 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,639 |
9,319 |
6,549 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,994 |
1,637 |
1,381 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,768 |
1,580 |
1,207 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,633 |
2,218 |
1,618 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,861 |
1,660 |
1,240 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
31 |
18 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
25 |
17 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
212 |
163 |
52 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
21 |
29 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,311 |
9,167 |
5,626 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,087 |
9,247 |
6,304 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,304 |
20,881 |
11,480 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,721 |
8,784 |
6,109 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,877 |
1,095 |
791 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,785 |
1,023 |
766 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,488 |
1,520 |
1,011 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,854 |
1,057 |
801 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
47 |
26 |
21 |
17.0 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
osh-native |
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,512 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,035 |
0 |
0 |
0 |
8 |
0 |
46 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,177 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
102,380 |
0 |
0 |
0 |
8 |
0 |
1,991 |
113 |
bash |
9 |
no-host |
bin-true |
66,450 |
0 |
0 |
0 |
8 |
0 |
1,983 |
36 |
dash |
17 |
no-host |
bin-true |
743,933 |
0 |
0 |
0 |
8 |
0 |
1,992 |
306 |
osh-cpython |
25 |
no-host |
bin-true |
128,641 |
0 |
0 |
0 |
16 |
0 |
1,987 |
139 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,839 |
0 |
0 |
0 |
32,928 |
0 |
14,655 |
1,036 |
bash |
10 |
no-host |
configure.cpython |
2,244,247 |
0 |
0 |
0 |
32,992 |
0 |
14,591 |
1,018 |
dash |
18 |
no-host |
configure.cpython |
6,062,454 |
1 |
0 |
0 |
27,512 |
0 |
13,385 |
1,229 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,256,553 |
0 |
0 |
0 |
27,520 |
0 |
13,372 |
1,132 |
osh-native |
4 |
no-host |
configure.ocaml |
410,365 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
159 |
bash |
12 |
no-host |
configure.ocaml |
391,066 |
0 |
0 |
0 |
5,112 |
0 |
1,895 |
164 |
dash |
20 |
no-host |
configure.ocaml |
634,669 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
189 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,194 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
167 |
osh-native |
5 |
no-host |
configure.tcc |
6,543 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,493 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
22,970 |
0 |
0 |
0 |
96 |
0 |
52 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,957 |
0 |
0 |
0 |
104 |
0 |
47 |
7 |
osh-native |
3 |
no-host |
configure.util-linux |
2,105,887 |
8 |
0 |
0 |
42,408 |
0 |
18,606 |
1,060 |
bash |
11 |
no-host |
configure.util-linux |
2,260,653 |
0 |
0 |
0 |
42,592 |
0 |
17,376 |
1,167 |
dash |
19 |
no-host |
configure.util-linux |
5,293,931 |
11 |
0 |
0 |
39,112 |
0 |
17,202 |
1,230 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,770 |
1 |
0 |
0 |
39,120 |
0 |
17,050 |
987 |
osh-native |
6 |
no-host |
configure.yash |
256,817 |
0 |
0 |
0 |
4,120 |
0 |
868 |
74 |
bash |
14 |
no-host |
configure.yash |
244,465 |
0 |
0 |
0 |
3,720 |
0 |
862 |
73 |
dash |
22 |
no-host |
configure.yash |
383,565 |
0 |
0 |
0 |
3,728 |
0 |
860 |
106 |
osh-cpython |
30 |
no-host |
configure.yash |
258,189 |
0 |
0 |
0 |
3,736 |
0 |
852 |
106 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,625 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host