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 |
449 |
22 |
23.23 |
1.12 |
bin-true |
no-host |
677 |
552 |
2,258 |
821 |
3.34 |
1.21 |
configure.cpython |
no-host |
15,201 |
15,732 |
28,405 |
15,376 |
1.87 |
1.01 |
configure.ocaml |
no-host |
3,897 |
3,837 |
4,584 |
3,903 |
1.18 |
1.00 |
configure.tcc |
no-host |
49 |
43 |
191 |
49 |
3.89 |
1.00 |
configure.util-linux |
no-host |
14,037 |
15,331 |
31,049 |
14,519 |
2.21 |
1.03 |
configure.yash |
no-host |
1,838 |
1,829 |
2,466 |
1,878 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
33.43 |
1.85 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,536 |
1,101 |
23,440 |
3,163 |
9.24 |
1.25 |
bin-true |
no-host |
109,321 |
66,435 |
749,679 |
128,186 |
6.86 |
1.17 |
configure.cpython |
no-host |
2,221,292 |
2,247,601 |
6,134,791 |
2,227,593 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,970 |
390,782 |
640,259 |
412,988 |
1.56 |
1.00 |
configure.tcc |
no-host |
6,551 |
5,478 |
23,278 |
6,961 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,095,004 |
2,250,234 |
5,326,429 |
2,005,750 |
2.54 |
0.96 |
configure.yash |
no-host |
256,179 |
245,024 |
385,171 |
258,902 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,683 |
342 |
23.92 |
2.22 |
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 |
5.8 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.7 |
7.7 |
154,692 |
12,780 |
2,737 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,376 |
1 |
62 |
15.8 |
27.3 |
1,772,668 |
44,567 |
28,446 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,519 |
3 |
59 |
22.2 |
30.1 |
2,703,404 |
45,041 |
65,750 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,500 |
1 |
configure.ocaml |
no-host |
3,903 |
1 |
2 |
2.7 |
20.6 |
150,038 |
10,983 |
5,076 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
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,878 |
1 |
2 |
2.6 |
24.5 |
139,695 |
7,902 |
6,538 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,270 |
64,393 |
42,601 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,202 |
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 |
12 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
449 |
400 |
52 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
677 |
494 |
214 |
2.9 |
bash |
9 |
no-host |
bin-true |
552 |
423 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,258 |
1,504 |
1,020 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
561 |
275 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
15,201 |
9,133 |
6,444 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,732 |
9,568 |
6,601 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,405 |
17,333 |
12,901 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,376 |
9,124 |
6,395 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,897 |
1,712 |
1,224 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,837 |
1,640 |
1,216 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,584 |
2,136 |
1,651 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,903 |
1,693 |
1,247 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
37 |
13 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
21 |
22 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
152 |
43 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
23 |
27 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,037 |
8,866 |
5,646 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,331 |
9,418 |
6,421 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
31,049 |
20,877 |
11,249 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,519 |
8,550 |
6,107 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,838 |
1,115 |
732 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,829 |
1,035 |
797 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,466 |
1,549 |
961 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,878 |
1,016 |
866 |
24.5 |
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 |
51 |
22 |
29 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
5.8 |
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,536 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,440 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,163 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
109,321 |
0 |
0 |
0 |
8 |
0 |
1,994 |
69 |
bash |
9 |
no-host |
bin-true |
66,435 |
0 |
0 |
0 |
8 |
0 |
1,992 |
121 |
dash |
17 |
no-host |
bin-true |
749,679 |
0 |
0 |
0 |
8 |
0 |
1,991 |
138 |
osh-cpython |
25 |
no-host |
bin-true |
128,186 |
0 |
0 |
0 |
16 |
0 |
1,990 |
99 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,292 |
0 |
0 |
0 |
32,928 |
0 |
14,529 |
1,109 |
bash |
10 |
no-host |
configure.cpython |
2,247,601 |
0 |
0 |
0 |
32,992 |
0 |
14,653 |
1,094 |
dash |
18 |
no-host |
configure.cpython |
6,134,791 |
0 |
0 |
0 |
27,512 |
0 |
13,285 |
1,252 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,593 |
0 |
0 |
0 |
27,520 |
0 |
13,278 |
1,143 |
osh-native |
4 |
no-host |
configure.ocaml |
410,970 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
192 |
bash |
12 |
no-host |
configure.ocaml |
390,782 |
0 |
0 |
0 |
5,112 |
0 |
1,903 |
157 |
dash |
20 |
no-host |
configure.ocaml |
640,259 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
150 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,988 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
163 |
osh-native |
5 |
no-host |
configure.tcc |
6,551 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,278 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,961 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,004 |
0 |
0 |
0 |
42,400 |
0 |
18,578 |
1,112 |
bash |
11 |
no-host |
configure.util-linux |
2,250,234 |
0 |
0 |
0 |
42,592 |
0 |
17,474 |
1,177 |
dash |
19 |
no-host |
configure.util-linux |
5,326,429 |
11 |
0 |
0 |
39,112 |
0 |
17,053 |
1,374 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,005,750 |
2 |
0 |
0 |
39,120 |
0 |
17,058 |
1,083 |
osh-native |
6 |
no-host |
configure.yash |
256,179 |
0 |
0 |
0 |
4,120 |
0 |
872 |
76 |
bash |
14 |
no-host |
configure.yash |
245,024 |
0 |
0 |
0 |
3,720 |
0 |
872 |
77 |
dash |
22 |
no-host |
configure.yash |
385,171 |
0 |
0 |
0 |
3,728 |
0 |
855 |
160 |
osh-cpython |
30 |
no-host |
configure.yash |
258,902 |
0 |
0 |
0 |
3,736 |
0 |
851 |
79 |
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,683 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host