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 |
452 |
21 |
23.52 |
1.11 |
bin-true |
no-host |
671 |
543 |
2,242 |
804 |
3.34 |
1.20 |
configure.cpython |
no-host |
14,715 |
14,857 |
27,931 |
14,966 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,756 |
3,690 |
4,543 |
3,776 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
191 |
49 |
4.01 |
1.03 |
configure.util-linux |
no-host |
13,793 |
14,653 |
30,547 |
14,127 |
2.21 |
1.02 |
configure.yash |
no-host |
1,807 |
1,733 |
2,394 |
1,801 |
1.33 |
1.00 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.25 |
1.86 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,539 |
1,106 |
22,835 |
3,158 |
8.99 |
1.24 |
bin-true |
no-host |
103,366 |
66,470 |
751,446 |
126,390 |
7.27 |
1.22 |
configure.cpython |
no-host |
2,218,154 |
2,246,973 |
6,119,976 |
2,220,237 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,412 |
390,938 |
638,358 |
413,023 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,556 |
5,475 |
23,239 |
6,984 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,113,857 |
2,258,396 |
5,309,053 |
1,995,384 |
2.51 |
0.94 |
configure.yash |
no-host |
256,577 |
245,150 |
384,648 |
258,250 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,691 |
347 |
23.97 |
2.25 |
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.0 |
3,736 |
3,736 |
0 |
681 |
1,886 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
804 |
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 |
14,966 |
1 |
57 |
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,127 |
3 |
57 |
21.3 |
30.0 |
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,776 |
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 |
49 |
0 |
0 |
1.3 |
19.4 |
30,536 |
30,536 |
0 |
1,501 |
14,810 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,801 |
1 |
2 |
2.6 |
24.4 |
139,704 |
7,971 |
6,607 |
6,317 |
70,315 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
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.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
452 |
422 |
33 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
21 |
17 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
671 |
473 |
229 |
3.0 |
bash |
9 |
no-host |
bin-true |
543 |
419 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,242 |
1,493 |
1,010 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
804 |
586 |
233 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,715 |
8,888 |
6,225 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,857 |
9,126 |
6,152 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
27,931 |
17,143 |
12,618 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,966 |
8,930 |
6,297 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,756 |
1,544 |
1,251 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,690 |
1,542 |
1,167 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,543 |
2,155 |
1,592 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,776 |
1,550 |
1,265 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
22 |
26 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
23 |
19 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
135 |
59 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
36 |
14 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,793 |
8,695 |
5,574 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,653 |
9,016 |
6,129 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,547 |
20,691 |
10,927 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,127 |
8,592 |
5,714 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,807 |
970 |
824 |
24.1 |
bash |
14 |
no-host |
configure.yash |
1,733 |
972 |
762 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,394 |
1,492 |
943 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,801 |
1,088 |
717 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,539 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
22,835 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,158 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
1 |
no-host |
bin-true |
103,366 |
0 |
0 |
0 |
8 |
0 |
1,995 |
288 |
bash |
9 |
no-host |
bin-true |
66,470 |
0 |
0 |
0 |
8 |
0 |
1,988 |
149 |
dash |
17 |
no-host |
bin-true |
751,446 |
0 |
0 |
0 |
8 |
0 |
1,994 |
184 |
osh-cpython |
25 |
no-host |
bin-true |
126,390 |
0 |
0 |
0 |
16 |
0 |
1,991 |
75 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,154 |
0 |
0 |
0 |
32,928 |
0 |
14,542 |
1,084 |
bash |
10 |
no-host |
configure.cpython |
2,246,973 |
1 |
0 |
0 |
32,992 |
0 |
14,558 |
1,121 |
dash |
18 |
no-host |
configure.cpython |
6,119,976 |
0 |
0 |
0 |
27,512 |
0 |
13,277 |
1,314 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,220,237 |
0 |
0 |
0 |
27,520 |
0 |
13,214 |
1,273 |
osh-native |
4 |
no-host |
configure.ocaml |
410,412 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
238 |
bash |
12 |
no-host |
configure.ocaml |
390,938 |
0 |
0 |
0 |
5,112 |
0 |
1,920 |
156 |
dash |
20 |
no-host |
configure.ocaml |
638,358 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
208 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,023 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
171 |
osh-native |
5 |
no-host |
configure.tcc |
6,556 |
0 |
0 |
0 |
104 |
0 |
49 |
7 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,239 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,113,857 |
0 |
0 |
0 |
42,400 |
0 |
18,553 |
1,023 |
bash |
11 |
no-host |
configure.util-linux |
2,258,396 |
2 |
0 |
0 |
42,584 |
0 |
17,406 |
996 |
dash |
19 |
no-host |
configure.util-linux |
5,309,053 |
18 |
0 |
0 |
39,136 |
0 |
16,965 |
1,181 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,995,384 |
0 |
0 |
0 |
39,120 |
0 |
16,961 |
980 |
osh-native |
6 |
no-host |
configure.yash |
256,577 |
0 |
0 |
0 |
4,120 |
0 |
903 |
87 |
bash |
14 |
no-host |
configure.yash |
245,150 |
0 |
0 |
0 |
3,720 |
0 |
870 |
84 |
dash |
22 |
no-host |
configure.yash |
384,648 |
0 |
0 |
0 |
3,728 |
0 |
857 |
106 |
osh-cpython |
30 |
no-host |
configure.yash |
258,250 |
0 |
0 |
0 |
3,736 |
0 |
849 |
82 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,691 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host