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 |
452 |
22 |
23.76 |
1.17 |
bin-true |
no-host |
674 |
536 |
2,226 |
821 |
3.30 |
1.22 |
configure.cpython |
no-host |
14,930 |
14,978 |
28,366 |
15,114 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,811 |
3,719 |
4,588 |
3,812 |
1.20 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
190 |
48 |
3.99 |
1.01 |
configure.util-linux |
no-host |
13,934 |
14,800 |
30,902 |
14,331 |
2.22 |
1.03 |
configure.yash |
no-host |
1,805 |
1,759 |
2,424 |
1,811 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
28.83 |
1.71 |
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,105 |
23,483 |
3,238 |
9.20 |
1.27 |
bin-true |
no-host |
106,339 |
67,417 |
748,659 |
129,237 |
7.04 |
1.22 |
configure.cpython |
no-host |
2,220,749 |
2,246,167 |
6,143,965 |
2,230,432 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,288 |
391,187 |
639,163 |
413,862 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,548 |
5,486 |
23,294 |
6,996 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,091,199 |
2,254,301 |
5,332,577 |
2,018,759 |
2.55 |
0.97 |
configure.yash |
no-host |
256,828 |
245,185 |
384,986 |
258,804 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
85 |
3,679 |
349 |
23.89 |
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.2 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.7 |
8.1 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,114 |
1 |
60 |
15.8 |
27.4 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,331 |
3 |
60 |
22.2 |
30.1 |
2,703,404 |
44,766 |
65,812 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,812 |
1 |
2 |
2.7 |
20.6 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,811 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,326 |
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 |
9 |
6 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
422 |
33 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
4 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
674 |
514 |
191 |
3.0 |
bash |
9 |
no-host |
bin-true |
536 |
419 |
130 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,226 |
1,460 |
1,024 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
571 |
264 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,930 |
8,893 |
6,425 |
27.1 |
bash |
10 |
no-host |
configure.cpython |
14,978 |
8,878 |
6,515 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,366 |
17,266 |
12,939 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,114 |
9,003 |
6,378 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,811 |
1,606 |
1,232 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,719 |
1,612 |
1,127 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,588 |
2,282 |
1,509 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,812 |
1,609 |
1,241 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
30 |
18 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
22 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
190 |
143 |
51 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
30 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,934 |
8,719 |
5,685 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,800 |
9,142 |
6,151 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,902 |
20,429 |
11,546 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,331 |
8,605 |
5,920 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,805 |
1,084 |
728 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,759 |
1,029 |
734 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,424 |
1,476 |
990 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,811 |
1,080 |
735 |
24.4 |
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 |
48 |
32 |
16 |
17.4 |
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 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,105 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,483 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,238 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,339 |
0 |
0 |
0 |
8 |
0 |
1,992 |
124 |
bash |
9 |
no-host |
bin-true |
67,417 |
0 |
0 |
0 |
8 |
0 |
1,990 |
83 |
dash |
17 |
no-host |
bin-true |
748,659 |
0 |
0 |
0 |
8 |
0 |
2,003 |
397 |
osh-cpython |
25 |
no-host |
bin-true |
129,237 |
0 |
0 |
0 |
16 |
0 |
1,986 |
58 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,749 |
0 |
0 |
0 |
32,928 |
0 |
14,508 |
1,084 |
bash |
10 |
no-host |
configure.cpython |
2,246,167 |
0 |
0 |
0 |
32,992 |
0 |
14,705 |
1,234 |
dash |
18 |
no-host |
configure.cpython |
6,143,965 |
1 |
0 |
0 |
27,512 |
0 |
13,330 |
1,232 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,230,432 |
0 |
0 |
0 |
27,520 |
0 |
13,304 |
1,087 |
osh-native |
4 |
no-host |
configure.ocaml |
410,288 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
177 |
bash |
12 |
no-host |
configure.ocaml |
391,187 |
0 |
0 |
0 |
5,112 |
0 |
1,939 |
163 |
dash |
20 |
no-host |
configure.ocaml |
639,163 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
215 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,862 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
170 |
osh-native |
5 |
no-host |
configure.tcc |
6,548 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
48 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,294 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,996 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,091,199 |
0 |
0 |
0 |
42,408 |
0 |
18,512 |
1,131 |
bash |
11 |
no-host |
configure.util-linux |
2,254,301 |
0 |
0 |
0 |
42,592 |
0 |
17,503 |
1,052 |
dash |
19 |
no-host |
configure.util-linux |
5,332,577 |
2 |
0 |
0 |
39,112 |
0 |
17,066 |
1,186 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,018,759 |
0 |
0 |
0 |
39,120 |
0 |
17,019 |
1,135 |
osh-native |
6 |
no-host |
configure.yash |
256,828 |
0 |
0 |
0 |
4,120 |
0 |
868 |
90 |
bash |
14 |
no-host |
configure.yash |
245,185 |
0 |
0 |
0 |
3,720 |
0 |
869 |
78 |
dash |
22 |
no-host |
configure.yash |
384,986 |
0 |
0 |
0 |
3,728 |
0 |
856 |
78 |
osh-cpython |
30 |
no-host |
configure.yash |
258,804 |
0 |
0 |
0 |
3,736 |
0 |
850 |
79 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,679 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host