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 |
10 |
470 |
24 |
24.06 |
1.22 |
bin-true |
no-host |
691 |
552 |
2,332 |
825 |
3.37 |
1.19 |
configure.cpython |
no-host |
15,848 |
15,947 |
31,073 |
16,039 |
1.96 |
1.01 |
configure.ocaml |
no-host |
4,006 |
3,904 |
4,835 |
3,972 |
1.21 |
0.99 |
configure.tcc |
no-host |
50 |
43 |
206 |
52 |
4.11 |
1.04 |
configure.util-linux |
no-host |
14,722 |
15,880 |
34,061 |
15,299 |
2.31 |
1.04 |
configure.yash |
no-host |
1,915 |
1,862 |
2,610 |
1,932 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
27.64 |
1.68 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,528 |
1,124 |
23,259 |
3,194 |
9.20 |
1.26 |
bin-true |
no-host |
105,376 |
66,462 |
754,924 |
126,147 |
7.16 |
1.20 |
configure.cpython |
no-host |
2,222,678 |
2,241,805 |
6,145,391 |
2,229,478 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,771 |
391,150 |
637,267 |
413,174 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,543 |
5,505 |
23,158 |
6,955 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,096,859 |
2,260,945 |
5,323,027 |
2,015,029 |
2.54 |
0.96 |
configure.yash |
no-host |
256,324 |
244,188 |
384,670 |
258,354 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
80 |
3,656 |
341 |
24.21 |
2.26 |
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 |
825 |
1 |
2 |
2.7 |
7.9 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,039 |
1 |
65 |
15.8 |
27.4 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,299 |
3 |
66 |
22.2 |
30.0 |
2,703,368 |
44,760 |
65,786 |
126,155 |
1,320,522 |
1,256,691 |
49,086 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,972 |
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 |
52 |
0 |
0 |
1.3 |
19.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,932 |
1 |
2 |
2.6 |
24.4 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
24 |
1 |
2 |
2.8 |
8.9 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
470 |
407 |
67 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
17 |
8 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
691 |
508 |
214 |
3.0 |
bash |
9 |
no-host |
bin-true |
552 |
432 |
129 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,332 |
1,533 |
1,069 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
825 |
586 |
254 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,848 |
9,459 |
6,780 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,947 |
9,389 |
6,995 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
31,073 |
18,441 |
14,641 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,039 |
9,185 |
7,117 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
4,006 |
1,700 |
1,340 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,904 |
1,659 |
1,265 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,835 |
2,308 |
1,744 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,972 |
1,708 |
1,302 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
29 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
23 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
206 |
145 |
64 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
39 |
14 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,722 |
9,156 |
6,034 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,880 |
9,463 |
6,919 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
34,061 |
22,404 |
12,815 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,299 |
9,165 |
6,312 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,915 |
1,121 |
802 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,862 |
1,129 |
737 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,610 |
1,617 |
1,039 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,932 |
1,092 |
844 |
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 |
49 |
28 |
21 |
17.3 |
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,528 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,124 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,259 |
0 |
0 |
0 |
8 |
0 |
47 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,194 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
105,376 |
0 |
0 |
0 |
8 |
0 |
1,987 |
190 |
bash |
9 |
no-host |
bin-true |
66,462 |
0 |
0 |
0 |
8 |
0 |
1,982 |
41 |
dash |
17 |
no-host |
bin-true |
754,924 |
0 |
0 |
0 |
8 |
0 |
1,997 |
227 |
osh-cpython |
25 |
no-host |
bin-true |
126,147 |
0 |
0 |
0 |
16 |
0 |
1,985 |
99 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,678 |
0 |
0 |
0 |
32,928 |
0 |
14,631 |
1,110 |
bash |
10 |
no-host |
configure.cpython |
2,241,805 |
0 |
0 |
0 |
32,992 |
0 |
14,681 |
1,052 |
dash |
18 |
no-host |
configure.cpython |
6,145,391 |
2 |
0 |
0 |
27,512 |
0 |
13,299 |
1,307 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,478 |
0 |
0 |
0 |
27,520 |
0 |
13,339 |
944 |
osh-native |
4 |
no-host |
configure.ocaml |
410,771 |
0 |
0 |
0 |
5,120 |
0 |
1,960 |
152 |
bash |
12 |
no-host |
configure.ocaml |
391,150 |
0 |
0 |
0 |
5,112 |
0 |
1,896 |
162 |
dash |
20 |
no-host |
configure.ocaml |
637,267 |
1 |
0 |
0 |
5,112 |
0 |
1,855 |
196 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,174 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
188 |
osh-native |
5 |
no-host |
configure.tcc |
6,543 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,505 |
0 |
0 |
0 |
96 |
0 |
47 |
9 |
dash |
21 |
no-host |
configure.tcc |
23,158 |
0 |
0 |
0 |
96 |
0 |
53 |
18 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,955 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,859 |
0 |
0 |
0 |
42,408 |
0 |
18,660 |
1,203 |
bash |
11 |
no-host |
configure.util-linux |
2,260,945 |
2 |
0 |
0 |
42,592 |
0 |
17,503 |
1,197 |
dash |
19 |
no-host |
configure.util-linux |
5,323,027 |
13 |
0 |
0 |
39,120 |
0 |
17,041 |
1,364 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,015,029 |
6 |
0 |
0 |
39,144 |
0 |
17,074 |
1,090 |
osh-native |
6 |
no-host |
configure.yash |
256,324 |
0 |
0 |
0 |
4,120 |
0 |
870 |
79 |
bash |
14 |
no-host |
configure.yash |
244,188 |
0 |
0 |
0 |
3,720 |
0 |
869 |
79 |
dash |
22 |
no-host |
configure.yash |
384,670 |
0 |
0 |
0 |
3,728 |
0 |
853 |
82 |
osh-cpython |
30 |
no-host |
configure.yash |
258,354 |
0 |
0 |
0 |
3,736 |
0 |
853 |
85 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,656 |
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