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 |
463 |
23 |
24.35 |
1.19 |
bin-true |
no-host |
678 |
539 |
2,230 |
807 |
3.29 |
1.19 |
configure.cpython |
no-host |
15,011 |
15,135 |
28,638 |
15,481 |
1.91 |
1.03 |
configure.ocaml |
no-host |
3,757 |
3,785 |
4,636 |
3,840 |
1.23 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
192 |
50 |
3.98 |
1.03 |
configure.util-linux |
no-host |
13,942 |
15,036 |
31,436 |
14,722 |
2.25 |
1.06 |
configure.yash |
no-host |
1,789 |
1,744 |
2,452 |
1,847 |
1.37 |
1.03 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
31.81 |
1.96 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,566 |
1,105 |
23,230 |
3,196 |
9.05 |
1.25 |
bin-true |
no-host |
106,384 |
66,374 |
751,138 |
125,248 |
7.06 |
1.18 |
configure.cpython |
no-host |
2,219,438 |
2,236,488 |
6,135,303 |
2,229,102 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,818 |
391,321 |
637,323 |
413,765 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,466 |
23,227 |
6,978 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,103,073 |
2,257,780 |
5,324,366 |
2,013,118 |
2.53 |
0.96 |
configure.yash |
no-host |
255,545 |
244,735 |
384,968 |
258,206 |
1.51 |
1.01 |
hello-world |
no-host |
154 |
81 |
3,656 |
349 |
23.74 |
2.27 |
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,717 |
3,717 |
0 |
684 |
1,869 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
807 |
1 |
2 |
2.7 |
8.0 |
154,682 |
12,988 |
2,795 |
11,737 |
78,338 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,481 |
1 |
65 |
15.8 |
27.4 |
1,772,598 |
49,193 |
28,504 |
101,770 |
908,045 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,722 |
3 |
63 |
22.2 |
30.1 |
2,703,262 |
44,762 |
65,788 |
126,121 |
1,320,489 |
1,256,652 |
49,081 |
41 |
131,576 |
1 |
configure.ocaml |
no-host |
3,840 |
1 |
2 |
2.7 |
20.6 |
150,024 |
11,041 |
5,134 |
8,602 |
71,623 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,517 |
30,517 |
0 |
1,599 |
14,793 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,847 |
1 |
2 |
2.6 |
24.4 |
139,681 |
7,960 |
6,596 |
7,554 |
70,295 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,260 |
64,451 |
42,659 |
4,609 |
54,538 |
57,113 |
478 |
3 |
85,318 |
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 |
17 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
463 |
413 |
53 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
20 |
3 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
678 |
500 |
210 |
2.9 |
bash |
9 |
no-host |
bin-true |
539 |
415 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,230 |
1,461 |
1,022 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
807 |
584 |
239 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,011 |
9,051 |
6,357 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,135 |
9,091 |
6,462 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,638 |
17,406 |
13,071 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,481 |
9,105 |
6,642 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,757 |
1,567 |
1,231 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,785 |
1,607 |
1,198 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,636 |
2,245 |
1,591 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,840 |
1,572 |
1,302 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
23 |
26 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
31 |
11 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
192 |
122 |
74 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
29 |
21 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,942 |
8,739 |
5,669 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,036 |
9,286 |
6,244 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,436 |
21,011 |
11,515 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,722 |
8,939 |
5,982 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,789 |
1,061 |
736 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,744 |
1,020 |
728 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,452 |
1,455 |
1,040 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,847 |
1,042 |
807 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
31 |
15 |
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,566 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,105 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,230 |
0 |
0 |
0 |
8 |
0 |
47 |
4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,196 |
0 |
0 |
0 |
16 |
0 |
42 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,384 |
0 |
0 |
0 |
8 |
0 |
1,990 |
177 |
bash |
9 |
no-host |
bin-true |
66,374 |
0 |
0 |
0 |
8 |
0 |
1,986 |
37 |
dash |
17 |
no-host |
bin-true |
751,138 |
0 |
0 |
0 |
8 |
0 |
1,997 |
240 |
osh-cpython |
25 |
no-host |
bin-true |
125,248 |
0 |
0 |
0 |
16 |
0 |
1,987 |
81 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,438 |
0 |
0 |
0 |
32,928 |
0 |
14,454 |
1,161 |
bash |
10 |
no-host |
configure.cpython |
2,236,488 |
0 |
0 |
0 |
32,992 |
0 |
14,588 |
1,199 |
dash |
18 |
no-host |
configure.cpython |
6,135,303 |
2 |
0 |
0 |
27,512 |
0 |
13,227 |
1,149 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,102 |
0 |
0 |
0 |
27,520 |
0 |
13,238 |
1,012 |
osh-native |
4 |
no-host |
configure.ocaml |
410,818 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
184 |
bash |
12 |
no-host |
configure.ocaml |
391,321 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
148 |
dash |
20 |
no-host |
configure.ocaml |
637,323 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
168 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,765 |
0 |
0 |
0 |
5,120 |
0 |
1,940 |
181 |
osh-native |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,466 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,227 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,978 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,073 |
0 |
0 |
0 |
42,408 |
0 |
18,560 |
1,034 |
bash |
11 |
no-host |
configure.util-linux |
2,257,780 |
0 |
0 |
0 |
42,592 |
0 |
17,297 |
1,213 |
dash |
19 |
no-host |
configure.util-linux |
5,324,366 |
10 |
0 |
0 |
39,112 |
0 |
17,067 |
1,339 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,118 |
3 |
0 |
0 |
39,128 |
0 |
17,095 |
1,145 |
osh-native |
6 |
no-host |
configure.yash |
255,545 |
0 |
0 |
0 |
4,120 |
0 |
871 |
73 |
bash |
14 |
no-host |
configure.yash |
244,735 |
0 |
0 |
0 |
3,720 |
0 |
868 |
86 |
dash |
22 |
no-host |
configure.yash |
384,968 |
0 |
0 |
0 |
3,728 |
0 |
856 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
258,206 |
0 |
0 |
0 |
3,736 |
0 |
856 |
93 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,656 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host