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 |
23 |
23.49 |
1.16 |
bin-true |
no-host |
672 |
542 |
2,233 |
811 |
3.32 |
1.21 |
configure.cpython |
no-host |
14,858 |
14,935 |
28,392 |
15,072 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,774 |
3,711 |
4,577 |
3,798 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
194 |
49 |
4.02 |
1.01 |
configure.util-linux |
no-host |
13,933 |
14,760 |
30,874 |
14,237 |
2.22 |
1.02 |
configure.yash |
no-host |
1,833 |
1,757 |
2,410 |
1,813 |
1.31 |
0.99 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.15 |
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,562 |
1,120 |
22,984 |
3,184 |
8.97 |
1.24 |
bin-true |
no-host |
104,322 |
66,400 |
750,485 |
127,300 |
7.19 |
1.22 |
configure.cpython |
no-host |
2,220,895 |
2,242,548 |
6,103,061 |
2,224,127 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,654 |
391,322 |
637,643 |
413,740 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,546 |
5,455 |
23,204 |
7,020 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,108,265 |
2,263,599 |
5,302,968 |
1,994,551 |
2.52 |
0.95 |
configure.yash |
no-host |
256,468 |
244,575 |
382,907 |
258,560 |
1.49 |
1.01 |
hello-world |
no-host |
151 |
84 |
3,693 |
346 |
24.46 |
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.2 |
3,737 |
3,737 |
0 |
681 |
1,887 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.6 |
8.0 |
154,702 |
13,054 |
2,807 |
9,731 |
78,356 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,072 |
1 |
60 |
15.0 |
27.4 |
1,772,678 |
49,205 |
28,516 |
86,378 |
908,108 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,237 |
3 |
59 |
21.3 |
30.1 |
2,703,414 |
42,780 |
65,821 |
109,640 |
1,320,606 |
1,273,168 |
49,081 |
41 |
131,642 |
1 |
configure.ocaml |
no-host |
3,798 |
1 |
2 |
2.6 |
20.6 |
150,048 |
11,054 |
5,147 |
7,510 |
71,644 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,537 |
30,537 |
0 |
1,501 |
14,811 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,813 |
1 |
2 |
2.6 |
24.2 |
139,705 |
7,972 |
6,608 |
6,317 |
70,316 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,280 |
64,463 |
42,671 |
4,552 |
54,556 |
57,172 |
478 |
3 |
85,342 |
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 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
457 |
406 |
55 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
7 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
672 |
490 |
216 |
3.0 |
bash |
9 |
no-host |
bin-true |
542 |
415 |
140 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,233 |
1,440 |
1,053 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
578 |
249 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,858 |
9,088 |
6,167 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,935 |
8,996 |
6,357 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,392 |
17,429 |
12,801 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,072 |
8,987 |
6,348 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,774 |
1,697 |
1,115 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,711 |
1,565 |
1,167 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,577 |
2,259 |
1,523 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,798 |
1,676 |
1,163 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
24 |
18 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
132 |
66 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
36 |
13 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,933 |
8,835 |
5,582 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,760 |
9,099 |
6,159 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,874 |
20,612 |
11,338 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,237 |
8,452 |
5,980 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,833 |
1,128 |
707 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,757 |
1,034 |
726 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,410 |
1,443 |
1,010 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,813 |
1,009 |
808 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
24 |
24 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
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,562 |
0 |
0 |
0 |
16 |
0 |
41 |
6 |
bash |
15 |
no-host |
abuild-print-help |
1,120 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,984 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,184 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,322 |
0 |
0 |
0 |
8 |
0 |
1,990 |
63 |
bash |
9 |
no-host |
bin-true |
66,400 |
0 |
0 |
0 |
8 |
0 |
1,989 |
66 |
dash |
17 |
no-host |
bin-true |
750,485 |
0 |
0 |
0 |
8 |
0 |
1,997 |
184 |
osh-cpython |
25 |
no-host |
bin-true |
127,300 |
0 |
0 |
0 |
16 |
0 |
1,988 |
73 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,895 |
1 |
0 |
0 |
32,928 |
0 |
14,516 |
991 |
bash |
10 |
no-host |
configure.cpython |
2,242,548 |
1 |
0 |
0 |
32,992 |
0 |
14,587 |
1,074 |
dash |
18 |
no-host |
configure.cpython |
6,103,061 |
1 |
0 |
0 |
27,512 |
0 |
13,295 |
1,219 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,127 |
0 |
0 |
0 |
27,520 |
0 |
13,196 |
1,220 |
osh-native |
4 |
no-host |
configure.ocaml |
410,654 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
179 |
bash |
12 |
no-host |
configure.ocaml |
391,322 |
0 |
0 |
0 |
5,112 |
0 |
1,938 |
147 |
dash |
20 |
no-host |
configure.ocaml |
637,643 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
187 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,740 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
183 |
osh-native |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,455 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,204 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,020 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,108,265 |
0 |
0 |
0 |
42,400 |
0 |
18,643 |
1,197 |
bash |
11 |
no-host |
configure.util-linux |
2,263,599 |
2 |
0 |
0 |
42,592 |
0 |
17,453 |
1,092 |
dash |
19 |
no-host |
configure.util-linux |
5,302,968 |
13 |
0 |
0 |
39,112 |
0 |
16,974 |
1,111 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,994,551 |
1 |
0 |
0 |
39,120 |
0 |
16,999 |
1,049 |
osh-native |
6 |
no-host |
configure.yash |
256,468 |
0 |
0 |
0 |
4,120 |
0 |
886 |
80 |
bash |
14 |
no-host |
configure.yash |
244,575 |
0 |
0 |
0 |
3,720 |
0 |
869 |
73 |
dash |
22 |
no-host |
configure.yash |
382,907 |
0 |
0 |
0 |
3,728 |
0 |
855 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
258,560 |
0 |
0 |
0 |
3,736 |
0 |
850 |
98 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,693 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host