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 |
10 |
455 |
22 |
24.03 |
1.19 |
bin-true |
no-host |
678 |
540 |
2,261 |
816 |
3.34 |
1.20 |
configure.cpython |
no-host |
15,001 |
15,039 |
28,513 |
15,139 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,772 |
3,717 |
4,618 |
3,804 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
193 |
48 |
4.04 |
1.01 |
configure.util-linux |
no-host |
13,987 |
14,862 |
31,008 |
14,332 |
2.22 |
1.02 |
configure.yash |
no-host |
1,822 |
1,763 |
2,442 |
1,827 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.39 |
2.01 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,557 |
1,108 |
22,937 |
3,189 |
8.97 |
1.25 |
bin-true |
no-host |
107,379 |
66,415 |
758,889 |
128,131 |
7.07 |
1.19 |
configure.cpython |
no-host |
2,215,876 |
2,246,358 |
6,187,876 |
2,217,774 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,000 |
390,777 |
640,685 |
413,937 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,551 |
5,481 |
23,292 |
6,989 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,101,730 |
2,262,284 |
5,331,290 |
2,001,243 |
2.54 |
0.95 |
configure.yash |
no-host |
256,153 |
244,572 |
385,753 |
257,011 |
1.51 |
1.00 |
hello-world |
no-host |
152 |
83 |
3,692 |
347 |
24.29 |
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.3 |
6.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,139 |
1 |
60 |
15.0 |
27.4 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,332 |
3 |
59 |
21.3 |
30.4 |
2,703,426 |
42,745 |
65,832 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,804 |
1 |
2 |
2.6 |
20.6 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.4 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,827 |
1 |
2 |
2.6 |
24.2 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
455 |
407 |
50 |
21.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
678 |
506 |
202 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
407 |
143 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,261 |
1,449 |
1,075 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
601 |
229 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,001 |
9,200 |
6,190 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,039 |
8,980 |
6,485 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,513 |
17,435 |
12,937 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,139 |
8,848 |
6,548 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,772 |
1,664 |
1,141 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,717 |
1,572 |
1,165 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,618 |
2,260 |
1,566 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,804 |
1,585 |
1,257 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
32 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
33 |
9 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
158 |
38 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
19 |
30 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,987 |
8,778 |
5,685 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,862 |
9,198 |
6,129 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,008 |
20,734 |
11,341 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,332 |
8,808 |
5,703 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,822 |
1,085 |
741 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,763 |
1,048 |
717 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,442 |
1,542 |
943 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,827 |
1,075 |
753 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
37 |
12 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,557 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,108 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,937 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,189 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,379 |
0 |
0 |
0 |
8 |
0 |
1,994 |
54 |
bash |
9 |
no-host |
bin-true |
66,415 |
0 |
0 |
0 |
8 |
0 |
1,993 |
38 |
dash |
17 |
no-host |
bin-true |
758,889 |
0 |
0 |
0 |
8 |
0 |
1,995 |
300 |
osh-cpython |
25 |
no-host |
bin-true |
128,131 |
0 |
0 |
0 |
16 |
0 |
1,992 |
70 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,876 |
0 |
0 |
0 |
32,928 |
0 |
14,523 |
1,110 |
bash |
10 |
no-host |
configure.cpython |
2,246,358 |
0 |
0 |
0 |
32,992 |
0 |
14,623 |
1,118 |
dash |
18 |
no-host |
configure.cpython |
6,187,876 |
1 |
0 |
0 |
27,512 |
0 |
13,277 |
1,293 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,217,774 |
1 |
0 |
0 |
27,520 |
0 |
13,272 |
994 |
osh-native |
4 |
no-host |
configure.ocaml |
410,000 |
0 |
0 |
0 |
5,120 |
0 |
1,941 |
190 |
bash |
12 |
no-host |
configure.ocaml |
390,777 |
0 |
0 |
0 |
5,112 |
0 |
1,944 |
152 |
dash |
20 |
no-host |
configure.ocaml |
640,685 |
0 |
0 |
0 |
5,112 |
0 |
1,867 |
151 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,937 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
175 |
osh-native |
5 |
no-host |
configure.tcc |
6,551 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,292 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,989 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,730 |
0 |
0 |
0 |
42,400 |
0 |
18,699 |
1,074 |
bash |
11 |
no-host |
configure.util-linux |
2,262,284 |
2 |
0 |
0 |
42,592 |
0 |
17,457 |
1,143 |
dash |
19 |
no-host |
configure.util-linux |
5,331,290 |
1 |
0 |
0 |
39,112 |
0 |
16,892 |
1,265 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,001,243 |
1 |
0 |
0 |
39,120 |
0 |
17,013 |
1,127 |
osh-native |
6 |
no-host |
configure.yash |
256,153 |
0 |
0 |
0 |
4,120 |
0 |
877 |
75 |
bash |
14 |
no-host |
configure.yash |
244,572 |
0 |
0 |
0 |
3,720 |
0 |
869 |
101 |
dash |
22 |
no-host |
configure.yash |
385,753 |
0 |
0 |
0 |
3,728 |
0 |
853 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
257,011 |
0 |
0 |
0 |
3,744 |
0 |
850 |
80 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,692 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host