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 |
488 |
23 |
24.34 |
1.17 |
bin-true |
no-host |
700 |
565 |
2,327 |
825 |
3.32 |
1.18 |
configure.cpython |
no-host |
16,061 |
16,292 |
29,589 |
16,376 |
1.84 |
1.02 |
configure.ocaml |
no-host |
4,000 |
4,007 |
4,830 |
4,046 |
1.21 |
1.01 |
configure.tcc |
no-host |
50 |
45 |
203 |
51 |
4.07 |
1.03 |
configure.util-linux |
no-host |
14,773 |
16,068 |
32,020 |
15,531 |
2.17 |
1.05 |
configure.yash |
no-host |
1,944 |
1,889 |
2,652 |
1,939 |
1.36 |
1.00 |
hello-world |
no-host |
2 |
1 |
54 |
3 |
32.41 |
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,553 |
1,108 |
23,198 |
3,201 |
9.09 |
1.25 |
bin-true |
no-host |
105,419 |
66,418 |
748,481 |
127,251 |
7.10 |
1.21 |
configure.cpython |
no-host |
2,218,691 |
2,252,034 |
6,102,091 |
2,227,943 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,779 |
391,075 |
636,325 |
414,353 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,562 |
5,473 |
23,177 |
7,004 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,104,079 |
2,254,294 |
5,315,049 |
2,014,758 |
2.53 |
0.96 |
configure.yash |
no-host |
254,974 |
245,201 |
384,693 |
256,877 |
1.51 |
1.01 |
hello-world |
no-host |
154 |
78 |
3,655 |
347 |
23.73 |
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.2 |
3,720 |
3,720 |
0 |
684 |
1,872 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
825 |
1 |
2 |
2.7 |
7.9 |
154,685 |
12,990 |
2,797 |
11,737 |
78,341 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,376 |
5 |
73 |
15.8 |
27.4 |
1,772,601 |
49,195 |
28,506 |
101,770 |
908,048 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,531 |
3 |
70 |
22.2 |
29.9 |
2,703,374 |
44,764 |
65,790 |
126,155 |
1,320,528 |
1,256,691 |
49,086 |
41 |
131,580 |
1 |
configure.ocaml |
no-host |
4,046 |
1 |
2 |
2.7 |
20.6 |
150,027 |
11,043 |
5,136 |
8,602 |
71,626 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.4 |
30,520 |
30,520 |
0 |
1,599 |
14,796 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,939 |
1 |
2 |
2.6 |
24.2 |
139,684 |
7,962 |
6,598 |
7,554 |
70,298 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,263 |
64,453 |
42,661 |
4,609 |
54,541 |
57,113 |
478 |
3 |
85,322 |
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 |
15 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
488 |
450 |
41 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
19 |
5 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
700 |
515 |
207 |
3.0 |
bash |
9 |
no-host |
bin-true |
565 |
427 |
143 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,327 |
1,416 |
1,180 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
825 |
573 |
268 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
16,061 |
9,458 |
7,008 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
16,292 |
9,738 |
6,959 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,589 |
17,672 |
13,840 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,376 |
9,649 |
6,997 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
4,000 |
1,772 |
1,263 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
4,007 |
1,694 |
1,331 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,830 |
2,286 |
1,756 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,046 |
1,687 |
1,399 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
34 |
16 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
45 |
30 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
203 |
154 |
53 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
28 |
24 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,773 |
9,320 |
5,926 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
16,068 |
9,563 |
7,021 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,020 |
21,086 |
12,042 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,531 |
9,211 |
6,423 |
29.9 |
osh-native |
6 |
no-host |
configure.yash |
1,944 |
1,104 |
848 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,889 |
1,155 |
738 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,652 |
1,537 |
1,163 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,939 |
1,054 |
877 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
54 |
37 |
16 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,553 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,108 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,198 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,201 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
105,419 |
0 |
0 |
0 |
8 |
0 |
1,981 |
46 |
bash |
9 |
no-host |
bin-true |
66,418 |
0 |
0 |
0 |
8 |
0 |
1,989 |
46 |
dash |
17 |
no-host |
bin-true |
748,481 |
0 |
0 |
0 |
8 |
0 |
1,999 |
243 |
osh-cpython |
25 |
no-host |
bin-true |
127,251 |
0 |
0 |
0 |
16 |
0 |
1,994 |
59 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,691 |
0 |
0 |
0 |
32,928 |
0 |
14,410 |
1,040 |
bash |
10 |
no-host |
configure.cpython |
2,252,034 |
0 |
0 |
0 |
32,992 |
0 |
14,561 |
1,048 |
dash |
18 |
no-host |
configure.cpython |
6,102,091 |
0 |
0 |
0 |
27,512 |
0 |
13,235 |
1,264 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,943 |
0 |
0 |
0 |
27,520 |
0 |
13,229 |
1,011 |
osh-native |
4 |
no-host |
configure.ocaml |
410,779 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
152 |
bash |
12 |
no-host |
configure.ocaml |
391,075 |
0 |
0 |
0 |
5,112 |
0 |
1,928 |
167 |
dash |
20 |
no-host |
configure.ocaml |
636,325 |
1 |
0 |
0 |
5,112 |
0 |
1,850 |
194 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,353 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
152 |
osh-native |
5 |
no-host |
configure.tcc |
6,562 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,177 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,004 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,079 |
1 |
0 |
0 |
42,400 |
0 |
18,598 |
1,159 |
bash |
11 |
no-host |
configure.util-linux |
2,254,294 |
2 |
0 |
0 |
42,592 |
0 |
17,548 |
1,110 |
dash |
19 |
no-host |
configure.util-linux |
5,315,049 |
11 |
0 |
0 |
39,120 |
0 |
17,023 |
1,253 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,014,758 |
2 |
0 |
0 |
39,144 |
0 |
17,086 |
1,114 |
osh-native |
6 |
no-host |
configure.yash |
254,974 |
0 |
0 |
0 |
4,120 |
0 |
872 |
76 |
bash |
14 |
no-host |
configure.yash |
245,201 |
0 |
0 |
0 |
3,720 |
0 |
868 |
75 |
dash |
22 |
no-host |
configure.yash |
384,693 |
1 |
0 |
0 |
3,728 |
0 |
855 |
112 |
osh-cpython |
30 |
no-host |
configure.yash |
256,877 |
0 |
0 |
0 |
3,736 |
0 |
851 |
87 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,655 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host