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 |
464 |
22 |
23.52 |
1.12 |
bin-true |
no-host |
679 |
546 |
2,274 |
818 |
3.35 |
1.20 |
configure.cpython |
no-host |
15,447 |
15,650 |
28,832 |
15,525 |
1.87 |
1.01 |
configure.ocaml |
no-host |
3,898 |
3,851 |
4,720 |
3,942 |
1.21 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
197 |
50 |
3.99 |
1.01 |
configure.util-linux |
no-host |
14,430 |
15,386 |
31,396 |
14,596 |
2.18 |
1.01 |
configure.yash |
no-host |
1,885 |
1,826 |
2,507 |
1,872 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
33.89 |
1.83 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,552 |
1,093 |
23,056 |
3,142 |
9.03 |
1.23 |
bin-true |
no-host |
106,451 |
66,453 |
753,558 |
127,201 |
7.08 |
1.19 |
configure.cpython |
no-host |
2,218,914 |
2,245,166 |
6,135,724 |
2,214,514 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,561 |
391,067 |
639,707 |
413,438 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,579 |
5,475 |
23,201 |
7,011 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,100,992 |
2,260,102 |
5,316,418 |
2,002,527 |
2.53 |
0.95 |
configure.yash |
no-host |
256,314 |
245,183 |
384,155 |
258,640 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
80 |
3,693 |
348 |
23.98 |
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.3 |
6.0 |
3,758 |
3,758 |
0 |
684 |
1,897 |
1,177 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.6 |
8.0 |
154,723 |
13,072 |
2,825 |
9,734 |
78,366 |
66,623 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,525 |
1 |
64 |
15.0 |
27.5 |
1,772,699 |
49,817 |
28,534 |
86,381 |
908,118 |
778,200 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,596 |
3 |
63 |
21.3 |
30.1 |
2,703,435 |
44,793 |
65,819 |
109,643 |
1,320,616 |
1,273,176 |
49,081 |
41 |
131,638 |
1 |
configure.ocaml |
no-host |
3,942 |
1 |
2 |
2.6 |
20.4 |
150,069 |
11,072 |
5,165 |
7,513 |
71,654 |
70,902 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,558 |
30,558 |
0 |
1,504 |
14,821 |
14,233 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,872 |
1 |
2 |
2.6 |
24.4 |
139,726 |
7,990 |
6,626 |
6,320 |
70,326 |
63,080 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,301 |
64,481 |
42,689 |
4,555 |
54,566 |
57,180 |
478 |
3 |
85,378 |
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 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
464 |
418 |
50 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
679 |
499 |
213 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
416 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,274 |
1,497 |
1,052 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
597 |
236 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,447 |
9,268 |
6,585 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,650 |
9,572 |
6,508 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,832 |
17,731 |
12,973 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,525 |
9,177 |
6,600 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,898 |
1,608 |
1,327 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,851 |
1,649 |
1,219 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,720 |
2,359 |
1,575 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,942 |
1,727 |
1,255 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
24 |
26 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
33 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
197 |
153 |
47 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
24 |
27 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,430 |
9,027 |
5,851 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,386 |
9,551 |
6,322 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,396 |
21,089 |
11,414 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,596 |
8,863 |
5,898 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,885 |
1,145 |
748 |
24.1 |
bash |
14 |
no-host |
configure.yash |
1,826 |
1,092 |
736 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,507 |
1,533 |
1,017 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,872 |
1,032 |
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 |
52 |
32 |
20 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,552 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,056 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,142 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,451 |
0 |
0 |
0 |
8 |
0 |
1,996 |
112 |
bash |
9 |
no-host |
bin-true |
66,453 |
0 |
0 |
0 |
8 |
0 |
1,990 |
103 |
dash |
17 |
no-host |
bin-true |
753,558 |
0 |
0 |
0 |
8 |
0 |
1,997 |
275 |
osh-cpython |
25 |
no-host |
bin-true |
127,201 |
0 |
0 |
0 |
16 |
0 |
1,991 |
51 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,914 |
0 |
0 |
0 |
32,928 |
0 |
14,420 |
1,083 |
bash |
10 |
no-host |
configure.cpython |
2,245,166 |
0 |
0 |
0 |
32,992 |
0 |
14,673 |
1,011 |
dash |
18 |
no-host |
configure.cpython |
6,135,724 |
1 |
0 |
0 |
27,512 |
0 |
13,290 |
1,273 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,214,514 |
0 |
0 |
0 |
27,520 |
0 |
13,325 |
1,153 |
osh-native |
4 |
no-host |
configure.ocaml |
410,561 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
170 |
bash |
12 |
no-host |
configure.ocaml |
391,067 |
0 |
0 |
0 |
5,112 |
0 |
1,898 |
163 |
dash |
20 |
no-host |
configure.ocaml |
639,707 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
169 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,438 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
171 |
osh-native |
5 |
no-host |
configure.tcc |
6,579 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,201 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,011 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,992 |
0 |
0 |
0 |
42,400 |
0 |
18,547 |
988 |
bash |
11 |
no-host |
configure.util-linux |
2,260,102 |
1 |
0 |
0 |
42,592 |
0 |
17,503 |
1,111 |
dash |
19 |
no-host |
configure.util-linux |
5,316,418 |
11 |
0 |
0 |
39,112 |
0 |
17,123 |
1,243 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,527 |
0 |
0 |
0 |
39,120 |
0 |
16,924 |
1,208 |
osh-native |
6 |
no-host |
configure.yash |
256,314 |
0 |
0 |
0 |
4,120 |
0 |
863 |
86 |
bash |
14 |
no-host |
configure.yash |
245,183 |
0 |
0 |
0 |
3,720 |
0 |
870 |
72 |
dash |
22 |
no-host |
configure.yash |
384,155 |
0 |
0 |
0 |
3,728 |
0 |
854 |
100 |
osh-cpython |
30 |
no-host |
configure.yash |
258,640 |
0 |
0 |
0 |
3,736 |
0 |
847 |
79 |
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,693 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host