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 |
466 |
27 |
23.24 |
1.33 |
bin-true |
no-host |
690 |
555 |
2,263 |
828 |
3.28 |
1.20 |
configure.cpython |
no-host |
15,580 |
15,537 |
29,126 |
15,612 |
1.87 |
1.00 |
configure.ocaml |
no-host |
3,859 |
3,808 |
4,724 |
3,902 |
1.22 |
1.01 |
configure.tcc |
no-host |
50 |
41 |
200 |
50 |
4.02 |
1.00 |
configure.util-linux |
no-host |
14,385 |
15,119 |
32,428 |
14,792 |
2.25 |
1.03 |
configure.yash |
no-host |
1,872 |
1,761 |
2,538 |
1,846 |
1.36 |
0.99 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.46 |
1.86 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,549 |
1,094 |
23,080 |
3,156 |
9.05 |
1.24 |
bin-true |
no-host |
109,385 |
65,423 |
752,507 |
128,192 |
6.88 |
1.17 |
configure.cpython |
no-host |
2,219,641 |
2,242,093 |
6,140,771 |
2,218,528 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,566 |
390,802 |
639,229 |
413,804 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,546 |
5,468 |
23,250 |
6,990 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,104,453 |
2,257,056 |
5,308,766 |
1,996,867 |
2.52 |
0.95 |
configure.yash |
no-host |
256,391 |
244,481 |
384,105 |
258,685 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,698 |
348 |
24.33 |
2.29 |
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.3 |
3,758 |
3,758 |
0 |
684 |
1,897 |
1,177 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
828 |
1 |
2 |
2.6 |
8.1 |
154,723 |
13,072 |
2,825 |
9,734 |
78,366 |
66,623 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,612 |
1 |
66 |
15.0 |
27.4 |
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,792 |
3 |
66 |
21.3 |
30.3 |
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,902 |
1 |
2 |
2.6 |
20.6 |
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,846 |
1 |
2 |
2.6 |
24.5 |
139,726 |
7,990 |
6,626 |
6,320 |
70,326 |
63,080 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
27 |
1 |
3 |
2.8 |
8.8 |
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 |
18 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
466 |
395 |
74 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
27 |
19 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
690 |
508 |
216 |
3.0 |
bash |
9 |
no-host |
bin-true |
555 |
430 |
133 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,263 |
1,460 |
1,077 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
828 |
559 |
284 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,580 |
9,249 |
6,730 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,537 |
9,352 |
6,619 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,126 |
17,417 |
13,618 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,612 |
9,145 |
6,720 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,859 |
1,643 |
1,259 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,808 |
1,581 |
1,242 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,724 |
2,257 |
1,685 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,902 |
1,661 |
1,280 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
26 |
23 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
200 |
132 |
71 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
34 |
16 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,385 |
8,925 |
5,937 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,119 |
9,307 |
6,296 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,428 |
21,727 |
11,852 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,792 |
8,800 |
6,188 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,872 |
1,069 |
811 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,761 |
1,044 |
718 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,538 |
1,527 |
1,054 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,846 |
1,053 |
797 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
21 |
29 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,549 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,080 |
0 |
0 |
0 |
8 |
0 |
45 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,156 |
0 |
0 |
0 |
16 |
0 |
40 |
4 |
osh-native |
1 |
no-host |
bin-true |
109,385 |
0 |
0 |
0 |
8 |
0 |
1,990 |
104 |
bash |
9 |
no-host |
bin-true |
65,423 |
0 |
0 |
0 |
8 |
0 |
1,990 |
54 |
dash |
17 |
no-host |
bin-true |
752,507 |
0 |
0 |
0 |
8 |
0 |
2,002 |
167 |
osh-cpython |
25 |
no-host |
bin-true |
128,192 |
0 |
0 |
0 |
16 |
0 |
1,992 |
135 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,641 |
0 |
0 |
0 |
32,928 |
0 |
14,489 |
1,101 |
bash |
10 |
no-host |
configure.cpython |
2,242,093 |
0 |
0 |
0 |
32,992 |
0 |
14,602 |
1,120 |
dash |
18 |
no-host |
configure.cpython |
6,140,771 |
0 |
0 |
0 |
27,512 |
0 |
13,293 |
1,248 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,528 |
0 |
0 |
0 |
27,520 |
0 |
13,236 |
1,100 |
osh-native |
4 |
no-host |
configure.ocaml |
410,566 |
0 |
0 |
0 |
5,120 |
0 |
1,942 |
190 |
bash |
12 |
no-host |
configure.ocaml |
390,802 |
0 |
0 |
0 |
5,112 |
0 |
1,875 |
139 |
dash |
20 |
no-host |
configure.ocaml |
639,229 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
174 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,804 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
155 |
osh-native |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
49 |
68 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,250 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,990 |
0 |
0 |
0 |
104 |
0 |
47 |
10 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,453 |
0 |
0 |
0 |
42,408 |
0 |
18,478 |
1,024 |
bash |
11 |
no-host |
configure.util-linux |
2,257,056 |
0 |
0 |
0 |
42,592 |
0 |
17,436 |
1,065 |
dash |
19 |
no-host |
configure.util-linux |
5,308,766 |
10 |
0 |
0 |
39,112 |
0 |
16,953 |
1,285 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,867 |
1 |
0 |
0 |
39,120 |
0 |
17,015 |
1,021 |
osh-native |
6 |
no-host |
configure.yash |
256,391 |
0 |
0 |
0 |
4,120 |
0 |
870 |
77 |
bash |
14 |
no-host |
configure.yash |
244,481 |
0 |
0 |
0 |
3,728 |
0 |
869 |
85 |
dash |
22 |
no-host |
configure.yash |
384,105 |
0 |
0 |
0 |
3,728 |
0 |
854 |
95 |
osh-cpython |
30 |
no-host |
configure.yash |
258,685 |
0 |
0 |
0 |
3,736 |
0 |
848 |
98 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,698 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host