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 |
460 |
22 |
24.26 |
1.17 |
bin-true |
no-host |
673 |
540 |
2,245 |
818 |
3.34 |
1.22 |
configure.cpython |
no-host |
14,864 |
14,926 |
28,262 |
15,058 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,787 |
3,703 |
4,584 |
3,800 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
191 |
49 |
4.01 |
1.02 |
configure.util-linux |
no-host |
13,847 |
14,748 |
30,874 |
14,285 |
2.23 |
1.03 |
configure.yash |
no-host |
1,801 |
1,751 |
2,426 |
1,814 |
1.35 |
1.01 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
32.73 |
2.03 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,540 |
1,116 |
23,439 |
3,172 |
9.23 |
1.25 |
bin-true |
no-host |
106,313 |
66,512 |
754,883 |
128,194 |
7.10 |
1.21 |
configure.cpython |
no-host |
2,229,257 |
2,247,347 |
6,118,398 |
2,228,950 |
2.74 |
1.00 |
configure.ocaml |
no-host |
409,701 |
391,176 |
637,907 |
414,274 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,542 |
5,475 |
23,154 |
6,969 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,098,240 |
2,263,399 |
5,315,947 |
1,999,620 |
2.53 |
0.95 |
configure.yash |
no-host |
256,633 |
244,493 |
384,326 |
259,045 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
84 |
3,651 |
342 |
23.86 |
2.24 |
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,728 |
3,728 |
0 |
684 |
1,880 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.7 |
8.0 |
154,693 |
12,995 |
2,802 |
11,737 |
78,349 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,058 |
1 |
59 |
15.8 |
27.5 |
1,772,609 |
49,200 |
28,511 |
101,770 |
908,056 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,285 |
3 |
58 |
22.2 |
30.3 |
2,703,273 |
42,774 |
65,815 |
126,121 |
1,320,500 |
1,256,652 |
49,081 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,800 |
1 |
2 |
2.7 |
20.4 |
150,035 |
11,048 |
5,141 |
8,602 |
71,634 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,528 |
30,528 |
0 |
1,599 |
14,804 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,814 |
1 |
2 |
2.6 |
24.4 |
139,692 |
7,967 |
6,603 |
7,554 |
70,306 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,271 |
64,458 |
42,666 |
4,610 |
54,549 |
57,112 |
478 |
3 |
85,332 |
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 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
460 |
413 |
50 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
4 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
673 |
489 |
212 |
2.9 |
bash |
9 |
no-host |
bin-true |
540 |
422 |
128 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,245 |
1,510 |
1,000 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
609 |
225 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,864 |
9,091 |
6,168 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,926 |
8,953 |
6,392 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,262 |
17,186 |
12,877 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,058 |
8,783 |
6,543 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,787 |
1,588 |
1,232 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,703 |
1,583 |
1,139 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,584 |
2,233 |
1,554 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,800 |
1,581 |
1,256 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
23 |
25 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
31 |
11 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
141 |
54 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
13 |
36 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,847 |
8,795 |
5,522 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,748 |
9,036 |
6,199 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,874 |
20,425 |
11,488 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,285 |
8,657 |
5,791 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,801 |
1,049 |
761 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,751 |
1,056 |
697 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,426 |
1,527 |
940 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,814 |
1,072 |
746 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
35 |
13 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,540 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,116 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,439 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,172 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,313 |
0 |
0 |
0 |
8 |
0 |
1,983 |
103 |
bash |
9 |
no-host |
bin-true |
66,512 |
0 |
0 |
0 |
8 |
0 |
1,986 |
38 |
dash |
17 |
no-host |
bin-true |
754,883 |
0 |
0 |
0 |
8 |
0 |
1,995 |
179 |
osh-cpython |
25 |
no-host |
bin-true |
128,194 |
0 |
0 |
0 |
16 |
0 |
1,993 |
122 |
osh-native |
2 |
no-host |
configure.cpython |
2,229,257 |
0 |
0 |
0 |
32,928 |
0 |
14,544 |
1,336 |
bash |
10 |
no-host |
configure.cpython |
2,247,347 |
0 |
0 |
0 |
32,992 |
0 |
14,612 |
1,181 |
dash |
18 |
no-host |
configure.cpython |
6,118,398 |
0 |
0 |
0 |
27,512 |
0 |
13,291 |
1,136 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,950 |
0 |
0 |
0 |
27,520 |
0 |
13,209 |
920 |
osh-native |
4 |
no-host |
configure.ocaml |
409,701 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
200 |
bash |
12 |
no-host |
configure.ocaml |
391,176 |
0 |
0 |
0 |
5,112 |
0 |
1,890 |
158 |
dash |
20 |
no-host |
configure.ocaml |
637,907 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
174 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,274 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
170 |
osh-native |
5 |
no-host |
configure.tcc |
6,542 |
0 |
0 |
0 |
104 |
0 |
49 |
13 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,154 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,969 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,240 |
2 |
0 |
0 |
42,400 |
0 |
18,568 |
1,046 |
bash |
11 |
no-host |
configure.util-linux |
2,263,399 |
0 |
0 |
0 |
42,584 |
0 |
17,464 |
1,154 |
dash |
19 |
no-host |
configure.util-linux |
5,315,947 |
10 |
0 |
0 |
39,120 |
0 |
17,035 |
1,308 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,620 |
1 |
0 |
0 |
39,120 |
0 |
17,067 |
1,069 |
osh-native |
6 |
no-host |
configure.yash |
256,633 |
0 |
0 |
0 |
4,120 |
0 |
869 |
71 |
bash |
14 |
no-host |
configure.yash |
244,493 |
0 |
0 |
0 |
3,720 |
0 |
870 |
87 |
dash |
22 |
no-host |
configure.yash |
384,326 |
0 |
0 |
0 |
3,728 |
0 |
855 |
83 |
osh-cpython |
30 |
no-host |
configure.yash |
259,045 |
0 |
0 |
0 |
3,736 |
0 |
855 |
67 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,651 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host