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 |
460 |
22 |
23.98 |
1.16 |
bin-true |
no-host |
685 |
544 |
2,259 |
831 |
3.30 |
1.21 |
configure.cpython |
no-host |
15,200 |
15,290 |
28,693 |
15,491 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,843 |
3,760 |
4,675 |
3,853 |
1.22 |
1.00 |
configure.tcc |
no-host |
49 |
43 |
196 |
49 |
4.00 |
1.01 |
configure.util-linux |
no-host |
14,266 |
15,056 |
31,322 |
14,584 |
2.20 |
1.02 |
configure.yash |
no-host |
1,844 |
1,796 |
2,471 |
1,857 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
53 |
3 |
34.77 |
1.89 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,536 |
1,101 |
22,800 |
3,172 |
8.99 |
1.25 |
bin-true |
no-host |
108,354 |
65,525 |
752,645 |
128,149 |
6.95 |
1.18 |
configure.cpython |
no-host |
2,216,527 |
2,241,921 |
6,138,713 |
2,223,752 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,873 |
391,250 |
638,737 |
413,583 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,527 |
5,501 |
23,265 |
7,005 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,102,722 |
2,256,675 |
5,317,785 |
1,997,065 |
2.53 |
0.95 |
configure.yash |
no-host |
256,196 |
245,157 |
384,150 |
257,827 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,688 |
351 |
24.10 |
2.29 |
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 |
831 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,064 |
2,817 |
9,734 |
78,361 |
66,619 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,491 |
1 |
64 |
15.0 |
27.5 |
1,772,690 |
49,457 |
28,526 |
86,381 |
908,113 |
778,196 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,584 |
3 |
63 |
21.3 |
30.1 |
2,703,426 |
44,785 |
65,811 |
109,643 |
1,320,611 |
1,273,172 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,853 |
1 |
2 |
2.6 |
20.6 |
150,060 |
11,064 |
5,157 |
7,513 |
71,649 |
70,898 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,857 |
1 |
2 |
2.6 |
24.4 |
139,717 |
7,982 |
6,618 |
6,320 |
70,321 |
63,076 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,292 |
64,473 |
42,681 |
4,555 |
54,561 |
57,176 |
478 |
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 |
15 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
460 |
418 |
45 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
685 |
513 |
202 |
2.9 |
bash |
9 |
no-host |
bin-true |
544 |
411 |
141 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,259 |
1,487 |
1,033 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
831 |
587 |
258 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,200 |
9,170 |
6,435 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,290 |
9,360 |
6,334 |
27.1 |
dash |
18 |
no-host |
configure.cpython |
28,693 |
17,515 |
13,044 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,491 |
9,282 |
6,480 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,843 |
1,682 |
1,185 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,760 |
1,651 |
1,129 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,675 |
2,313 |
1,568 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,853 |
1,665 |
1,225 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
40 |
9 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
29 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
138 |
61 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
25 |
24 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,266 |
9,053 |
5,699 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,056 |
9,290 |
6,260 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,322 |
21,192 |
11,220 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,584 |
8,816 |
5,956 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,844 |
1,048 |
805 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,796 |
984 |
815 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,471 |
1,508 |
1,007 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,857 |
1,054 |
807 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
53 |
36 |
16 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,536 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,800 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,172 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
108,354 |
0 |
0 |
0 |
8 |
0 |
1,994 |
152 |
bash |
9 |
no-host |
bin-true |
65,525 |
0 |
0 |
0 |
8 |
0 |
1,987 |
45 |
dash |
17 |
no-host |
bin-true |
752,645 |
0 |
0 |
0 |
8 |
0 |
2,000 |
170 |
osh-cpython |
25 |
no-host |
bin-true |
128,149 |
0 |
0 |
0 |
16 |
0 |
1,987 |
170 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,527 |
0 |
0 |
0 |
32,928 |
0 |
14,390 |
1,062 |
bash |
10 |
no-host |
configure.cpython |
2,241,921 |
0 |
0 |
0 |
32,992 |
0 |
14,563 |
1,003 |
dash |
18 |
no-host |
configure.cpython |
6,138,713 |
0 |
0 |
0 |
27,512 |
0 |
13,242 |
1,353 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,752 |
0 |
0 |
0 |
27,520 |
0 |
13,196 |
1,061 |
osh-native |
4 |
no-host |
configure.ocaml |
410,873 |
0 |
0 |
0 |
5,120 |
0 |
1,955 |
192 |
bash |
12 |
no-host |
configure.ocaml |
391,250 |
0 |
0 |
0 |
5,112 |
0 |
1,920 |
136 |
dash |
20 |
no-host |
configure.ocaml |
638,737 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
165 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,583 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
145 |
osh-native |
5 |
no-host |
configure.tcc |
6,527 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,501 |
0 |
0 |
0 |
96 |
0 |
47 |
11 |
dash |
21 |
no-host |
configure.tcc |
23,265 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,005 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,102,722 |
0 |
0 |
0 |
42,408 |
0 |
18,669 |
1,128 |
bash |
11 |
no-host |
configure.util-linux |
2,256,675 |
1 |
0 |
0 |
42,592 |
0 |
17,457 |
1,154 |
dash |
19 |
no-host |
configure.util-linux |
5,317,785 |
17 |
0 |
0 |
39,112 |
0 |
16,960 |
1,180 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,065 |
1 |
0 |
0 |
39,128 |
0 |
16,899 |
1,002 |
osh-native |
6 |
no-host |
configure.yash |
256,196 |
0 |
0 |
0 |
4,120 |
0 |
868 |
85 |
bash |
14 |
no-host |
configure.yash |
245,157 |
0 |
0 |
0 |
3,720 |
0 |
869 |
77 |
dash |
22 |
no-host |
configure.yash |
384,150 |
0 |
0 |
0 |
3,728 |
0 |
855 |
143 |
osh-cpython |
30 |
no-host |
configure.yash |
257,827 |
0 |
0 |
0 |
3,736 |
0 |
849 |
98 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,688 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host