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 |
19 |
9 |
452 |
22 |
23.52 |
1.16 |
bin-true |
no-host |
677 |
561 |
2,226 |
829 |
3.29 |
1.23 |
configure.cpython |
no-host |
15,204 |
15,319 |
28,709 |
15,473 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,816 |
3,768 |
4,664 |
3,866 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
190 |
48 |
4.00 |
1.02 |
configure.util-linux |
no-host |
14,243 |
15,094 |
31,499 |
14,591 |
2.21 |
1.02 |
configure.yash |
no-host |
1,869 |
1,796 |
2,459 |
1,843 |
1.32 |
0.99 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
27.63 |
1.62 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,523 |
1,107 |
23,062 |
3,198 |
9.14 |
1.27 |
bin-true |
no-host |
104,352 |
66,465 |
744,901 |
128,606 |
7.14 |
1.23 |
configure.cpython |
no-host |
2,218,498 |
2,242,852 |
6,063,620 |
2,245,826 |
2.73 |
1.01 |
configure.ocaml |
no-host |
409,850 |
391,256 |
632,843 |
413,849 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,541 |
5,460 |
22,970 |
6,973 |
3.51 |
1.07 |
configure.util-linux |
no-host |
2,109,748 |
2,267,800 |
5,301,144 |
2,015,464 |
2.51 |
0.96 |
configure.yash |
no-host |
255,514 |
245,125 |
384,075 |
258,859 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
81 |
3,627 |
339 |
24.18 |
2.26 |
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.2 |
3,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
829 |
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,473 |
2 |
61 |
15.9 |
27.3 |
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,591 |
3 |
58 |
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,866 |
0 |
2 |
2.7 |
20.4 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
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,843 |
1 |
2 |
2.6 |
24.2 |
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.8 |
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 |
19 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
410 |
45 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
677 |
496 |
210 |
2.9 |
bash |
9 |
no-host |
bin-true |
561 |
425 |
145 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,226 |
1,462 |
1,010 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
829 |
585 |
259 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,204 |
9,192 |
6,409 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,319 |
9,352 |
6,389 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,709 |
17,727 |
12,796 |
27.1 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,473 |
9,097 |
6,641 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,816 |
1,621 |
1,232 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,768 |
1,645 |
1,144 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,664 |
2,243 |
1,623 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,866 |
1,646 |
1,259 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
24 |
24 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
33 |
9 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
190 |
117 |
76 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
40 |
9 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,243 |
8,981 |
5,740 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,094 |
9,364 |
6,225 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,499 |
20,862 |
11,700 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,591 |
8,833 |
5,953 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,869 |
1,046 |
803 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,796 |
1,079 |
719 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,459 |
1,544 |
957 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,843 |
1,067 |
777 |
24.2 |
osh-native |
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 |
48 |
36 |
12 |
17.0 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
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,523 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,107 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,062 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,198 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,352 |
0 |
0 |
0 |
8 |
0 |
1,989 |
53 |
bash |
9 |
no-host |
bin-true |
66,465 |
0 |
0 |
0 |
8 |
0 |
1,991 |
121 |
dash |
17 |
no-host |
bin-true |
744,901 |
0 |
0 |
0 |
8 |
0 |
1,998 |
226 |
osh-cpython |
25 |
no-host |
bin-true |
128,606 |
0 |
0 |
0 |
16 |
0 |
1,989 |
109 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,498 |
1 |
0 |
0 |
32,928 |
0 |
14,621 |
1,339 |
bash |
10 |
no-host |
configure.cpython |
2,242,852 |
1 |
0 |
0 |
32,992 |
0 |
14,766 |
1,064 |
dash |
18 |
no-host |
configure.cpython |
6,063,620 |
0 |
0 |
0 |
27,512 |
0 |
13,245 |
1,100 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,245,826 |
0 |
0 |
0 |
27,520 |
0 |
13,359 |
911 |
osh-native |
4 |
no-host |
configure.ocaml |
409,850 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
166 |
bash |
12 |
no-host |
configure.ocaml |
391,256 |
0 |
0 |
0 |
5,112 |
0 |
1,941 |
137 |
dash |
20 |
no-host |
configure.ocaml |
632,843 |
0 |
0 |
0 |
5,112 |
0 |
1,865 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,849 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
153 |
osh-native |
5 |
no-host |
configure.tcc |
6,541 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,460 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
22,970 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,973 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,109,748 |
1 |
0 |
0 |
42,400 |
0 |
18,570 |
1,150 |
bash |
11 |
no-host |
configure.util-linux |
2,267,800 |
0 |
0 |
0 |
42,584 |
0 |
17,370 |
1,062 |
dash |
19 |
no-host |
configure.util-linux |
5,301,144 |
13 |
0 |
0 |
39,112 |
0 |
17,061 |
1,280 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,015,464 |
0 |
0 |
0 |
39,120 |
0 |
17,049 |
936 |
osh-native |
6 |
no-host |
configure.yash |
255,514 |
0 |
0 |
0 |
4,120 |
0 |
877 |
78 |
bash |
14 |
no-host |
configure.yash |
245,125 |
0 |
0 |
0 |
3,720 |
0 |
868 |
84 |
dash |
22 |
no-host |
configure.yash |
384,075 |
0 |
0 |
0 |
3,728 |
0 |
854 |
104 |
osh-cpython |
30 |
no-host |
configure.yash |
258,859 |
0 |
0 |
0 |
3,736 |
0 |
854 |
77 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
0 |
1 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,627 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host