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 |
454 |
22 |
23.66 |
1.17 |
bin-true |
no-host |
681 |
540 |
2,226 |
811 |
3.27 |
1.19 |
configure.cpython |
no-host |
14,965 |
15,004 |
28,527 |
15,166 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,794 |
3,718 |
4,644 |
3,825 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
194 |
51 |
4.12 |
1.07 |
configure.util-linux |
no-host |
13,942 |
14,894 |
31,015 |
14,425 |
2.22 |
1.03 |
configure.yash |
no-host |
1,802 |
1,759 |
2,424 |
1,826 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.37 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,543 |
1,128 |
23,451 |
3,220 |
9.22 |
1.27 |
bin-true |
no-host |
106,355 |
66,424 |
749,756 |
127,126 |
7.05 |
1.20 |
configure.cpython |
no-host |
2,222,990 |
2,244,824 |
6,131,819 |
2,235,021 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,256 |
390,879 |
639,226 |
414,156 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,556 |
5,488 |
23,292 |
6,972 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,093,913 |
2,260,703 |
5,325,547 |
2,019,440 |
2.54 |
0.96 |
configure.yash |
no-host |
255,745 |
244,720 |
384,097 |
259,120 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
83 |
3,684 |
347 |
24.08 |
2.27 |
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 |
8.1 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,166 |
1 |
60 |
15.8 |
27.5 |
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,425 |
3 |
60 |
22.2 |
30.4 |
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,825 |
1 |
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 |
51 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,826 |
1 |
2 |
2.6 |
24.2 |
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 |
9.0 |
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 |
12 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
415 |
42 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
681 |
505 |
207 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
430 |
121 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,226 |
1,464 |
1,019 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
583 |
244 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,965 |
8,999 |
6,364 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,004 |
9,132 |
6,290 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,527 |
17,213 |
13,167 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,166 |
8,881 |
6,545 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,794 |
1,676 |
1,150 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,718 |
1,575 |
1,163 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,644 |
2,102 |
1,746 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,825 |
1,648 |
1,212 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
33 |
14 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
22 |
20 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
123 |
75 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
33 |
18 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,942 |
8,828 |
5,578 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,894 |
9,077 |
6,309 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,015 |
20,798 |
11,296 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,425 |
8,604 |
6,009 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,802 |
1,015 |
795 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,759 |
1,052 |
711 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,424 |
1,439 |
1,026 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,826 |
1,016 |
813 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
37 |
12 |
17.3 |
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,543 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,128 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,451 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,220 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,355 |
0 |
0 |
0 |
8 |
0 |
1,989 |
103 |
bash |
9 |
no-host |
bin-true |
66,424 |
0 |
0 |
0 |
8 |
0 |
1,986 |
36 |
dash |
17 |
no-host |
bin-true |
749,756 |
0 |
0 |
0 |
8 |
0 |
1,995 |
216 |
osh-cpython |
25 |
no-host |
bin-true |
127,126 |
0 |
0 |
0 |
16 |
0 |
1,993 |
87 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,990 |
0 |
0 |
0 |
32,928 |
0 |
14,418 |
1,026 |
bash |
10 |
no-host |
configure.cpython |
2,244,824 |
0 |
0 |
0 |
32,992 |
0 |
14,644 |
964 |
dash |
18 |
no-host |
configure.cpython |
6,131,819 |
1 |
0 |
0 |
27,512 |
0 |
13,306 |
1,282 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,021 |
0 |
0 |
0 |
27,520 |
0 |
13,353 |
1,237 |
osh-native |
4 |
no-host |
configure.ocaml |
410,256 |
0 |
0 |
0 |
5,120 |
0 |
1,964 |
170 |
bash |
12 |
no-host |
configure.ocaml |
390,879 |
0 |
0 |
0 |
5,112 |
0 |
1,878 |
146 |
dash |
20 |
no-host |
configure.ocaml |
639,226 |
0 |
0 |
0 |
5,112 |
0 |
1,866 |
194 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,156 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
152 |
osh-native |
5 |
no-host |
configure.tcc |
6,556 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,488 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,292 |
0 |
0 |
0 |
96 |
0 |
52 |
15 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,972 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,913 |
1 |
0 |
0 |
42,400 |
0 |
18,679 |
1,145 |
bash |
11 |
no-host |
configure.util-linux |
2,260,703 |
2 |
0 |
0 |
42,584 |
0 |
17,415 |
1,228 |
dash |
19 |
no-host |
configure.util-linux |
5,325,547 |
14 |
0 |
0 |
39,112 |
0 |
17,017 |
1,204 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,019,440 |
2 |
0 |
0 |
39,120 |
0 |
17,019 |
1,033 |
osh-native |
6 |
no-host |
configure.yash |
255,745 |
0 |
0 |
0 |
4,120 |
0 |
871 |
78 |
bash |
14 |
no-host |
configure.yash |
244,720 |
0 |
0 |
0 |
3,720 |
0 |
865 |
76 |
dash |
22 |
no-host |
configure.yash |
384,097 |
0 |
0 |
0 |
3,728 |
0 |
856 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
259,120 |
0 |
0 |
0 |
3,736 |
0 |
852 |
91 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,684 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host