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 |
9 |
446 |
22 |
23.55 |
1.17 |
bin-true |
no-host |
669 |
541 |
2,208 |
809 |
3.30 |
1.21 |
configure.cpython |
no-host |
14,756 |
14,859 |
28,069 |
14,978 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,768 |
3,694 |
4,565 |
3,776 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
193 |
49 |
4.06 |
1.03 |
configure.util-linux |
no-host |
13,812 |
14,699 |
30,665 |
14,195 |
2.22 |
1.03 |
configure.yash |
no-host |
1,789 |
1,747 |
2,404 |
1,808 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
34.35 |
1.92 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,541 |
1,135 |
22,959 |
3,184 |
9.04 |
1.25 |
bin-true |
no-host |
105,335 |
67,364 |
750,970 |
126,180 |
7.13 |
1.20 |
configure.cpython |
no-host |
2,220,222 |
2,244,734 |
6,134,840 |
2,223,551 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,520 |
390,931 |
636,889 |
413,563 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,541 |
5,490 |
23,255 |
7,000 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,108,988 |
2,264,050 |
5,295,194 |
1,997,640 |
2.51 |
0.95 |
configure.yash |
no-host |
255,818 |
244,517 |
382,947 |
258,450 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
82 |
3,686 |
346 |
23.94 |
2.25 |
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,728 |
3,728 |
0 |
681 |
1,878 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
809 |
1 |
2 |
2.6 |
8.1 |
154,693 |
12,993 |
2,800 |
9,731 |
78,347 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,978 |
1 |
56 |
15.0 |
27.3 |
1,772,669 |
49,198 |
28,509 |
86,378 |
908,099 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,195 |
2 |
56 |
21.3 |
30.3 |
2,703,405 |
44,290 |
65,814 |
109,640 |
1,320,597 |
1,273,168 |
49,081 |
41 |
131,628 |
1 |
configure.ocaml |
no-host |
3,776 |
1 |
2 |
2.6 |
20.6 |
150,039 |
11,047 |
5,140 |
7,510 |
71,635 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,528 |
30,528 |
0 |
1,501 |
14,802 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,808 |
1 |
2 |
2.6 |
25.4 |
139,696 |
7,965 |
6,601 |
6,317 |
70,307 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,271 |
64,456 |
42,664 |
4,552 |
54,547 |
57,172 |
478 |
3 |
85,328 |
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 |
13 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
446 |
416 |
33 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
669 |
499 |
203 |
2.9 |
bash |
9 |
no-host |
bin-true |
541 |
426 |
129 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,208 |
1,500 |
959 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
809 |
583 |
242 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,756 |
8,869 |
6,281 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,859 |
9,042 |
6,236 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,069 |
17,096 |
12,782 |
27.1 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,978 |
8,828 |
6,424 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,768 |
1,582 |
1,219 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,694 |
1,607 |
1,105 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,565 |
2,189 |
1,578 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,776 |
1,596 |
1,221 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
29 |
18 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
30 |
12 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
156 |
39 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
25 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,812 |
8,765 |
5,523 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,699 |
9,015 |
6,178 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,665 |
20,619 |
11,111 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,195 |
8,577 |
5,826 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,789 |
1,054 |
743 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,747 |
971 |
779 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,404 |
1,569 |
877 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,808 |
1,098 |
714 |
25.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
25 |
25 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,541 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,135 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,959 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,184 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
105,335 |
0 |
0 |
0 |
8 |
0 |
1,989 |
129 |
bash |
9 |
no-host |
bin-true |
67,364 |
0 |
0 |
0 |
8 |
0 |
1,990 |
40 |
dash |
17 |
no-host |
bin-true |
750,970 |
0 |
0 |
0 |
8 |
0 |
1,994 |
74 |
osh-cpython |
25 |
no-host |
bin-true |
126,180 |
0 |
0 |
0 |
16 |
0 |
1,990 |
209 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,222 |
0 |
0 |
0 |
32,928 |
0 |
14,548 |
1,257 |
bash |
10 |
no-host |
configure.cpython |
2,244,734 |
0 |
0 |
0 |
32,992 |
0 |
14,541 |
1,157 |
dash |
18 |
no-host |
configure.cpython |
6,134,840 |
1 |
0 |
0 |
27,512 |
0 |
13,317 |
1,214 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,551 |
0 |
0 |
0 |
27,520 |
0 |
13,339 |
1,218 |
osh-native |
4 |
no-host |
configure.ocaml |
410,520 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
163 |
bash |
12 |
no-host |
configure.ocaml |
390,931 |
0 |
0 |
0 |
5,112 |
0 |
1,895 |
148 |
dash |
20 |
no-host |
configure.ocaml |
636,889 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
188 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,563 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
183 |
osh-native |
5 |
no-host |
configure.tcc |
6,541 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,490 |
0 |
0 |
0 |
96 |
0 |
46 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,255 |
0 |
0 |
0 |
96 |
0 |
53 |
21 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,000 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,108,988 |
1 |
0 |
0 |
42,400 |
0 |
18,551 |
1,056 |
bash |
11 |
no-host |
configure.util-linux |
2,264,050 |
1 |
0 |
0 |
42,584 |
0 |
17,460 |
1,090 |
dash |
19 |
no-host |
configure.util-linux |
5,295,194 |
13 |
0 |
0 |
39,120 |
0 |
16,961 |
1,258 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,640 |
1 |
0 |
0 |
39,120 |
0 |
16,950 |
1,053 |
osh-native |
6 |
no-host |
configure.yash |
255,818 |
0 |
0 |
0 |
4,120 |
0 |
866 |
92 |
bash |
14 |
no-host |
configure.yash |
244,517 |
0 |
0 |
0 |
3,720 |
0 |
869 |
103 |
dash |
22 |
no-host |
configure.yash |
382,947 |
0 |
0 |
0 |
3,728 |
0 |
851 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
258,450 |
0 |
0 |
0 |
3,736 |
0 |
847 |
86 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,686 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host