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 |
23.42 |
1.13 |
bin-true |
no-host |
694 |
557 |
2,270 |
817 |
3.27 |
1.18 |
configure.cpython |
no-host |
15,350 |
15,508 |
29,259 |
15,080 |
1.91 |
0.98 |
configure.ocaml |
no-host |
3,895 |
3,829 |
4,628 |
3,802 |
1.19 |
0.98 |
configure.tcc |
no-host |
48 |
42 |
194 |
48 |
4.01 |
0.99 |
configure.util-linux |
no-host |
14,506 |
15,346 |
32,031 |
14,203 |
2.21 |
0.98 |
configure.yash |
no-host |
1,881 |
1,817 |
2,454 |
1,840 |
1.30 |
0.98 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
33.26 |
1.82 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,558 |
1,125 |
22,836 |
3,178 |
8.93 |
1.24 |
bin-true |
no-host |
106,295 |
66,449 |
749,423 |
127,422 |
7.05 |
1.20 |
configure.cpython |
no-host |
2,215,454 |
2,245,860 |
6,119,130 |
2,221,204 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,060 |
391,415 |
638,633 |
413,841 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,560 |
5,482 |
23,246 |
6,974 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,101,892 |
2,257,016 |
5,307,892 |
1,992,442 |
2.53 |
0.95 |
configure.yash |
no-host |
256,648 |
244,572 |
383,777 |
257,921 |
1.50 |
1.00 |
hello-world |
no-host |
152 |
84 |
3,690 |
349 |
24.28 |
2.30 |
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 |
817 |
1 |
2 |
2.6 |
7.9 |
154,701 |
13,053 |
2,806 |
9,731 |
78,355 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,080 |
1 |
58 |
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,203 |
3 |
58 |
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,802 |
1 |
2 |
2.6 |
20.6 |
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,840 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
455 |
414 |
44 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
694 |
535 |
190 |
2.9 |
bash |
9 |
no-host |
bin-true |
557 |
423 |
142 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,270 |
1,496 |
1,044 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
604 |
227 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,350 |
9,271 |
6,474 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,508 |
9,391 |
6,543 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,259 |
17,808 |
13,377 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,080 |
8,958 |
6,385 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,895 |
1,650 |
1,288 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,829 |
1,615 |
1,234 |
20.3 |
dash |
20 |
no-host |
configure.ocaml |
4,628 |
2,161 |
1,678 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,802 |
1,624 |
1,217 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
37 |
12 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
29 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
133 |
64 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
24 |
24 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,506 |
8,990 |
5,988 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
15,346 |
9,360 |
6,472 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,031 |
21,531 |
11,624 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,203 |
8,602 |
5,791 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,881 |
1,103 |
782 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,817 |
1,069 |
750 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,454 |
1,543 |
953 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,840 |
1,011 |
829 |
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 |
52 |
21 |
30 |
17.6 |
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,558 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,125 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,836 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,178 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,295 |
0 |
0 |
0 |
8 |
0 |
1,987 |
83 |
bash |
9 |
no-host |
bin-true |
66,449 |
0 |
0 |
0 |
8 |
0 |
1,979 |
67 |
dash |
17 |
no-host |
bin-true |
749,423 |
0 |
0 |
0 |
8 |
0 |
1,994 |
130 |
osh-cpython |
25 |
no-host |
bin-true |
127,422 |
0 |
0 |
0 |
16 |
0 |
1,995 |
93 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,454 |
0 |
0 |
0 |
32,928 |
0 |
14,485 |
1,160 |
bash |
10 |
no-host |
configure.cpython |
2,245,860 |
0 |
0 |
0 |
32,992 |
0 |
14,594 |
1,154 |
dash |
18 |
no-host |
configure.cpython |
6,119,130 |
0 |
0 |
0 |
27,512 |
0 |
13,276 |
1,228 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,204 |
0 |
0 |
0 |
27,520 |
0 |
13,214 |
1,087 |
osh-native |
4 |
no-host |
configure.ocaml |
410,060 |
0 |
0 |
0 |
5,120 |
0 |
1,943 |
171 |
bash |
12 |
no-host |
configure.ocaml |
391,415 |
0 |
0 |
0 |
5,112 |
0 |
1,884 |
140 |
dash |
20 |
no-host |
configure.ocaml |
638,633 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
177 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,841 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
337 |
osh-native |
5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,246 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,974 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,892 |
0 |
0 |
0 |
42,400 |
0 |
18,617 |
1,106 |
bash |
11 |
no-host |
configure.util-linux |
2,257,016 |
0 |
0 |
0 |
42,584 |
0 |
17,413 |
1,299 |
dash |
19 |
no-host |
configure.util-linux |
5,307,892 |
9 |
0 |
0 |
39,120 |
0 |
16,971 |
1,363 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,992,442 |
4 |
0 |
0 |
39,128 |
0 |
16,980 |
1,082 |
osh-native |
6 |
no-host |
configure.yash |
256,648 |
0 |
0 |
0 |
4,120 |
0 |
870 |
74 |
bash |
14 |
no-host |
configure.yash |
244,572 |
0 |
0 |
0 |
3,720 |
0 |
872 |
86 |
dash |
22 |
no-host |
configure.yash |
383,777 |
0 |
0 |
0 |
3,728 |
0 |
852 |
90 |
osh-cpython |
30 |
no-host |
configure.yash |
257,921 |
0 |
0 |
0 |
3,736 |
0 |
843 |
98 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,690 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
0 |
0 |
osh-native |
Shell and Host