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 |
20 |
9 |
448 |
22 |
21 |
22.67 |
1.10 |
bin-true |
no-host |
673 |
539 |
2,236 |
815 |
806 |
3.32 |
1.21 |
configure.cpython |
no-host |
14,820 |
14,932 |
28,416 |
15,107 |
15,146 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,785 |
3,720 |
4,594 |
3,858 |
3,777 |
1.21 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
194 |
49 |
48 |
4.07 |
1.03 |
configure.util-linux |
no-host |
13,859 |
14,900 |
30,870 |
14,487 |
14,156 |
2.23 |
1.05 |
configure.yash |
no-host |
1,798 |
1,762 |
2,420 |
1,820 |
1,805 |
1.35 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
3 |
31.95 |
1.87 |
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,515 |
1,094 |
23,250 |
3,144 |
3,034 |
9.24 |
1.25 |
bin-true |
no-host |
103,368 |
66,452 |
771,583 |
126,762 |
126,795 |
7.46 |
1.23 |
configure.cpython |
no-host |
2,216,009 |
2,239,120 |
6,215,755 |
2,233,674 |
2,213,259 |
2.80 |
1.01 |
configure.ocaml |
no-host |
411,192 |
391,417 |
647,091 |
413,557 |
412,769 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,586 |
5,481 |
23,606 |
6,962 |
6,929 |
3.58 |
1.06 |
configure.util-linux |
no-host |
2,105,775 |
2,265,518 |
5,350,803 |
2,001,958 |
1,997,567 |
2.54 |
0.95 |
configure.yash |
no-host |
255,710 |
245,064 |
388,894 |
257,346 |
257,335 |
1.52 |
1.01 |
hello-world |
no-host |
154 |
82 |
3,740 |
352 |
345 |
24.29 |
2.29 |
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 |
815 |
1 |
2 |
2.6 |
8.1 |
154,740 |
13,220 |
2,877 |
9,746 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,107 |
1 |
60 |
15.0 |
27.5 |
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,487 |
4 |
62 |
21.3 |
30.1 |
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,858 |
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,820 |
1 |
2 |
2.6 |
24.2 |
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 |
8.9 |
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 |
806 |
1 |
2 |
2.6 |
7.6 |
154,739 |
13,063 |
2,815 |
9,747 |
78,321 |
66,671 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,146 |
1 |
61 |
14.9 |
27.5 |
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,156 |
3 |
60 |
21.3 |
30.0 |
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,777 |
0 |
2 |
2.6 |
20.4 |
150,096 |
10,989 |
5,159 |
7,535 |
71,606 |
70,955 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,524 |
14,776 |
14,281 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,805 |
1 |
2 |
2.6 |
24.2 |
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.7 |
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 |
20 |
11 |
10 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
448 |
399 |
52 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
16 |
5 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
673 |
490 |
212 |
3.0 |
bash |
9 |
no-host |
bin-true |
539 |
414 |
135 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,236 |
1,422 |
1,078 |
17.8 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
586 |
244 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
806 |
583 |
239 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,820 |
8,982 |
6,238 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,932 |
9,064 |
6,288 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,416 |
17,447 |
12,839 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,107 |
8,961 |
6,414 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,146 |
8,959 |
6,339 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,785 |
1,561 |
1,256 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,720 |
1,589 |
1,153 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,594 |
2,263 |
1,538 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,858 |
1,631 |
1,268 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,777 |
1,627 |
1,188 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
35 |
13 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
22 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
127 |
70 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
36 |
13 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
29 |
20 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,859 |
8,807 |
5,528 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,900 |
9,202 |
6,200 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,870 |
20,429 |
11,535 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,487 |
8,814 |
5,874 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,156 |
8,783 |
5,563 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,798 |
1,028 |
779 |
25.4 |
bash |
14 |
no-host |
configure.yash |
1,762 |
1,024 |
740 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,420 |
1,519 |
942 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,820 |
986 |
838 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,805 |
1,019 |
789 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.7 |
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,515 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,250 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,144 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,034 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
103,368 |
0 |
0 |
0 |
8 |
0 |
1,986 |
64 |
bash |
9 |
no-host |
bin-true |
66,452 |
0 |
0 |
0 |
8 |
0 |
1,985 |
35 |
dash |
17 |
no-host |
bin-true |
771,583 |
0 |
0 |
0 |
8 |
0 |
1,993 |
145 |
osh-cpython |
25 |
no-host |
bin-true |
126,762 |
0 |
0 |
0 |
16 |
0 |
1,992 |
84 |
osh-native |
33 |
no-host |
bin-true |
126,795 |
0 |
0 |
0 |
16 |
0 |
1,996 |
57 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,216,009 |
0 |
0 |
0 |
32,928 |
0 |
14,570 |
1,484 |
bash |
10 |
no-host |
configure.cpython |
2,239,120 |
0 |
0 |
0 |
32,992 |
0 |
14,649 |
1,316 |
dash |
18 |
no-host |
configure.cpython |
6,215,755 |
0 |
0 |
0 |
27,512 |
0 |
13,281 |
1,205 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,674 |
0 |
0 |
0 |
27,520 |
0 |
13,238 |
1,113 |
osh-native |
34 |
no-host |
configure.cpython |
2,213,259 |
0 |
0 |
0 |
27,520 |
0 |
13,258 |
1,185 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
411,192 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
180 |
bash |
12 |
no-host |
configure.ocaml |
391,417 |
0 |
0 |
0 |
5,112 |
0 |
1,945 |
155 |
dash |
20 |
no-host |
configure.ocaml |
647,091 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
207 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,557 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
156 |
osh-native |
36 |
no-host |
configure.ocaml |
412,769 |
0 |
0 |
0 |
5,120 |
0 |
1,921 |
154 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,586 |
0 |
0 |
0 |
104 |
0 |
48 |
12 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
46 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,606 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,962 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,929 |
0 |
0 |
0 |
104 |
0 |
46 |
4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,105,775 |
2 |
0 |
0 |
42,400 |
0 |
18,519 |
1,042 |
bash |
11 |
no-host |
configure.util-linux |
2,265,518 |
1 |
0 |
0 |
42,584 |
0 |
17,486 |
1,089 |
dash |
19 |
no-host |
configure.util-linux |
5,350,803 |
16 |
0 |
0 |
39,112 |
0 |
16,988 |
1,371 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,001,958 |
1 |
0 |
0 |
39,128 |
0 |
16,949 |
1,005 |
osh-native |
35 |
no-host |
configure.util-linux |
1,997,567 |
0 |
0 |
0 |
39,136 |
0 |
16,988 |
1,046 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,710 |
0 |
0 |
0 |
4,120 |
0 |
871 |
96 |
bash |
14 |
no-host |
configure.yash |
245,064 |
0 |
0 |
0 |
3,720 |
0 |
865 |
159 |
dash |
22 |
no-host |
configure.yash |
388,894 |
0 |
0 |
0 |
3,728 |
0 |
847 |
136 |
osh-cpython |
30 |
no-host |
configure.yash |
257,346 |
0 |
0 |
0 |
3,736 |
0 |
851 |
75 |
osh-native |
38 |
no-host |
configure.yash |
257,335 |
0 |
0 |
0 |
3,736 |
0 |
851 |
92 |
osh-native-souffle |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,740 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
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