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 |
453 |
22 |
23.82 |
1.17 |
bin-true |
no-host |
678 |
541 |
2,220 |
811 |
3.27 |
1.20 |
configure.cpython |
no-host |
14,803 |
14,901 |
28,216 |
15,126 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,756 |
3,712 |
4,576 |
3,790 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
194 |
49 |
4.11 |
1.04 |
configure.util-linux |
no-host |
13,821 |
14,908 |
30,813 |
14,236 |
2.23 |
1.03 |
configure.yash |
no-host |
1,789 |
1,748 |
2,411 |
1,804 |
1.35 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
33.06 |
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,535 |
1,099 |
23,472 |
3,252 |
9.26 |
1.28 |
bin-true |
no-host |
105,405 |
65,440 |
750,746 |
126,165 |
7.12 |
1.20 |
configure.cpython |
no-host |
2,221,205 |
2,240,440 |
6,135,063 |
2,233,832 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,325 |
390,701 |
639,849 |
414,149 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,569 |
5,494 |
23,285 |
6,967 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,099,303 |
2,256,906 |
5,320,716 |
2,021,932 |
2.53 |
0.96 |
configure.yash |
no-host |
256,832 |
244,946 |
384,638 |
258,793 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
80 |
3,686 |
348 |
24.57 |
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,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.7 |
7.9 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,126 |
1 |
59 |
15.8 |
27.4 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,236 |
2 |
58 |
22.2 |
30.0 |
2,703,404 |
44,766 |
65,812 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,790 |
0 |
2 |
2.7 |
20.6 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,804 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,326 |
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 |
11 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
453 |
405 |
52 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
678 |
490 |
219 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
418 |
132 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,220 |
1,413 |
1,061 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
570 |
257 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,803 |
9,078 |
6,116 |
27.1 |
bash |
10 |
no-host |
configure.cpython |
14,901 |
8,987 |
6,330 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,216 |
17,421 |
12,605 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,126 |
8,876 |
6,514 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,756 |
1,621 |
1,175 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,712 |
1,589 |
1,142 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,576 |
2,194 |
1,586 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,790 |
1,603 |
1,226 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
28 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
137 |
60 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,821 |
8,744 |
5,541 |
29.9 |
bash |
11 |
no-host |
configure.util-linux |
14,908 |
9,116 |
6,285 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,813 |
20,572 |
11,317 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,236 |
8,552 |
5,880 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,789 |
966 |
831 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,748 |
1,044 |
707 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,411 |
1,437 |
1,016 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,804 |
1,068 |
740 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
34 |
15 |
17.3 |
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,535 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,099 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,472 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,252 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
105,405 |
0 |
0 |
0 |
8 |
0 |
1,990 |
122 |
bash |
9 |
no-host |
bin-true |
65,440 |
0 |
0 |
0 |
8 |
0 |
1,987 |
51 |
dash |
17 |
no-host |
bin-true |
750,746 |
0 |
0 |
0 |
8 |
0 |
1,995 |
301 |
osh-cpython |
25 |
no-host |
bin-true |
126,165 |
0 |
0 |
0 |
16 |
0 |
1,985 |
56 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,205 |
0 |
0 |
0 |
32,928 |
0 |
14,497 |
1,109 |
bash |
10 |
no-host |
configure.cpython |
2,240,440 |
0 |
0 |
0 |
32,992 |
0 |
14,626 |
1,041 |
dash |
18 |
no-host |
configure.cpython |
6,135,063 |
0 |
0 |
0 |
27,512 |
0 |
13,313 |
1,236 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,832 |
0 |
0 |
0 |
27,520 |
0 |
13,344 |
1,185 |
osh-native |
4 |
no-host |
configure.ocaml |
410,325 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
180 |
bash |
12 |
no-host |
configure.ocaml |
390,701 |
0 |
0 |
0 |
5,112 |
0 |
1,923 |
159 |
dash |
20 |
no-host |
configure.ocaml |
639,849 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
189 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,149 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
208 |
osh-native |
5 |
no-host |
configure.tcc |
6,569 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,494 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,285 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,967 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,303 |
0 |
0 |
0 |
42,400 |
0 |
18,578 |
1,092 |
bash |
11 |
no-host |
configure.util-linux |
2,256,906 |
0 |
0 |
0 |
42,592 |
0 |
17,465 |
1,137 |
dash |
19 |
no-host |
configure.util-linux |
5,320,716 |
13 |
0 |
0 |
39,112 |
0 |
17,058 |
1,162 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,021,932 |
0 |
0 |
0 |
39,128 |
0 |
17,039 |
993 |
osh-native |
6 |
no-host |
configure.yash |
256,832 |
0 |
0 |
0 |
4,120 |
0 |
873 |
75 |
bash |
14 |
no-host |
configure.yash |
244,946 |
0 |
0 |
0 |
3,720 |
0 |
869 |
89 |
dash |
22 |
no-host |
configure.yash |
384,638 |
0 |
0 |
0 |
3,728 |
0 |
853 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
258,793 |
0 |
0 |
0 |
3,736 |
0 |
852 |
88 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,686 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host