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 |
10 |
463 |
23 |
21 |
23.72 |
1.18 |
bin-true |
no-host |
680 |
549 |
2,308 |
823 |
822 |
3.39 |
1.21 |
configure.cpython |
no-host |
15,542 |
15,626 |
29,644 |
15,614 |
15,839 |
1.91 |
1.00 |
configure.ocaml |
no-host |
3,902 |
3,847 |
4,731 |
3,939 |
3,914 |
1.21 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
196 |
49 |
49 |
4.04 |
1.02 |
configure.util-linux |
no-host |
14,549 |
15,520 |
32,487 |
14,956 |
14,844 |
2.23 |
1.03 |
configure.yash |
no-host |
1,878 |
1,811 |
2,532 |
1,887 |
1,881 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
3 |
32.71 |
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,537 |
1,109 |
23,304 |
3,174 |
3,068 |
9.19 |
1.25 |
bin-true |
no-host |
107,409 |
66,476 |
764,910 |
126,854 |
123,801 |
7.12 |
1.18 |
configure.cpython |
no-host |
2,220,393 |
2,244,571 |
6,211,180 |
2,229,776 |
2,210,080 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,754 |
391,103 |
644,966 |
413,514 |
412,675 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,556 |
5,477 |
23,687 |
6,961 |
6,936 |
3.61 |
1.06 |
configure.util-linux |
no-host |
2,102,401 |
2,257,849 |
5,357,614 |
1,999,463 |
1,996,056 |
2.55 |
0.95 |
configure.yash |
no-host |
256,682 |
244,635 |
387,818 |
257,758 |
258,202 |
1.51 |
1.00 |
hello-world |
no-host |
155 |
82 |
3,735 |
349 |
345 |
24.10 |
2.25 |
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,773 |
3,773 |
0 |
695 |
1,850 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
823 |
1 |
2 |
2.6 |
7.9 |
154,738 |
13,220 |
2,877 |
9,745 |
78,319 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,614 |
1 |
63 |
15.0 |
27.4 |
1,772,720 |
49,854 |
28,587 |
86,398 |
908,071 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,956 |
3 |
64 |
21.3 |
30.3 |
2,703,488 |
29,745 |
65,870 |
109,676 |
1,320,577 |
1,273,235 |
27,391 |
41 |
131,740 |
1 |
configure.ocaml |
no-host |
3,939 |
1 |
2 |
2.6 |
20.4 |
150,094 |
11,051 |
5,221 |
7,532 |
71,604 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,579 |
30,579 |
0 |
1,521 |
14,774 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,887 |
1 |
2 |
2.6 |
24.4 |
139,747 |
8,020 |
6,679 |
6,337 |
70,279 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.2 |
116,322 |
64,530 |
42,740 |
4,572 |
54,519 |
57,231 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,772 |
3,772 |
0 |
696 |
1,850 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
822 |
1 |
2 |
2.6 |
7.6 |
154,737 |
13,063 |
2,815 |
9,746 |
78,319 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,839 |
2 |
63 |
14.9 |
27.3 |
1,772,719 |
49,105 |
28,525 |
86,399 |
908,071 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,844 |
3 |
65 |
21.3 |
30.0 |
2,703,488 |
42,741 |
65,808 |
109,678 |
1,320,577 |
1,273,233 |
27,391 |
41 |
131,616 |
1 |
configure.ocaml |
no-host |
3,914 |
1 |
2 |
2.6 |
20.6 |
150,094 |
10,989 |
5,159 |
7,534 |
71,604 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,579 |
30,579 |
0 |
1,523 |
14,774 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,881 |
1 |
2 |
2.6 |
24.5 |
139,747 |
7,958 |
6,617 |
6,339 |
70,279 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.5 |
116,321 |
64,468 |
42,678 |
4,573 |
54,519 |
57,229 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
463 |
419 |
47 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
19 |
5 |
9.2 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
21 |
0 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
680 |
531 |
179 |
2.9 |
bash |
9 |
no-host |
bin-true |
549 |
410 |
147 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,308 |
1,511 |
1,070 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
823 |
567 |
272 |
7.9 |
osh-native |
33 |
no-host |
bin-true |
822 |
580 |
257 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,542 |
9,344 |
6,545 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,626 |
9,380 |
6,624 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,644 |
17,909 |
13,677 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,614 |
9,100 |
6,754 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,839 |
9,241 |
6,665 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,902 |
1,761 |
1,167 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,847 |
1,651 |
1,211 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,731 |
2,317 |
1,627 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,939 |
1,613 |
1,366 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,914 |
1,682 |
1,269 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
35 |
14 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
18 |
24 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
196 |
127 |
72 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
35 |
15 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,549 |
9,065 |
5,912 |
29.9 |
bash |
11 |
no-host |
configure.util-linux |
15,520 |
9,352 |
6,596 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,487 |
21,366 |
12,232 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,956 |
8,933 |
6,194 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,844 |
8,925 |
6,095 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,878 |
1,010 |
875 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,811 |
1,060 |
754 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,532 |
1,469 |
1,106 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,887 |
1,077 |
813 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,881 |
1,078 |
807 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
25 |
25 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
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,537 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,109 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,304 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,174 |
0 |
0 |
0 |
16 |
0 |
39 |
6 |
osh-native |
39 |
no-host |
abuild-print-help |
3,068 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,409 |
0 |
0 |
0 |
8 |
0 |
1,994 |
38 |
bash |
9 |
no-host |
bin-true |
66,476 |
0 |
0 |
0 |
8 |
0 |
1,983 |
31 |
dash |
17 |
no-host |
bin-true |
764,910 |
0 |
0 |
0 |
8 |
0 |
2,001 |
450 |
osh-cpython |
25 |
no-host |
bin-true |
126,854 |
0 |
0 |
0 |
16 |
0 |
1,988 |
77 |
osh-native |
33 |
no-host |
bin-true |
123,801 |
0 |
0 |
0 |
16 |
0 |
1,993 |
249 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,220,393 |
1 |
0 |
0 |
32,928 |
0 |
14,503 |
1,116 |
bash |
10 |
no-host |
configure.cpython |
2,244,571 |
0 |
0 |
0 |
32,992 |
0 |
14,717 |
1,008 |
dash |
18 |
no-host |
configure.cpython |
6,211,180 |
0 |
0 |
0 |
27,512 |
0 |
13,229 |
1,213 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,776 |
0 |
0 |
0 |
27,520 |
0 |
13,242 |
841 |
osh-native |
34 |
no-host |
configure.cpython |
2,210,080 |
0 |
0 |
0 |
27,520 |
0 |
13,309 |
1,034 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,754 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
162 |
bash |
12 |
no-host |
configure.ocaml |
391,103 |
0 |
0 |
0 |
5,112 |
0 |
1,886 |
156 |
dash |
20 |
no-host |
configure.ocaml |
644,966 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
164 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,514 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
172 |
osh-native |
36 |
no-host |
configure.ocaml |
412,675 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
145 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,556 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,477 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,687 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,961 |
0 |
0 |
0 |
104 |
0 |
47 |
6 |
osh-native |
37 |
no-host |
configure.tcc |
6,936 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,401 |
1 |
0 |
0 |
42,408 |
0 |
18,549 |
1,063 |
bash |
11 |
no-host |
configure.util-linux |
2,257,849 |
0 |
0 |
0 |
42,592 |
0 |
17,451 |
1,117 |
dash |
19 |
no-host |
configure.util-linux |
5,357,614 |
9 |
0 |
0 |
39,120 |
0 |
16,990 |
1,362 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,463 |
5 |
0 |
0 |
39,128 |
0 |
16,937 |
1,033 |
osh-native |
35 |
no-host |
configure.util-linux |
1,996,056 |
0 |
0 |
0 |
39,136 |
0 |
17,037 |
936 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,682 |
0 |
0 |
0 |
4,120 |
0 |
872 |
72 |
bash |
14 |
no-host |
configure.yash |
244,635 |
0 |
0 |
0 |
3,720 |
0 |
871 |
72 |
dash |
22 |
no-host |
configure.yash |
387,818 |
0 |
0 |
0 |
3,728 |
0 |
853 |
95 |
osh-cpython |
30 |
no-host |
configure.yash |
257,758 |
0 |
0 |
0 |
3,736 |
0 |
845 |
90 |
osh-native |
38 |
no-host |
configure.yash |
258,202 |
0 |
0 |
0 |
3,736 |
0 |
849 |
82 |
osh-native-souffle |
0 |
no-host |
hello-world |
155 |
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,735 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
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