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 |
9 |
457 |
22 |
21 |
23.88 |
1.16 |
bin-true |
no-host |
671 |
540 |
2,270 |
816 |
817 |
3.38 |
1.21 |
configure.cpython |
no-host |
14,789 |
14,863 |
28,341 |
15,194 |
15,419 |
1.92 |
1.03 |
configure.ocaml |
no-host |
3,763 |
3,745 |
4,648 |
3,866 |
3,838 |
1.24 |
1.03 |
configure.tcc |
no-host |
55 |
43 |
194 |
49 |
49 |
3.52 |
0.90 |
configure.util-linux |
no-host |
13,859 |
14,770 |
30,855 |
14,445 |
14,362 |
2.23 |
1.04 |
configure.yash |
no-host |
1,790 |
1,776 |
2,452 |
1,854 |
1,843 |
1.37 |
1.04 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
3 |
33.17 |
1.92 |
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,562 |
1,108 |
23,365 |
3,151 |
3,049 |
9.12 |
1.23 |
bin-true |
no-host |
106,346 |
66,439 |
775,672 |
124,848 |
128,799 |
7.29 |
1.17 |
configure.cpython |
no-host |
2,218,187 |
2,243,575 |
6,242,463 |
2,239,543 |
2,220,005 |
2.81 |
1.01 |
configure.ocaml |
no-host |
410,227 |
391,142 |
647,565 |
413,901 |
412,572 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,576 |
5,500 |
23,689 |
6,954 |
6,939 |
3.60 |
1.06 |
configure.util-linux |
no-host |
2,100,039 |
2,265,723 |
5,368,783 |
2,004,488 |
1,991,653 |
2.56 |
0.95 |
configure.yash |
no-host |
256,655 |
244,101 |
388,017 |
258,311 |
257,691 |
1.51 |
1.01 |
hello-world |
no-host |
149 |
80 |
3,740 |
354 |
345 |
25.10 |
2.38 |
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.3 |
3,775 |
3,775 |
0 |
696 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.6 |
8.3 |
154,740 |
13,220 |
2,877 |
9,746 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,194 |
1 |
59 |
15.0 |
27.4 |
1,772,722 |
49,854 |
28,587 |
86,399 |
908,073 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,445 |
3 |
60 |
21.3 |
30.3 |
2,703,490 |
29,146 |
65,890 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,866 |
1 |
2 |
2.6 |
20.6 |
150,096 |
11,051 |
5,221 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,854 |
1 |
2 |
2.6 |
24.4 |
139,749 |
8,020 |
6,679 |
6,338 |
70,281 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,324 |
64,530 |
42,740 |
4,573 |
54,521 |
57,230 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,774 |
3,774 |
0 |
697 |
1,852 |
1,225 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.6 |
7.9 |
154,739 |
13,063 |
2,815 |
9,747 |
78,321 |
66,671 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,419 |
1 |
60 |
14.9 |
27.3 |
1,772,721 |
49,105 |
28,525 |
86,400 |
908,073 |
778,248 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,362 |
3 |
61 |
21.3 |
30.1 |
2,703,490 |
42,741 |
65,828 |
109,679 |
1,320,579 |
1,273,232 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,838 |
1 |
2 |
2.6 |
20.6 |
150,096 |
10,989 |
5,159 |
7,535 |
71,606 |
70,955 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,581 |
30,581 |
0 |
1,524 |
14,776 |
14,281 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,843 |
1 |
2 |
2.6 |
24.4 |
139,749 |
7,958 |
6,617 |
6,340 |
70,281 |
63,128 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.5 |
116,323 |
64,468 |
42,678 |
4,574 |
54,521 |
57,228 |
270 |
3 |
85,356 |
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.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
457 |
393 |
67 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
7 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
671 |
492 |
209 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
422 |
131 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,270 |
1,483 |
1,061 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
572 |
256 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
817 |
572 |
258 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,789 |
8,814 |
6,367 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,863 |
9,080 |
6,198 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,341 |
17,146 |
13,062 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,194 |
8,936 |
6,533 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,419 |
8,975 |
6,580 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,763 |
1,622 |
1,182 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,745 |
1,554 |
1,211 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,648 |
2,211 |
1,651 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,866 |
1,689 |
1,217 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,838 |
1,715 |
1,159 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
55 |
28 |
27 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
35 |
8 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
137 |
60 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
26 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
29 |
21 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,859 |
8,830 |
5,503 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,770 |
9,180 |
6,088 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,855 |
20,666 |
11,277 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,445 |
8,608 |
6,038 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,362 |
8,685 |
5,864 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,790 |
1,002 |
796 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,776 |
1,015 |
763 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,452 |
1,497 |
1,000 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,854 |
1,040 |
818 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,843 |
1,065 |
782 |
24.4 |
osh-native-souffle |
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 |
33 |
16 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,562 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,108 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,365 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,151 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,049 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,346 |
0 |
0 |
0 |
8 |
0 |
1,991 |
107 |
bash |
9 |
no-host |
bin-true |
66,439 |
0 |
0 |
0 |
8 |
0 |
1,982 |
104 |
dash |
17 |
no-host |
bin-true |
775,672 |
0 |
0 |
0 |
8 |
0 |
1,999 |
160 |
osh-cpython |
25 |
no-host |
bin-true |
124,848 |
0 |
0 |
0 |
16 |
0 |
1,994 |
255 |
osh-native |
33 |
no-host |
bin-true |
128,799 |
0 |
0 |
0 |
16 |
0 |
1,990 |
68 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,218,187 |
0 |
0 |
0 |
32,928 |
0 |
14,566 |
1,073 |
bash |
10 |
no-host |
configure.cpython |
2,243,575 |
0 |
0 |
0 |
32,992 |
0 |
14,640 |
1,307 |
dash |
18 |
no-host |
configure.cpython |
6,242,463 |
0 |
0 |
0 |
27,512 |
0 |
13,264 |
1,322 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,239,543 |
0 |
0 |
0 |
27,520 |
0 |
13,311 |
1,017 |
osh-native |
34 |
no-host |
configure.cpython |
2,220,005 |
0 |
0 |
0 |
27,520 |
0 |
13,241 |
1,137 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,227 |
0 |
0 |
0 |
5,120 |
0 |
1,940 |
191 |
bash |
12 |
no-host |
configure.ocaml |
391,142 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
161 |
dash |
20 |
no-host |
configure.ocaml |
647,565 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
187 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,901 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
151 |
osh-native |
36 |
no-host |
configure.ocaml |
412,572 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
156 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,576 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,500 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,689 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,954 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,939 |
0 |
0 |
0 |
104 |
0 |
47 |
11 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,100,039 |
0 |
0 |
0 |
42,400 |
0 |
18,391 |
1,276 |
bash |
11 |
no-host |
configure.util-linux |
2,265,723 |
1 |
0 |
0 |
42,584 |
0 |
17,417 |
990 |
dash |
19 |
no-host |
configure.util-linux |
5,368,783 |
6 |
0 |
0 |
39,112 |
0 |
16,965 |
1,092 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,004,488 |
0 |
0 |
0 |
39,120 |
0 |
16,940 |
1,021 |
osh-native |
35 |
no-host |
configure.util-linux |
1,991,653 |
0 |
0 |
0 |
39,128 |
0 |
16,975 |
1,004 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,655 |
0 |
0 |
0 |
4,120 |
0 |
872 |
78 |
bash |
14 |
no-host |
configure.yash |
244,101 |
0 |
0 |
0 |
3,720 |
0 |
867 |
84 |
dash |
22 |
no-host |
configure.yash |
388,017 |
0 |
0 |
0 |
3,728 |
0 |
851 |
87 |
osh-cpython |
30 |
no-host |
configure.yash |
258,311 |
0 |
0 |
0 |
3,736 |
0 |
845 |
91 |
osh-native |
38 |
no-host |
configure.yash |
257,691 |
0 |
0 |
0 |
3,736 |
0 |
847 |
80 |
osh-native-souffle |
0 |
no-host |
hello-world |
149 |
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,740 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
354 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host