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 |
457 |
22 |
24.20 |
1.18 |
bin-true |
no-host |
669 |
547 |
2,243 |
816 |
3.35 |
1.22 |
configure.cpython |
no-host |
15,041 |
15,073 |
28,583 |
15,278 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,788 |
3,759 |
4,642 |
3,820 |
1.23 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
194 |
48 |
4.09 |
1.01 |
configure.util-linux |
no-host |
14,006 |
14,962 |
31,206 |
14,414 |
2.23 |
1.03 |
configure.yash |
no-host |
1,844 |
1,771 |
2,452 |
1,835 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.52 |
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,542 |
1,106 |
22,922 |
3,169 |
9.02 |
1.25 |
bin-true |
no-host |
104,340 |
66,382 |
751,527 |
126,381 |
7.20 |
1.21 |
configure.cpython |
no-host |
2,220,685 |
2,238,591 |
6,118,513 |
2,226,101 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,194 |
391,325 |
639,439 |
413,397 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,560 |
5,465 |
23,298 |
6,957 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,103,568 |
2,261,625 |
5,294,016 |
1,992,253 |
2.52 |
0.95 |
configure.yash |
no-host |
256,206 |
243,509 |
384,202 |
258,844 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
84 |
3,686 |
349 |
23.94 |
2.27 |
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,736 |
3,736 |
0 |
681 |
1,886 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.6 |
8.1 |
154,701 |
13,053 |
2,806 |
9,731 |
78,355 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,278 |
1 |
62 |
15.0 |
27.4 |
1,772,677 |
49,204 |
28,515 |
86,378 |
908,107 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,414 |
3 |
61 |
21.3 |
30.1 |
2,703,413 |
42,779 |
65,820 |
109,640 |
1,320,605 |
1,273,168 |
49,081 |
41 |
131,640 |
1 |
configure.ocaml |
no-host |
3,820 |
1 |
2 |
2.6 |
20.4 |
150,047 |
11,053 |
5,146 |
7,510 |
71,643 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,536 |
30,536 |
0 |
1,501 |
14,810 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,835 |
1 |
2 |
2.6 |
24.2 |
139,704 |
7,971 |
6,607 |
6,317 |
70,315 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,279 |
64,462 |
42,670 |
4,552 |
54,555 |
57,172 |
478 |
3 |
85,340 |
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 |
11 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
457 |
394 |
66 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
22 |
1 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
669 |
482 |
219 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
420 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,243 |
1,473 |
1,034 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
578 |
255 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,041 |
9,173 |
6,268 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,073 |
9,299 |
6,180 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,583 |
17,679 |
12,777 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,278 |
9,168 |
6,368 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,788 |
1,607 |
1,220 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,759 |
1,601 |
1,175 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,642 |
2,241 |
1,608 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,820 |
1,593 |
1,264 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
36 |
12 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
20 |
22 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
128 |
69 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
19 |
29 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,006 |
8,969 |
5,499 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,962 |
9,218 |
6,233 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,206 |
20,795 |
11,513 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,414 |
8,687 |
5,919 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,844 |
1,043 |
787 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,771 |
1,092 |
683 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,452 |
1,515 |
979 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,835 |
1,045 |
794 |
24.2 |
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 |
48 |
32 |
16 |
17.4 |
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,542 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,922 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,169 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
104,340 |
0 |
0 |
0 |
8 |
0 |
1,994 |
55 |
bash |
9 |
no-host |
bin-true |
66,382 |
0 |
0 |
0 |
8 |
0 |
1,991 |
66 |
dash |
17 |
no-host |
bin-true |
751,527 |
0 |
0 |
0 |
8 |
0 |
1,989 |
152 |
osh-cpython |
25 |
no-host |
bin-true |
126,381 |
0 |
0 |
0 |
16 |
0 |
1,987 |
68 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,685 |
0 |
0 |
0 |
32,928 |
0 |
14,553 |
1,166 |
bash |
10 |
no-host |
configure.cpython |
2,238,591 |
0 |
0 |
0 |
32,992 |
0 |
14,650 |
1,069 |
dash |
18 |
no-host |
configure.cpython |
6,118,513 |
0 |
0 |
0 |
27,512 |
0 |
13,278 |
1,131 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,226,101 |
0 |
0 |
0 |
27,520 |
0 |
13,208 |
944 |
osh-native |
4 |
no-host |
configure.ocaml |
410,194 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
147 |
bash |
12 |
no-host |
configure.ocaml |
391,325 |
0 |
0 |
0 |
5,112 |
0 |
1,926 |
158 |
dash |
20 |
no-host |
configure.ocaml |
639,439 |
1 |
0 |
0 |
5,112 |
0 |
1,853 |
184 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,397 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
165 |
osh-native |
5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
48 |
6 |
bash |
13 |
no-host |
configure.tcc |
5,465 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,298 |
0 |
0 |
0 |
96 |
0 |
53 |
13 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,957 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,568 |
1 |
0 |
0 |
42,400 |
0 |
18,545 |
1,170 |
bash |
11 |
no-host |
configure.util-linux |
2,261,625 |
0 |
0 |
0 |
42,592 |
0 |
17,435 |
1,370 |
dash |
19 |
no-host |
configure.util-linux |
5,294,016 |
5 |
0 |
0 |
39,112 |
0 |
16,971 |
1,360 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,992,253 |
0 |
0 |
0 |
39,120 |
0 |
17,001 |
982 |
osh-native |
6 |
no-host |
configure.yash |
256,206 |
0 |
0 |
0 |
4,120 |
0 |
885 |
80 |
bash |
14 |
no-host |
configure.yash |
243,509 |
0 |
0 |
0 |
3,720 |
0 |
870 |
77 |
dash |
22 |
no-host |
configure.yash |
384,202 |
0 |
0 |
0 |
3,728 |
0 |
850 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
258,844 |
0 |
0 |
0 |
3,736 |
0 |
847 |
87 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,686 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host