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 |
10 |
472 |
23 |
24.10 |
1.16 |
bin-true |
no-host |
682 |
551 |
2,341 |
831 |
3.43 |
1.22 |
configure.cpython |
no-host |
15,962 |
16,086 |
31,101 |
16,153 |
1.95 |
1.01 |
configure.ocaml |
no-host |
3,991 |
3,939 |
4,870 |
3,999 |
1.22 |
1.00 |
configure.tcc |
no-host |
51 |
44 |
199 |
52 |
3.88 |
1.00 |
configure.util-linux |
no-host |
14,868 |
15,758 |
33,564 |
15,203 |
2.26 |
1.02 |
configure.yash |
no-host |
1,934 |
1,869 |
2,616 |
1,941 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
54 |
3 |
33.28 |
1.83 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,519 |
1,111 |
22,764 |
3,207 |
9.04 |
1.27 |
bin-true |
no-host |
105,324 |
66,439 |
757,642 |
127,151 |
7.19 |
1.21 |
configure.cpython |
no-host |
2,219,568 |
2,241,299 |
6,147,906 |
2,214,857 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,459 |
391,361 |
639,407 |
413,448 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,582 |
5,483 |
23,263 |
6,988 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,101,725 |
2,255,881 |
5,299,664 |
1,997,154 |
2.52 |
0.95 |
configure.yash |
no-host |
255,723 |
243,211 |
384,288 |
258,661 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
82 |
3,687 |
352 |
24.58 |
2.35 |
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.3 |
154,714 |
13,064 |
2,817 |
9,734 |
78,361 |
66,619 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,153 |
1 |
68 |
15.0 |
27.3 |
1,772,690 |
49,457 |
28,526 |
86,381 |
908,113 |
778,196 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,203 |
3 |
66 |
21.3 |
30.1 |
2,703,535 |
44,785 |
65,811 |
109,673 |
1,320,647 |
1,273,215 |
49,086 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,999 |
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 |
52 |
0 |
0 |
1.3 |
19.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,941 |
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 |
23 |
1 |
2 |
2.8 |
9.0 |
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 |
20 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
6 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
472 |
425 |
50 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
7 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
682 |
492 |
224 |
2.9 |
bash |
9 |
no-host |
bin-true |
551 |
413 |
148 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,341 |
1,521 |
1,104 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
831 |
564 |
283 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
15,962 |
9,697 |
6,685 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
16,086 |
9,710 |
6,796 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
31,101 |
18,979 |
14,163 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,153 |
9,497 |
6,937 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,991 |
1,705 |
1,322 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,939 |
1,681 |
1,280 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,870 |
2,386 |
1,704 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,999 |
1,700 |
1,338 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
51 |
33 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
44 |
26 |
18 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
199 |
135 |
68 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
35 |
17 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,868 |
9,281 |
6,085 |
29.9 |
bash |
11 |
no-host |
configure.util-linux |
15,758 |
9,592 |
6,671 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
33,564 |
22,194 |
12,533 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,203 |
9,118 |
6,283 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,934 |
1,104 |
839 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,869 |
1,059 |
814 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,616 |
1,617 |
1,045 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,941 |
1,099 |
846 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
54 |
33 |
20 |
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,519 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,111 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,764 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,207 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
1 |
no-host |
bin-true |
105,324 |
0 |
0 |
0 |
8 |
0 |
1,985 |
44 |
bash |
9 |
no-host |
bin-true |
66,439 |
0 |
0 |
0 |
8 |
0 |
1,986 |
32 |
dash |
17 |
no-host |
bin-true |
757,642 |
0 |
0 |
0 |
8 |
0 |
2,002 |
144 |
osh-cpython |
25 |
no-host |
bin-true |
127,151 |
0 |
0 |
0 |
16 |
0 |
1,984 |
77 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,568 |
1 |
0 |
0 |
32,928 |
0 |
14,489 |
1,136 |
bash |
10 |
no-host |
configure.cpython |
2,241,299 |
0 |
0 |
0 |
32,992 |
0 |
14,639 |
1,187 |
dash |
18 |
no-host |
configure.cpython |
6,147,906 |
0 |
0 |
0 |
27,512 |
0 |
13,262 |
1,400 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,214,857 |
0 |
0 |
0 |
27,520 |
0 |
13,260 |
941 |
osh-native |
4 |
no-host |
configure.ocaml |
410,459 |
0 |
0 |
0 |
5,120 |
0 |
1,965 |
194 |
bash |
12 |
no-host |
configure.ocaml |
391,361 |
0 |
0 |
0 |
5,112 |
0 |
1,924 |
147 |
dash |
20 |
no-host |
configure.ocaml |
639,407 |
1 |
0 |
0 |
5,112 |
0 |
1,852 |
191 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,448 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
170 |
osh-native |
5 |
no-host |
configure.tcc |
6,582 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,483 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,263 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,988 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,725 |
0 |
0 |
0 |
42,408 |
0 |
18,574 |
1,059 |
bash |
11 |
no-host |
configure.util-linux |
2,255,881 |
1 |
0 |
0 |
42,592 |
0 |
17,442 |
1,109 |
dash |
19 |
no-host |
configure.util-linux |
5,299,664 |
12 |
0 |
0 |
39,112 |
0 |
16,994 |
1,310 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,154 |
0 |
0 |
0 |
39,144 |
0 |
16,970 |
1,148 |
osh-native |
6 |
no-host |
configure.yash |
255,723 |
0 |
0 |
0 |
4,120 |
0 |
866 |
83 |
bash |
14 |
no-host |
configure.yash |
243,211 |
0 |
0 |
0 |
3,720 |
0 |
866 |
78 |
dash |
22 |
no-host |
configure.yash |
384,288 |
0 |
0 |
0 |
3,728 |
0 |
854 |
157 |
osh-cpython |
30 |
no-host |
configure.yash |
258,661 |
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,687 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host