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 |
456 |
23 |
23.39 |
1.20 |
bin-true |
no-host |
684 |
548 |
2,265 |
815 |
3.31 |
1.19 |
configure.cpython |
no-host |
15,297 |
15,316 |
28,849 |
15,409 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,865 |
3,789 |
4,661 |
3,960 |
1.21 |
1.02 |
configure.tcc |
no-host |
48 |
43 |
194 |
51 |
4.00 |
1.06 |
configure.util-linux |
no-host |
14,228 |
15,162 |
31,809 |
15,011 |
2.24 |
1.06 |
configure.yash |
no-host |
1,855 |
1,785 |
2,461 |
1,916 |
1.33 |
1.03 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
29.99 |
1.80 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,523 |
1,098 |
23,422 |
3,187 |
9.28 |
1.26 |
bin-true |
no-host |
104,386 |
66,403 |
753,378 |
126,135 |
7.22 |
1.21 |
configure.cpython |
no-host |
2,220,979 |
2,237,887 |
6,142,223 |
2,236,421 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,054 |
391,324 |
639,218 |
413,051 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,481 |
23,222 |
6,976 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,102,021 |
2,259,742 |
5,327,981 |
2,007,413 |
2.53 |
0.95 |
configure.yash |
no-host |
255,947 |
244,514 |
386,447 |
258,557 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
80 |
3,655 |
346 |
24.05 |
2.28 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,409 |
1 |
62 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,011 |
3 |
65 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,960 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.3 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,916 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,265 |
64,454 |
42,662 |
4,609 |
54,543 |
57,113 |
478 |
3 |
85,324 |
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 |
14 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
456 |
410 |
49 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
7 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
684 |
514 |
201 |
2.9 |
bash |
9 |
no-host |
bin-true |
548 |
411 |
147 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,265 |
1,466 |
1,059 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
578 |
254 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,297 |
9,109 |
6,598 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,316 |
9,365 |
6,379 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,849 |
17,714 |
13,005 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,409 |
9,315 |
6,368 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,865 |
1,683 |
1,214 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,789 |
1,662 |
1,145 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,661 |
2,331 |
1,534 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,960 |
1,651 |
1,347 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
25 |
24 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
22 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
139 |
58 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
45 |
7 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,228 |
8,822 |
5,892 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,162 |
9,225 |
6,442 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,809 |
21,343 |
11,595 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,011 |
8,916 |
6,298 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,855 |
1,108 |
756 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,785 |
976 |
813 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,461 |
1,409 |
1,095 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,916 |
1,090 |
831 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
30 |
17 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,523 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,098 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,422 |
0 |
0 |
0 |
8 |
0 |
47 |
15 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,187 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
104,386 |
0 |
0 |
0 |
8 |
0 |
1,990 |
133 |
bash |
9 |
no-host |
bin-true |
66,403 |
0 |
0 |
0 |
8 |
0 |
1,988 |
54 |
dash |
17 |
no-host |
bin-true |
753,378 |
0 |
0 |
0 |
8 |
0 |
1,998 |
316 |
osh-cpython |
25 |
no-host |
bin-true |
126,135 |
0 |
0 |
0 |
16 |
0 |
1,995 |
99 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,979 |
0 |
0 |
0 |
32,928 |
0 |
14,369 |
1,105 |
bash |
10 |
no-host |
configure.cpython |
2,237,887 |
0 |
0 |
0 |
32,992 |
0 |
14,544 |
1,024 |
dash |
18 |
no-host |
configure.cpython |
6,142,223 |
0 |
0 |
0 |
27,512 |
0 |
13,308 |
1,211 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,421 |
0 |
0 |
0 |
27,520 |
0 |
13,287 |
1,064 |
osh-native |
4 |
no-host |
configure.ocaml |
410,054 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
188 |
bash |
12 |
no-host |
configure.ocaml |
391,324 |
0 |
0 |
0 |
5,112 |
0 |
1,871 |
137 |
dash |
20 |
no-host |
configure.ocaml |
639,218 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
206 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,051 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
174 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,222 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,102,021 |
0 |
0 |
0 |
42,400 |
0 |
18,640 |
1,099 |
bash |
11 |
no-host |
configure.util-linux |
2,259,742 |
1 |
0 |
0 |
42,584 |
0 |
17,478 |
1,212 |
dash |
19 |
no-host |
configure.util-linux |
5,327,981 |
12 |
0 |
0 |
39,144 |
0 |
17,285 |
1,451 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,007,413 |
4 |
0 |
0 |
39,128 |
0 |
17,053 |
1,074 |
osh-native |
6 |
no-host |
configure.yash |
255,947 |
0 |
0 |
0 |
4,120 |
0 |
868 |
99 |
bash |
14 |
no-host |
configure.yash |
244,514 |
0 |
0 |
0 |
3,720 |
0 |
866 |
76 |
dash |
22 |
no-host |
configure.yash |
386,447 |
0 |
0 |
0 |
3,728 |
0 |
860 |
84 |
osh-cpython |
30 |
no-host |
configure.yash |
258,557 |
0 |
0 |
0 |
3,736 |
0 |
852 |
84 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
0 |
1 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,655 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host