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 |
9 |
463 |
23 |
23.49 |
1.17 |
bin-true |
no-host |
677 |
551 |
2,239 |
828 |
3.31 |
1.22 |
configure.cpython |
no-host |
15,068 |
15,350 |
28,655 |
15,318 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,811 |
3,804 |
4,619 |
3,819 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
43 |
194 |
49 |
4.04 |
1.01 |
configure.util-linux |
no-host |
14,263 |
14,952 |
31,106 |
14,410 |
2.18 |
1.01 |
configure.yash |
no-host |
1,843 |
1,811 |
2,440 |
1,865 |
1.32 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
32.78 |
1.95 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,533 |
1,114 |
23,505 |
3,238 |
9.28 |
1.28 |
bin-true |
no-host |
105,382 |
66,471 |
743,853 |
128,221 |
7.06 |
1.22 |
configure.cpython |
no-host |
2,219,221 |
2,242,122 |
6,130,977 |
2,227,547 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,461 |
391,134 |
637,970 |
414,036 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,558 |
5,495 |
23,158 |
7,000 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,095,382 |
2,267,438 |
5,299,198 |
2,017,196 |
2.53 |
0.96 |
configure.yash |
no-host |
256,923 |
244,631 |
384,667 |
258,296 |
1.50 |
1.01 |
hello-world |
no-host |
149 |
83 |
3,666 |
349 |
24.60 |
2.34 |
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,722 |
3,722 |
0 |
684 |
1,873 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
828 |
1 |
2 |
2.7 |
8.1 |
154,687 |
12,991 |
2,798 |
11,737 |
78,342 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,318 |
1 |
61 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,049 |
762,784 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,410 |
3 |
60 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,493 |
1,256,653 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,819 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,627 |
69,800 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,522 |
30,522 |
0 |
1,599 |
14,797 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,865 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,299 |
61,833 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,265 |
64,454 |
42,662 |
4,610 |
54,542 |
57,113 |
478 |
3 |
85,324 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
463 |
403 |
64 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
9 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
677 |
496 |
212 |
2.9 |
bash |
9 |
no-host |
bin-true |
551 |
416 |
143 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,239 |
1,510 |
985 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
828 |
589 |
250 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,068 |
9,153 |
6,301 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,350 |
9,381 |
6,389 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,655 |
17,372 |
13,130 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,318 |
8,910 |
6,673 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,811 |
1,579 |
1,273 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,804 |
1,563 |
1,260 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,619 |
2,224 |
1,599 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,819 |
1,661 |
1,198 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
29 |
20 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
29 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
145 |
52 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
38 |
11 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,263 |
8,960 |
5,779 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,952 |
9,270 |
6,180 |
29.9 |
dash |
19 |
no-host |
configure.util-linux |
31,106 |
20,830 |
11,363 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,410 |
8,567 |
6,045 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,843 |
1,000 |
852 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,811 |
1,081 |
734 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,440 |
1,510 |
973 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,865 |
1,057 |
812 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
29 |
20 |
17.3 |
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,533 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,114 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,505 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,238 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,382 |
0 |
0 |
0 |
8 |
0 |
1,998 |
94 |
bash |
9 |
no-host |
bin-true |
66,471 |
0 |
0 |
0 |
8 |
0 |
1,990 |
221 |
dash |
17 |
no-host |
bin-true |
743,853 |
0 |
0 |
0 |
8 |
0 |
2,001 |
284 |
osh-cpython |
25 |
no-host |
bin-true |
128,221 |
0 |
0 |
0 |
16 |
0 |
1,995 |
299 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,221 |
0 |
0 |
0 |
32,928 |
0 |
14,551 |
1,182 |
bash |
10 |
no-host |
configure.cpython |
2,242,122 |
0 |
0 |
0 |
32,992 |
0 |
14,650 |
1,131 |
dash |
18 |
no-host |
configure.cpython |
6,130,977 |
0 |
0 |
0 |
27,512 |
0 |
13,333 |
1,237 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,547 |
0 |
0 |
0 |
27,520 |
0 |
13,302 |
1,215 |
osh-native |
4 |
no-host |
configure.ocaml |
410,461 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
178 |
bash |
12 |
no-host |
configure.ocaml |
391,134 |
0 |
0 |
0 |
5,112 |
0 |
1,933 |
153 |
dash |
20 |
no-host |
configure.ocaml |
637,970 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
203 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,036 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
160 |
osh-native |
5 |
no-host |
configure.tcc |
6,558 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,495 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,158 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,000 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,382 |
0 |
0 |
0 |
42,400 |
0 |
18,584 |
1,121 |
bash |
11 |
no-host |
configure.util-linux |
2,267,438 |
0 |
0 |
0 |
42,584 |
0 |
17,431 |
1,049 |
dash |
19 |
no-host |
configure.util-linux |
5,299,198 |
5 |
0 |
0 |
39,112 |
0 |
17,068 |
1,221 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,196 |
1 |
0 |
0 |
39,120 |
0 |
17,082 |
1,026 |
osh-native |
6 |
no-host |
configure.yash |
256,923 |
0 |
0 |
0 |
4,120 |
0 |
869 |
183 |
bash |
14 |
no-host |
configure.yash |
244,631 |
0 |
0 |
0 |
3,720 |
0 |
873 |
87 |
dash |
22 |
no-host |
configure.yash |
384,667 |
0 |
0 |
0 |
3,728 |
0 |
858 |
84 |
osh-cpython |
30 |
no-host |
configure.yash |
258,296 |
0 |
0 |
0 |
3,736 |
0 |
856 |
77 |
osh-native |
0 |
no-host |
hello-world |
149 |
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,666 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host