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 |
450 |
22 |
23.04 |
1.14 |
bin-true |
no-host |
680 |
535 |
2,227 |
807 |
3.27 |
1.19 |
configure.cpython |
no-host |
15,010 |
14,963 |
28,335 |
15,251 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,853 |
3,714 |
4,716 |
3,837 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
195 |
49 |
4.07 |
1.02 |
configure.util-linux |
no-host |
13,984 |
14,769 |
31,189 |
14,448 |
2.23 |
1.03 |
configure.yash |
no-host |
1,827 |
1,748 |
2,470 |
1,834 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
30.23 |
1.75 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,563 |
1,116 |
23,510 |
3,216 |
9.17 |
1.25 |
bin-true |
no-host |
106,272 |
66,406 |
752,918 |
126,222 |
7.08 |
1.19 |
configure.cpython |
no-host |
2,223,248 |
2,243,963 |
6,143,645 |
2,235,467 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,526 |
390,780 |
639,698 |
413,738 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,579 |
5,458 |
23,285 |
6,989 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,092,309 |
2,265,511 |
5,332,056 |
2,016,492 |
2.55 |
0.96 |
configure.yash |
no-host |
256,823 |
245,098 |
384,564 |
258,983 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
80 |
3,686 |
346 |
23.94 |
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,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
807 |
1 |
2 |
2.7 |
8.3 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,251 |
1 |
59 |
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,448 |
2 |
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,837 |
1 |
2 |
2.7 |
22.6 |
150,038 |
11,045 |
5,138 |
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,834 |
1 |
2 |
2.6 |
24.2 |
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 |
9.0 |
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 |
20 |
10 |
10 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
7 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
450 |
415 |
38 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
680 |
498 |
211 |
2.9 |
bash |
9 |
no-host |
bin-true |
535 |
411 |
132 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,227 |
1,477 |
1,001 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
807 |
591 |
232 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
15,010 |
9,000 |
6,410 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,963 |
9,124 |
6,254 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,335 |
17,074 |
13,080 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,251 |
8,975 |
6,543 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,853 |
1,657 |
1,228 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,714 |
1,558 |
1,177 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,716 |
2,188 |
1,738 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,837 |
1,649 |
1,226 |
22.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
38 |
11 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
34 |
7 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
141 |
57 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
14 |
35 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,984 |
8,778 |
5,677 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,769 |
9,210 |
6,053 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,189 |
20,719 |
11,558 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,448 |
8,599 |
6,029 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,827 |
1,067 |
769 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,748 |
1,012 |
739 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,470 |
1,508 |
1,007 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,834 |
1,066 |
771 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
48 |
30 |
18 |
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,563 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,116 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,510 |
0 |
0 |
0 |
8 |
0 |
46 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,216 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,272 |
0 |
0 |
0 |
8 |
0 |
1,989 |
67 |
bash |
9 |
no-host |
bin-true |
66,406 |
0 |
0 |
0 |
8 |
0 |
1,984 |
69 |
dash |
17 |
no-host |
bin-true |
752,918 |
0 |
0 |
0 |
8 |
0 |
1,995 |
282 |
osh-cpython |
25 |
no-host |
bin-true |
126,222 |
0 |
0 |
0 |
16 |
0 |
1,987 |
59 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,248 |
0 |
0 |
0 |
32,928 |
0 |
14,454 |
1,094 |
bash |
10 |
no-host |
configure.cpython |
2,243,963 |
0 |
0 |
0 |
32,992 |
0 |
14,560 |
1,119 |
dash |
18 |
no-host |
configure.cpython |
6,143,645 |
1 |
0 |
0 |
27,512 |
0 |
13,341 |
1,125 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,467 |
0 |
0 |
0 |
27,520 |
0 |
13,322 |
1,066 |
osh-native |
4 |
no-host |
configure.ocaml |
410,526 |
0 |
0 |
0 |
5,120 |
0 |
1,969 |
176 |
bash |
12 |
no-host |
configure.ocaml |
390,780 |
0 |
0 |
0 |
5,112 |
0 |
1,938 |
134 |
dash |
20 |
no-host |
configure.ocaml |
639,698 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
192 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,738 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
174 |
osh-native |
5 |
no-host |
configure.tcc |
6,579 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,458 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,285 |
0 |
0 |
0 |
96 |
0 |
53 |
15 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,989 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,092,309 |
2 |
0 |
0 |
42,400 |
0 |
18,574 |
1,057 |
bash |
11 |
no-host |
configure.util-linux |
2,265,511 |
0 |
0 |
0 |
42,584 |
0 |
17,418 |
1,134 |
dash |
19 |
no-host |
configure.util-linux |
5,332,056 |
11 |
0 |
0 |
39,112 |
0 |
17,064 |
1,265 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,492 |
3 |
0 |
0 |
39,120 |
0 |
17,062 |
1,215 |
osh-native |
6 |
no-host |
configure.yash |
256,823 |
0 |
0 |
0 |
4,120 |
0 |
871 |
77 |
bash |
14 |
no-host |
configure.yash |
245,098 |
0 |
0 |
0 |
3,720 |
0 |
872 |
71 |
dash |
22 |
no-host |
configure.yash |
384,564 |
0 |
0 |
0 |
3,728 |
0 |
857 |
99 |
osh-cpython |
30 |
no-host |
configure.yash |
258,983 |
0 |
0 |
0 |
3,736 |
0 |
853 |
97 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,686 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host