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 |
451 |
22 |
23.16 |
1.15 |
bin-true |
no-host |
672 |
552 |
2,227 |
820 |
3.32 |
1.22 |
configure.cpython |
no-host |
14,910 |
15,162 |
28,243 |
15,163 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,774 |
3,741 |
4,612 |
3,821 |
1.22 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
191 |
50 |
3.89 |
1.02 |
configure.util-linux |
no-host |
13,947 |
14,813 |
31,048 |
14,411 |
2.23 |
1.03 |
configure.yash |
no-host |
1,831 |
1,764 |
2,422 |
1,828 |
1.32 |
1.00 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
32.51 |
1.94 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,536 |
1,112 |
23,192 |
3,205 |
9.15 |
1.26 |
bin-true |
no-host |
106,349 |
66,367 |
749,436 |
129,244 |
7.05 |
1.22 |
configure.cpython |
no-host |
2,226,984 |
2,255,339 |
6,098,701 |
2,227,916 |
2.74 |
1.00 |
configure.ocaml |
no-host |
410,457 |
391,268 |
636,205 |
413,260 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,539 |
5,035 |
23,205 |
6,963 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,098,572 |
2,263,156 |
5,312,782 |
2,007,307 |
2.53 |
0.96 |
configure.yash |
no-host |
256,505 |
245,168 |
384,632 |
259,030 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
83 |
3,660 |
350 |
24.24 |
2.32 |
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,720 |
3,720 |
0 |
684 |
1,872 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.7 |
8.0 |
154,685 |
12,990 |
2,797 |
11,737 |
78,341 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,163 |
1 |
58 |
15.8 |
27.3 |
1,772,601 |
49,195 |
28,506 |
101,770 |
908,048 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,411 |
2 |
58 |
22.2 |
30.1 |
2,703,265 |
44,764 |
65,810 |
126,121 |
1,320,492 |
1,256,652 |
49,081 |
41 |
131,620 |
1 |
configure.ocaml |
no-host |
3,821 |
1 |
2 |
2.7 |
20.6 |
150,027 |
11,043 |
5,136 |
8,602 |
71,626 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,520 |
30,520 |
0 |
1,599 |
14,796 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,828 |
1 |
2 |
2.6 |
24.4 |
139,684 |
7,962 |
6,598 |
7,554 |
70,298 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,263 |
64,453 |
42,661 |
4,609 |
54,541 |
57,113 |
478 |
3 |
85,322 |
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 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
451 |
407 |
47 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
672 |
489 |
216 |
2.9 |
bash |
9 |
no-host |
bin-true |
552 |
431 |
131 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,227 |
1,423 |
1,058 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
580 |
255 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,910 |
8,952 |
6,358 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,162 |
9,060 |
6,520 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,243 |
17,513 |
12,519 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,163 |
8,949 |
6,480 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,774 |
1,681 |
1,133 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,741 |
1,638 |
1,120 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,612 |
2,183 |
1,632 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,821 |
1,667 |
1,191 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
26 |
24 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
33 |
9 |
19.7 |
dash |
21 |
no-host |
configure.tcc |
191 |
148 |
47 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
24 |
26 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,947 |
8,885 |
5,537 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,813 |
9,259 |
6,048 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,048 |
20,999 |
11,109 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,411 |
8,540 |
6,060 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,831 |
1,024 |
808 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,764 |
1,010 |
756 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,422 |
1,431 |
1,033 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,828 |
1,056 |
775 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
47 |
36 |
12 |
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,536 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,112 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,192 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,205 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
106,349 |
0 |
0 |
0 |
8 |
0 |
1,996 |
49 |
bash |
9 |
no-host |
bin-true |
66,367 |
0 |
0 |
0 |
8 |
0 |
1,987 |
190 |
dash |
17 |
no-host |
bin-true |
749,436 |
0 |
0 |
0 |
8 |
0 |
1,988 |
220 |
osh-cpython |
25 |
no-host |
bin-true |
129,244 |
0 |
0 |
0 |
16 |
0 |
1,992 |
84 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,984 |
0 |
0 |
0 |
32,928 |
0 |
14,603 |
1,024 |
bash |
10 |
no-host |
configure.cpython |
2,255,339 |
0 |
0 |
0 |
32,992 |
0 |
14,582 |
1,181 |
dash |
18 |
no-host |
configure.cpython |
6,098,701 |
1 |
0 |
0 |
27,512 |
0 |
13,264 |
1,151 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,916 |
0 |
0 |
0 |
27,520 |
0 |
13,206 |
1,052 |
osh-native |
4 |
no-host |
configure.ocaml |
410,457 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
163 |
bash |
12 |
no-host |
configure.ocaml |
391,268 |
0 |
0 |
0 |
5,112 |
0 |
1,945 |
182 |
dash |
20 |
no-host |
configure.ocaml |
636,205 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
199 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,260 |
0 |
0 |
0 |
5,120 |
0 |
1,938 |
169 |
osh-native |
5 |
no-host |
configure.tcc |
6,539 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,035 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,205 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,963 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,572 |
0 |
0 |
0 |
42,400 |
0 |
18,625 |
1,087 |
bash |
11 |
no-host |
configure.util-linux |
2,263,156 |
0 |
0 |
0 |
42,592 |
0 |
17,442 |
1,104 |
dash |
19 |
no-host |
configure.util-linux |
5,312,782 |
7 |
0 |
0 |
39,112 |
0 |
16,998 |
1,296 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,007,307 |
1 |
0 |
0 |
39,120 |
0 |
17,079 |
1,143 |
osh-native |
6 |
no-host |
configure.yash |
256,505 |
0 |
0 |
0 |
4,120 |
0 |
876 |
99 |
bash |
14 |
no-host |
configure.yash |
245,168 |
0 |
0 |
0 |
3,720 |
0 |
868 |
95 |
dash |
22 |
no-host |
configure.yash |
384,632 |
0 |
0 |
0 |
3,728 |
0 |
858 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
259,030 |
0 |
0 |
0 |
3,736 |
0 |
851 |
74 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,660 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host