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 |
460 |
23 |
21 |
23.93 |
1.17 |
bin-true |
no-host |
680 |
541 |
2,318 |
814 |
805 |
3.41 |
1.20 |
configure.cpython |
no-host |
15,243 |
15,282 |
29,092 |
15,493 |
15,614 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,858 |
3,770 |
4,718 |
3,868 |
3,872 |
1.22 |
1.00 |
configure.tcc |
no-host |
49 |
42 |
213 |
50 |
50 |
4.33 |
1.02 |
configure.util-linux |
no-host |
14,186 |
15,021 |
31,692 |
14,636 |
14,499 |
2.23 |
1.03 |
configure.yash |
no-host |
1,842 |
1,803 |
2,480 |
1,846 |
1,860 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
58 |
3 |
3 |
37.28 |
1.84 |
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,565 |
1,113 |
23,935 |
3,203 |
3,079 |
9.33 |
1.25 |
bin-true |
no-host |
107,268 |
66,455 |
793,476 |
126,284 |
123,192 |
7.40 |
1.18 |
configure.cpython |
no-host |
2,223,605 |
2,243,444 |
6,279,756 |
2,218,845 |
2,208,247 |
2.82 |
1.00 |
configure.ocaml |
no-host |
410,731 |
391,274 |
649,793 |
413,308 |
411,936 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,549 |
5,489 |
24,474 |
6,934 |
6,934 |
3.74 |
1.06 |
configure.util-linux |
no-host |
2,104,715 |
2,258,653 |
5,416,963 |
1,995,017 |
1,982,132 |
2.57 |
0.95 |
configure.yash |
no-host |
256,130 |
244,510 |
390,807 |
257,925 |
257,240 |
1.53 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,990 |
349 |
344 |
26.08 |
2.28 |
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,780 |
3,780 |
0 |
695 |
1,856 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
1 |
2 |
2.6 |
8.0 |
153,744 |
12,264 |
2,884 |
8,744 |
78,325 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,493 |
1 |
63 |
14.9 |
27.4 |
1,771,745 |
49,904 |
28,593 |
85,416 |
908,077 |
778,252 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,636 |
3 |
62 |
21.2 |
30.3 |
2,702,511 |
29,749 |
65,877 |
108,692 |
1,320,583 |
1,273,236 |
32,239 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,868 |
1 |
2 |
2.6 |
20.6 |
150,078 |
11,128 |
5,223 |
7,509 |
71,610 |
70,959 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,584 |
30,584 |
0 |
1,519 |
14,780 |
14,285 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,846 |
1 |
2 |
2.5 |
24.4 |
139,404 |
8,024 |
6,686 |
5,987 |
70,285 |
63,132 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,290 |
64,537 |
42,747 |
4,533 |
54,525 |
57,232 |
277 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,779 |
3,779 |
0 |
696 |
1,856 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
805 |
1 |
2 |
2.6 |
7.6 |
153,743 |
12,053 |
2,822 |
8,745 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,614 |
1 |
65 |
14.8 |
27.3 |
1,771,744 |
49,106 |
28,531 |
85,417 |
908,077 |
778,250 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,499 |
3 |
62 |
21.2 |
30.3 |
2,702,511 |
29,763 |
65,835 |
108,694 |
1,320,583 |
1,273,234 |
32,239 |
41 |
131,670 |
1 |
configure.ocaml |
no-host |
3,872 |
1 |
2 |
2.6 |
20.6 |
150,078 |
11,066 |
5,161 |
7,511 |
71,610 |
70,957 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,584 |
30,584 |
0 |
1,521 |
14,780 |
14,283 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,860 |
1 |
2 |
2.5 |
24.5 |
139,404 |
7,962 |
6,624 |
5,989 |
70,285 |
63,130 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,289 |
64,475 |
42,685 |
4,534 |
54,525 |
57,230 |
277 |
3 |
85,370 |
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 |
8 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
460 |
402 |
61 |
23.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
12 |
11 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
680 |
515 |
200 |
2.9 |
bash |
9 |
no-host |
bin-true |
541 |
411 |
142 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,318 |
1,464 |
1,113 |
18.7 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
566 |
262 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
805 |
560 |
259 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,243 |
9,250 |
6,394 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,282 |
9,179 |
6,531 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,092 |
17,905 |
13,070 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,493 |
9,176 |
6,586 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,614 |
9,121 |
6,676 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,858 |
1,701 |
1,199 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,770 |
1,577 |
1,214 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,718 |
2,352 |
1,578 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,868 |
1,716 |
1,192 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,872 |
1,714 |
1,192 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
37 |
5 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
213 |
160 |
57 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
31 |
20 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
26 |
24 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,186 |
9,014 |
5,656 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,021 |
9,285 |
6,246 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,692 |
21,320 |
11,461 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,636 |
8,824 |
6,014 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,499 |
8,779 |
5,910 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,842 |
1,081 |
770 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,803 |
1,091 |
715 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,480 |
1,532 |
991 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,846 |
1,027 |
823 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,860 |
1,089 |
775 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
58 |
29 |
28 |
18.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.8 |
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,565 |
0 |
0 |
0 |
16 |
0 |
40 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,113 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,935 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,203 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,079 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,268 |
0 |
0 |
0 |
8 |
0 |
1,992 |
62 |
bash |
9 |
no-host |
bin-true |
66,455 |
0 |
0 |
0 |
8 |
0 |
1,987 |
66 |
dash |
17 |
no-host |
bin-true |
793,476 |
0 |
0 |
0 |
8 |
0 |
1,998 |
68 |
osh-cpython |
25 |
no-host |
bin-true |
126,284 |
0 |
0 |
0 |
16 |
0 |
1,994 |
133 |
osh-native |
33 |
no-host |
bin-true |
123,192 |
0 |
0 |
0 |
16 |
0 |
1,995 |
115 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,223,605 |
0 |
0 |
0 |
32,928 |
0 |
14,541 |
1,081 |
bash |
10 |
no-host |
configure.cpython |
2,243,444 |
0 |
0 |
0 |
32,992 |
0 |
14,629 |
1,116 |
dash |
18 |
no-host |
configure.cpython |
6,279,756 |
0 |
0 |
0 |
27,512 |
0 |
13,259 |
1,119 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,845 |
0 |
0 |
0 |
27,520 |
0 |
13,306 |
968 |
osh-native |
34 |
no-host |
configure.cpython |
2,208,247 |
0 |
0 |
0 |
27,520 |
0 |
13,231 |
984 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,731 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
181 |
bash |
12 |
no-host |
configure.ocaml |
391,274 |
0 |
0 |
0 |
5,112 |
0 |
1,930 |
129 |
dash |
20 |
no-host |
configure.ocaml |
649,793 |
1 |
0 |
0 |
5,112 |
0 |
1,858 |
167 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,308 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
176 |
osh-native |
36 |
no-host |
configure.ocaml |
411,936 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
160 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,549 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
24,474 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,934 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,934 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,104,715 |
2 |
0 |
0 |
42,400 |
0 |
18,689 |
1,114 |
bash |
11 |
no-host |
configure.util-linux |
2,258,653 |
2 |
0 |
0 |
42,584 |
0 |
17,530 |
1,027 |
dash |
19 |
no-host |
configure.util-linux |
5,416,963 |
8 |
0 |
0 |
39,112 |
0 |
17,174 |
1,155 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,995,017 |
0 |
0 |
0 |
39,120 |
0 |
16,973 |
1,119 |
osh-native |
35 |
no-host |
configure.util-linux |
1,982,132 |
1 |
0 |
0 |
39,136 |
0 |
16,955 |
984 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,130 |
0 |
0 |
0 |
4,120 |
0 |
868 |
79 |
bash |
14 |
no-host |
configure.yash |
244,510 |
0 |
0 |
0 |
3,720 |
0 |
867 |
82 |
dash |
22 |
no-host |
configure.yash |
390,807 |
0 |
0 |
0 |
3,728 |
0 |
852 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
257,925 |
0 |
0 |
0 |
3,736 |
0 |
851 |
87 |
osh-native |
38 |
no-host |
configure.yash |
257,240 |
0 |
0 |
0 |
3,736 |
0 |
850 |
73 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
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,990 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host