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 |
465 |
22 |
24.12 |
1.13 |
bin-true |
no-host |
673 |
544 |
2,290 |
823 |
3.40 |
1.22 |
configure.cpython |
no-host |
15,053 |
15,157 |
28,731 |
15,294 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,807 |
3,759 |
4,639 |
3,824 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
193 |
48 |
4.03 |
1.01 |
configure.util-linux |
no-host |
14,083 |
14,946 |
31,215 |
14,443 |
2.22 |
1.03 |
configure.yash |
no-host |
1,825 |
1,784 |
2,460 |
1,819 |
1.35 |
1.00 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
33.73 |
1.92 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,571 |
1,108 |
22,967 |
3,198 |
8.93 |
1.24 |
bin-true |
no-host |
105,394 |
66,386 |
763,857 |
128,236 |
7.25 |
1.22 |
configure.cpython |
no-host |
2,221,166 |
2,245,020 |
6,185,999 |
2,216,569 |
2.79 |
1.00 |
configure.ocaml |
no-host |
411,108 |
391,231 |
640,545 |
413,685 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,558 |
5,474 |
23,297 |
6,991 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,101,654 |
2,261,900 |
5,335,620 |
1,992,868 |
2.54 |
0.95 |
configure.yash |
no-host |
255,569 |
245,071 |
385,747 |
258,085 |
1.51 |
1.01 |
hello-world |
no-host |
150 |
82 |
3,701 |
346 |
24.67 |
2.31 |
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.2 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
823 |
1 |
2 |
2.6 |
8.1 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,294 |
1 |
61 |
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,443 |
3 |
59 |
21.3 |
30.3 |
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,824 |
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.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,819 |
1 |
2 |
2.6 |
24.5 |
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 |
13 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
465 |
432 |
37 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
673 |
493 |
210 |
3.0 |
bash |
9 |
no-host |
bin-true |
544 |
415 |
139 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,290 |
1,549 |
1,005 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
823 |
558 |
279 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,053 |
9,319 |
6,130 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,157 |
9,212 |
6,368 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,731 |
17,546 |
13,047 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,294 |
9,081 |
6,486 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,807 |
1,628 |
1,219 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,759 |
1,601 |
1,178 |
20.3 |
dash |
20 |
no-host |
configure.ocaml |
4,639 |
2,194 |
1,653 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,824 |
1,623 |
1,237 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
30 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
24 |
17 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
135 |
60 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
27 |
21 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,083 |
8,832 |
5,722 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,946 |
9,279 |
6,172 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,215 |
20,753 |
11,544 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,443 |
8,679 |
5,959 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,825 |
1,042 |
790 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,784 |
1,026 |
761 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,460 |
1,466 |
1,037 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,819 |
1,008 |
815 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
25 |
24 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,571 |
0 |
0 |
0 |
16 |
0 |
40 |
6 |
bash |
15 |
no-host |
abuild-print-help |
1,108 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,967 |
0 |
0 |
0 |
8 |
0 |
45 |
4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,198 |
0 |
0 |
0 |
16 |
0 |
39 |
6 |
osh-native |
1 |
no-host |
bin-true |
105,394 |
0 |
0 |
0 |
8 |
0 |
1,993 |
60 |
bash |
9 |
no-host |
bin-true |
66,386 |
0 |
0 |
0 |
8 |
0 |
1,987 |
98 |
dash |
17 |
no-host |
bin-true |
763,857 |
0 |
0 |
0 |
8 |
0 |
2,002 |
273 |
osh-cpython |
25 |
no-host |
bin-true |
128,236 |
0 |
0 |
0 |
16 |
0 |
1,987 |
143 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,166 |
0 |
0 |
0 |
32,928 |
0 |
14,523 |
995 |
bash |
10 |
no-host |
configure.cpython |
2,245,020 |
1 |
0 |
0 |
32,992 |
0 |
14,641 |
1,170 |
dash |
18 |
no-host |
configure.cpython |
6,185,999 |
0 |
0 |
0 |
27,512 |
0 |
13,228 |
1,377 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,216,569 |
0 |
0 |
0 |
27,520 |
0 |
13,324 |
976 |
osh-native |
4 |
no-host |
configure.ocaml |
411,108 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
173 |
bash |
12 |
no-host |
configure.ocaml |
391,231 |
0 |
0 |
0 |
5,112 |
0 |
1,888 |
163 |
dash |
20 |
no-host |
configure.ocaml |
640,545 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
205 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,685 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
173 |
osh-native |
5 |
no-host |
configure.tcc |
6,558 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,474 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,297 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,991 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,654 |
1 |
0 |
0 |
42,400 |
0 |
18,511 |
1,182 |
bash |
11 |
no-host |
configure.util-linux |
2,261,900 |
0 |
0 |
0 |
42,584 |
0 |
17,382 |
1,140 |
dash |
19 |
no-host |
configure.util-linux |
5,335,620 |
16 |
0 |
0 |
39,128 |
0 |
16,934 |
1,171 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,992,868 |
2 |
0 |
0 |
39,120 |
0 |
16,948 |
1,135 |
osh-native |
6 |
no-host |
configure.yash |
255,569 |
0 |
0 |
0 |
4,120 |
0 |
870 |
74 |
bash |
14 |
no-host |
configure.yash |
245,071 |
0 |
0 |
0 |
3,720 |
0 |
872 |
88 |
dash |
22 |
no-host |
configure.yash |
385,747 |
0 |
0 |
0 |
3,728 |
0 |
855 |
107 |
osh-cpython |
30 |
no-host |
configure.yash |
258,085 |
0 |
0 |
0 |
3,736 |
0 |
848 |
99 |
osh-native |
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,701 |
0 |
0 |
0 |
8 |
0 |
6 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host