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 |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
467 |
22 |
21 |
24.60 |
1.18 |
bin-true |
no-host |
672 |
554 |
2,299 |
824 |
816 |
3.42 |
1.23 |
configure.cpython |
no-host |
15,378 |
15,535 |
29,319 |
15,593 |
15,597 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,870 |
3,803 |
4,764 |
3,898 |
3,876 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
205 |
49 |
49 |
4.30 |
1.03 |
configure.util-linux |
no-host |
14,379 |
15,220 |
32,037 |
14,664 |
14,595 |
2.23 |
1.02 |
configure.yash |
no-host |
1,850 |
1,803 |
2,503 |
1,858 |
1,856 |
1.35 |
1.00 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
3 |
33.41 |
1.97 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,534 |
1,101 |
23,205 |
3,174 |
3,133 |
9.16 |
1.25 |
bin-true |
no-host |
107,333 |
66,499 |
769,339 |
127,818 |
124,795 |
7.17 |
1.19 |
configure.cpython |
no-host |
2,217,193 |
2,242,356 |
6,230,183 |
2,229,034 |
2,204,649 |
2.81 |
1.01 |
configure.ocaml |
no-host |
410,655 |
391,254 |
648,361 |
413,613 |
412,540 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,563 |
5,459 |
23,732 |
7,002 |
6,937 |
3.62 |
1.07 |
configure.util-linux |
no-host |
2,104,189 |
2,270,574 |
5,368,143 |
2,000,180 |
1,986,666 |
2.55 |
0.95 |
configure.yash |
no-host |
256,138 |
244,833 |
387,463 |
258,156 |
257,976 |
1.51 |
1.01 |
hello-world |
no-host |
146 |
81 |
3,737 |
353 |
343 |
25.60 |
2.42 |
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.2 |
6.4 |
3,770 |
3,770 |
0 |
695 |
1,849 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.6 |
8.1 |
154,735 |
13,217 |
2,874 |
9,745 |
78,318 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,593 |
1 |
62 |
15.0 |
27.3 |
1,772,717 |
49,851 |
28,584 |
86,398 |
908,070 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,664 |
3 |
62 |
21.3 |
30.3 |
2,703,485 |
42,055 |
65,867 |
109,676 |
1,320,576 |
1,273,233 |
27,391 |
41 |
131,734 |
1 |
configure.ocaml |
no-host |
3,898 |
1 |
2 |
2.6 |
20.6 |
150,091 |
11,048 |
5,218 |
7,532 |
71,603 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,576 |
30,576 |
0 |
1,521 |
14,773 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,858 |
1 |
2 |
2.6 |
24.5 |
139,744 |
8,017 |
6,676 |
6,337 |
70,278 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,319 |
64,527 |
42,737 |
4,572 |
54,518 |
57,229 |
270 |
3 |
85,474 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,769 |
3,769 |
0 |
696 |
1,849 |
1,224 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.6 |
7.7 |
154,734 |
13,060 |
2,812 |
9,746 |
78,318 |
66,670 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,597 |
1 |
64 |
14.9 |
27.4 |
1,772,716 |
49,102 |
28,522 |
86,399 |
908,070 |
778,247 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,595 |
3 |
62 |
21.3 |
30.0 |
2,703,485 |
42,738 |
65,825 |
109,678 |
1,320,576 |
1,273,231 |
27,391 |
41 |
131,650 |
1 |
configure.ocaml |
no-host |
3,876 |
1 |
2 |
2.6 |
20.4 |
150,091 |
10,986 |
5,156 |
7,534 |
71,603 |
70,954 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,576 |
30,576 |
0 |
1,523 |
14,773 |
14,280 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,856 |
1 |
2 |
2.6 |
24.2 |
139,744 |
7,955 |
6,614 |
6,339 |
70,278 |
63,127 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,318 |
64,465 |
42,675 |
4,573 |
54,518 |
57,227 |
270 |
3 |
85,350 |
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 |
17 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
467 |
421 |
49 |
22.2 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
16 |
5 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
672 |
520 |
186 |
2.9 |
bash |
9 |
no-host |
bin-true |
554 |
427 |
136 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,299 |
1,495 |
1,083 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
583 |
254 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
816 |
582 |
248 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,378 |
9,126 |
6,625 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,535 |
9,311 |
6,626 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,319 |
17,858 |
13,391 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,593 |
9,035 |
6,802 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,597 |
9,239 |
6,506 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,870 |
1,736 |
1,175 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,803 |
1,592 |
1,228 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,764 |
2,298 |
1,680 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,898 |
1,702 |
1,234 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,876 |
1,716 |
1,195 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
26 |
23 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
31 |
11 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
205 |
162 |
47 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
27 |
23 |
19.1 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
27 |
23 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,379 |
8,933 |
5,904 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,220 |
9,353 |
6,355 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,037 |
21,373 |
11,767 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,664 |
8,581 |
6,257 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,595 |
8,918 |
5,849 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,850 |
1,089 |
770 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,803 |
1,062 |
742 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,503 |
1,571 |
978 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,858 |
1,116 |
746 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,856 |
1,019 |
841 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
33 |
16 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
5.9 |
osh-native-souffle |
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,534 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,205 |
0 |
0 |
0 |
8 |
0 |
45 |
4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,174 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,133 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,333 |
0 |
0 |
0 |
8 |
0 |
1,993 |
98 |
bash |
9 |
no-host |
bin-true |
66,499 |
0 |
0 |
0 |
8 |
0 |
1,990 |
47 |
dash |
17 |
no-host |
bin-true |
769,339 |
0 |
0 |
0 |
8 |
0 |
1,997 |
236 |
osh-cpython |
25 |
no-host |
bin-true |
127,818 |
0 |
0 |
0 |
16 |
0 |
1,990 |
147 |
osh-native |
33 |
no-host |
bin-true |
124,795 |
0 |
0 |
0 |
16 |
0 |
1,988 |
140 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,217,193 |
0 |
0 |
0 |
32,928 |
0 |
14,535 |
1,150 |
bash |
10 |
no-host |
configure.cpython |
2,242,356 |
1 |
0 |
0 |
32,992 |
0 |
14,521 |
1,129 |
dash |
18 |
no-host |
configure.cpython |
6,230,183 |
0 |
0 |
0 |
27,512 |
0 |
13,272 |
1,278 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,034 |
0 |
0 |
0 |
27,520 |
0 |
13,176 |
1,040 |
osh-native |
34 |
no-host |
configure.cpython |
2,204,649 |
0 |
0 |
0 |
27,520 |
0 |
13,177 |
1,129 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,655 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
171 |
bash |
12 |
no-host |
configure.ocaml |
391,254 |
0 |
0 |
0 |
5,112 |
0 |
1,896 |
216 |
dash |
20 |
no-host |
configure.ocaml |
648,361 |
0 |
0 |
0 |
5,112 |
0 |
1,850 |
187 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,613 |
0 |
0 |
0 |
5,120 |
0 |
1,919 |
255 |
osh-native |
36 |
no-host |
configure.ocaml |
412,540 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
140 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,563 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,459 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,732 |
0 |
0 |
0 |
96 |
0 |
52 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,002 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,937 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,104,189 |
3 |
0 |
0 |
42,400 |
0 |
18,625 |
1,049 |
bash |
11 |
no-host |
configure.util-linux |
2,270,574 |
0 |
0 |
0 |
42,592 |
0 |
17,450 |
1,113 |
dash |
19 |
no-host |
configure.util-linux |
5,368,143 |
7 |
0 |
0 |
39,136 |
0 |
16,931 |
1,393 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,000,180 |
0 |
0 |
0 |
39,120 |
0 |
17,012 |
971 |
osh-native |
35 |
no-host |
configure.util-linux |
1,986,666 |
2 |
0 |
0 |
39,128 |
0 |
16,969 |
1,063 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,138 |
0 |
0 |
0 |
4,120 |
0 |
869 |
83 |
bash |
14 |
no-host |
configure.yash |
244,833 |
0 |
0 |
0 |
3,720 |
0 |
872 |
77 |
dash |
22 |
no-host |
configure.yash |
387,463 |
0 |
0 |
0 |
3,728 |
0 |
849 |
108 |
osh-cpython |
30 |
no-host |
configure.yash |
258,156 |
0 |
0 |
0 |
3,736 |
0 |
847 |
84 |
osh-native |
38 |
no-host |
configure.yash |
257,976 |
0 |
0 |
0 |
3,736 |
0 |
851 |
82 |
osh-native-souffle |
0 |
no-host |
hello-world |
146 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,737 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
353 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host