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 |
453 |
22 |
23.09 |
1.14 |
bin-true |
no-host |
690 |
545 |
2,260 |
811 |
3.28 |
1.18 |
configure.cpython |
no-host |
15,161 |
15,102 |
28,485 |
15,462 |
1.88 |
1.02 |
configure.ocaml |
no-host |
3,842 |
3,740 |
4,665 |
3,869 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
191 |
49 |
4.00 |
1.02 |
configure.util-linux |
no-host |
14,070 |
14,898 |
31,207 |
14,707 |
2.22 |
1.05 |
configure.yash |
no-host |
1,821 |
1,766 |
2,445 |
1,855 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
25.93 |
1.55 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,538 |
1,107 |
23,213 |
3,190 |
9.15 |
1.26 |
bin-true |
no-host |
107,303 |
66,445 |
751,035 |
126,194 |
7.00 |
1.18 |
configure.cpython |
no-host |
2,219,658 |
2,245,812 |
6,128,813 |
2,238,411 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,652 |
390,811 |
638,132 |
413,964 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,479 |
23,196 |
6,967 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,104,169 |
2,259,785 |
5,319,022 |
2,015,719 |
2.53 |
0.96 |
configure.yash |
no-host |
256,732 |
243,001 |
385,294 |
259,017 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
80 |
3,653 |
341 |
23.88 |
2.23 |
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.2 |
6.2 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.7 |
8.1 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,462 |
1 |
63 |
15.8 |
27.3 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,707 |
3 |
64 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,786 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,869 |
1 |
2 |
2.7 |
20.4 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,855 |
1 |
2 |
2.6 |
24.5 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,257 |
64,449 |
42,657 |
4,609 |
54,535 |
57,113 |
478 |
3 |
85,314 |
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 |
12 |
8 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
453 |
408 |
48 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
690 |
517 |
207 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
421 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,260 |
1,447 |
1,076 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
585 |
244 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,161 |
9,169 |
6,392 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,102 |
9,009 |
6,511 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,485 |
17,508 |
12,819 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,462 |
9,076 |
6,650 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,842 |
1,717 |
1,161 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,740 |
1,614 |
1,147 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,665 |
2,221 |
1,650 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,869 |
1,625 |
1,284 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
31 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
24 |
18 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
144 |
50 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
20 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,070 |
8,971 |
5,587 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,898 |
9,082 |
6,307 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,207 |
20,900 |
11,404 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,707 |
9,000 |
5,901 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,821 |
1,092 |
738 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,766 |
1,026 |
743 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,445 |
1,507 |
981 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,855 |
1,036 |
822 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
36 |
12 |
17.2 |
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,538 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,107 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,213 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,190 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
107,303 |
0 |
0 |
0 |
8 |
0 |
1,990 |
95 |
bash |
9 |
no-host |
bin-true |
66,445 |
0 |
0 |
0 |
8 |
0 |
1,988 |
34 |
dash |
17 |
no-host |
bin-true |
751,035 |
0 |
0 |
0 |
8 |
0 |
1,995 |
303 |
osh-cpython |
25 |
no-host |
bin-true |
126,194 |
0 |
0 |
0 |
16 |
0 |
1,988 |
92 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,658 |
0 |
0 |
0 |
32,928 |
0 |
14,437 |
1,211 |
bash |
10 |
no-host |
configure.cpython |
2,245,812 |
0 |
0 |
0 |
32,992 |
0 |
14,565 |
1,016 |
dash |
18 |
no-host |
configure.cpython |
6,128,813 |
1 |
0 |
0 |
27,512 |
0 |
13,280 |
1,167 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,238,411 |
2 |
0 |
0 |
27,520 |
0 |
13,243 |
887 |
osh-native |
4 |
no-host |
configure.ocaml |
410,652 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
167 |
bash |
12 |
no-host |
configure.ocaml |
390,811 |
0 |
0 |
0 |
5,112 |
0 |
1,946 |
126 |
dash |
20 |
no-host |
configure.ocaml |
638,132 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
161 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,964 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
192 |
osh-native |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,196 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,967 |
0 |
0 |
0 |
104 |
0 |
47 |
14 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,169 |
0 |
0 |
0 |
42,400 |
0 |
18,636 |
1,094 |
bash |
11 |
no-host |
configure.util-linux |
2,259,785 |
1 |
0 |
0 |
42,584 |
0 |
17,444 |
1,164 |
dash |
19 |
no-host |
configure.util-linux |
5,319,022 |
10 |
0 |
0 |
39,112 |
0 |
17,124 |
1,266 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,015,719 |
1 |
0 |
0 |
39,120 |
0 |
17,056 |
944 |
osh-native |
6 |
no-host |
configure.yash |
256,732 |
0 |
0 |
0 |
4,120 |
0 |
866 |
82 |
bash |
14 |
no-host |
configure.yash |
243,001 |
0 |
0 |
0 |
3,720 |
0 |
866 |
79 |
dash |
22 |
no-host |
configure.yash |
385,294 |
0 |
0 |
0 |
3,728 |
0 |
859 |
117 |
osh-cpython |
30 |
no-host |
configure.yash |
259,017 |
0 |
0 |
0 |
3,736 |
0 |
852 |
87 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,653 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host