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 |
458 |
22 |
21 |
24.05 |
1.16 |
bin-true |
no-host |
674 |
540 |
2,279 |
820 |
810 |
3.38 |
1.22 |
configure.cpython |
no-host |
15,075 |
15,100 |
28,731 |
15,306 |
15,433 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,800 |
3,743 |
4,638 |
3,831 |
3,821 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
194 |
49 |
49 |
4.07 |
1.02 |
configure.util-linux |
no-host |
14,075 |
14,944 |
31,309 |
14,373 |
14,344 |
2.22 |
1.02 |
configure.yash |
no-host |
1,817 |
1,769 |
2,456 |
1,839 |
1,832 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
32.17 |
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,542 |
1,102 |
23,396 |
3,188 |
3,096 |
9.20 |
1.25 |
bin-true |
no-host |
104,321 |
66,456 |
780,762 |
126,792 |
126,829 |
7.48 |
1.22 |
configure.cpython |
no-host |
2,214,188 |
2,244,686 |
6,236,209 |
2,222,035 |
2,212,835 |
2.82 |
1.00 |
configure.ocaml |
no-host |
409,933 |
391,658 |
646,423 |
413,262 |
412,508 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,549 |
5,486 |
23,696 |
6,984 |
6,924 |
3.62 |
1.07 |
configure.util-linux |
no-host |
2,103,643 |
2,262,999 |
5,350,598 |
1,999,304 |
1,996,444 |
2.54 |
0.95 |
configure.yash |
no-host |
256,569 |
243,979 |
387,782 |
256,200 |
258,164 |
1.51 |
1.00 |
hello-world |
no-host |
152 |
82 |
3,737 |
348 |
345 |
24.59 |
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,774 |
3,774 |
0 |
695 |
1,851 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.6 |
8.1 |
154,739 |
13,221 |
2,878 |
9,745 |
78,320 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,306 |
1 |
60 |
15.0 |
27.4 |
1,772,721 |
49,855 |
28,588 |
86,398 |
908,072 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,373 |
3 |
60 |
21.3 |
30.3 |
2,703,489 |
29,147 |
65,891 |
109,676 |
1,320,578 |
1,273,235 |
27,391 |
41 |
131,782 |
1 |
configure.ocaml |
no-host |
3,831 |
1 |
2 |
2.6 |
20.6 |
150,095 |
11,052 |
5,222 |
7,532 |
71,605 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,580 |
30,580 |
0 |
1,521 |
14,775 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,839 |
1 |
2 |
2.6 |
24.5 |
139,748 |
8,021 |
6,680 |
6,337 |
70,280 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,323 |
64,531 |
42,741 |
4,572 |
54,520 |
57,231 |
270 |
3 |
85,482 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,773 |
3,773 |
0 |
696 |
1,851 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
810 |
1 |
2 |
2.6 |
7.7 |
154,738 |
13,064 |
2,816 |
9,746 |
78,320 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,433 |
1 |
61 |
14.9 |
27.5 |
1,772,720 |
49,106 |
28,526 |
86,399 |
908,072 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,344 |
3 |
60 |
21.3 |
30.3 |
2,703,489 |
42,742 |
65,829 |
109,678 |
1,320,578 |
1,273,233 |
27,391 |
41 |
131,658 |
1 |
configure.ocaml |
no-host |
3,821 |
1 |
2 |
2.6 |
20.4 |
150,095 |
10,990 |
5,160 |
7,534 |
71,605 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,580 |
30,580 |
0 |
1,523 |
14,775 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,832 |
1 |
2 |
2.6 |
24.4 |
139,748 |
7,959 |
6,618 |
6,339 |
70,280 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,322 |
64,469 |
42,679 |
4,573 |
54,520 |
57,229 |
270 |
3 |
85,358 |
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 |
14 |
5 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
458 |
421 |
41 |
22.2 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
19 |
3 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
674 |
503 |
204 |
2.9 |
bash |
9 |
no-host |
bin-true |
540 |
417 |
133 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,279 |
1,461 |
1,080 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
579 |
256 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
810 |
588 |
235 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,075 |
9,044 |
6,403 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,100 |
9,189 |
6,339 |
27.1 |
dash |
18 |
no-host |
configure.cpython |
28,731 |
17,561 |
13,043 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,306 |
8,845 |
6,725 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,433 |
8,959 |
6,560 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,800 |
1,687 |
1,152 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,743 |
1,644 |
1,120 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,638 |
2,196 |
1,654 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,831 |
1,637 |
1,234 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,821 |
1,670 |
1,188 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
35 |
13 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
22 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
130 |
68 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
31 |
18 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,075 |
8,999 |
5,559 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,944 |
9,109 |
6,332 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,309 |
20,767 |
11,633 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,373 |
8,773 |
5,815 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,344 |
8,618 |
5,919 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,817 |
1,034 |
791 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,769 |
1,033 |
736 |
24.1 |
dash |
22 |
no-host |
configure.yash |
2,456 |
1,541 |
958 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,839 |
1,051 |
792 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,832 |
1,000 |
836 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
25 |
24 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
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,542 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,102 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,396 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,188 |
0 |
0 |
0 |
16 |
0 |
38 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,096 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,321 |
0 |
0 |
0 |
8 |
0 |
1,989 |
48 |
bash |
9 |
no-host |
bin-true |
66,456 |
0 |
0 |
0 |
8 |
0 |
1,987 |
73 |
dash |
17 |
no-host |
bin-true |
780,762 |
0 |
0 |
0 |
8 |
0 |
1,998 |
157 |
osh-cpython |
25 |
no-host |
bin-true |
126,792 |
0 |
0 |
0 |
16 |
0 |
1,990 |
112 |
osh-native |
33 |
no-host |
bin-true |
126,829 |
0 |
0 |
0 |
16 |
0 |
1,998 |
59 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,214,188 |
0 |
0 |
0 |
32,960 |
0 |
14,484 |
1,097 |
bash |
10 |
no-host |
configure.cpython |
2,244,686 |
0 |
0 |
0 |
32,992 |
0 |
14,612 |
1,081 |
dash |
18 |
no-host |
configure.cpython |
6,236,209 |
1 |
0 |
0 |
27,512 |
0 |
13,288 |
1,269 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,222,035 |
0 |
0 |
0 |
27,520 |
0 |
13,236 |
1,120 |
osh-native |
34 |
no-host |
configure.cpython |
2,212,835 |
0 |
0 |
0 |
27,520 |
0 |
13,237 |
1,091 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
409,933 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
228 |
bash |
12 |
no-host |
configure.ocaml |
391,658 |
0 |
0 |
0 |
5,112 |
0 |
1,933 |
139 |
dash |
20 |
no-host |
configure.ocaml |
646,423 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
200 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,262 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
195 |
osh-native |
36 |
no-host |
configure.ocaml |
412,508 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
181 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,549 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,696 |
0 |
0 |
0 |
96 |
0 |
53 |
16 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
46 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,924 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,103,643 |
2 |
0 |
0 |
42,400 |
0 |
18,730 |
955 |
bash |
11 |
no-host |
configure.util-linux |
2,262,999 |
1 |
0 |
0 |
42,584 |
0 |
17,411 |
1,251 |
dash |
19 |
no-host |
configure.util-linux |
5,350,598 |
10 |
0 |
0 |
39,112 |
0 |
17,020 |
1,255 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,304 |
1 |
0 |
0 |
39,120 |
0 |
17,132 |
1,051 |
osh-native |
35 |
no-host |
configure.util-linux |
1,996,444 |
0 |
0 |
0 |
39,128 |
0 |
16,971 |
996 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,569 |
0 |
0 |
0 |
4,120 |
0 |
869 |
116 |
bash |
14 |
no-host |
configure.yash |
243,979 |
0 |
0 |
0 |
3,720 |
0 |
866 |
94 |
dash |
22 |
no-host |
configure.yash |
387,782 |
0 |
0 |
0 |
3,728 |
0 |
853 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
256,200 |
0 |
0 |
0 |
3,736 |
0 |
850 |
85 |
osh-native |
38 |
no-host |
configure.yash |
258,164 |
0 |
0 |
0 |
3,736 |
0 |
852 |
56 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
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,737 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host