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 |
456 |
23 |
23 |
23.57 |
1.19 |
bin-true |
no-host |
690 |
575 |
2,357 |
839 |
835 |
3.42 |
1.22 |
configure.cpython |
no-host |
15,488 |
15,627 |
30,017 |
15,946 |
15,906 |
1.94 |
1.03 |
configure.ocaml |
no-host |
3,926 |
3,829 |
4,822 |
3,889 |
3,875 |
1.23 |
0.99 |
configure.tcc |
no-host |
49 |
44 |
198 |
49 |
49 |
4.02 |
1.00 |
configure.util-linux |
no-host |
14,547 |
15,414 |
32,174 |
14,680 |
14,592 |
2.21 |
1.01 |
configure.yash |
no-host |
1,884 |
1,831 |
2,547 |
1,877 |
1,897 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
3 |
32.25 |
1.81 |
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,550 |
1,093 |
23,491 |
3,232 |
3,135 |
9.21 |
1.27 |
bin-true |
no-host |
105,382 |
65,463 |
764,900 |
129,117 |
126,876 |
7.26 |
1.23 |
configure.cpython |
no-host |
2,217,192 |
2,236,348 |
6,220,728 |
2,223,785 |
2,222,127 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,614 |
391,048 |
646,252 |
413,569 |
413,187 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,563 |
5,491 |
23,474 |
7,025 |
6,892 |
3.58 |
1.07 |
configure.util-linux |
no-host |
2,104,523 |
2,262,213 |
5,349,247 |
1,998,872 |
1,992,150 |
2.54 |
0.95 |
configure.yash |
no-host |
256,936 |
244,560 |
387,567 |
258,901 |
257,833 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,740 |
353 |
344 |
24.61 |
2.32 |
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,746 |
3,746 |
0 |
694 |
1,840 |
1,212 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
839 |
1 |
2 |
2.6 |
8.3 |
154,711 |
13,191 |
2,848 |
9,744 |
78,309 |
66,658 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,946 |
1 |
65 |
15.0 |
27.5 |
1,772,693 |
49,825 |
28,558 |
86,397 |
908,061 |
778,235 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,680 |
3 |
64 |
21.3 |
30.0 |
2,703,461 |
42,774 |
65,841 |
109,675 |
1,320,567 |
1,273,219 |
27,391 |
41 |
131,682 |
1 |
configure.ocaml |
no-host |
3,889 |
1 |
2 |
2.6 |
20.6 |
150,067 |
11,022 |
5,192 |
7,531 |
71,594 |
70,942 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,552 |
30,552 |
0 |
1,520 |
14,764 |
14,268 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,877 |
1 |
2 |
2.6 |
24.2 |
139,720 |
7,991 |
6,650 |
6,336 |
70,269 |
63,115 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,295 |
64,501 |
42,711 |
4,571 |
54,509 |
57,215 |
270 |
3 |
85,422 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,745 |
3,745 |
0 |
695 |
1,840 |
1,210 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
835 |
1 |
2 |
2.6 |
7.6 |
154,710 |
12,979 |
2,786 |
9,745 |
78,309 |
66,656 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,906 |
1 |
65 |
15.0 |
27.4 |
1,772,692 |
49,076 |
28,496 |
86,398 |
908,061 |
778,233 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,592 |
3 |
64 |
21.3 |
30.0 |
2,703,461 |
44,676 |
65,779 |
109,677 |
1,320,567 |
1,273,217 |
27,391 |
41 |
131,558 |
1 |
configure.ocaml |
no-host |
3,875 |
1 |
2 |
2.6 |
20.6 |
150,067 |
10,960 |
5,130 |
7,533 |
71,594 |
70,940 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,552 |
30,552 |
0 |
1,522 |
14,764 |
14,266 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,897 |
1 |
2 |
2.6 |
24.4 |
139,720 |
7,929 |
6,588 |
6,338 |
70,269 |
63,113 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.5 |
116,294 |
64,439 |
42,649 |
4,572 |
54,509 |
57,213 |
270 |
3 |
85,298 |
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.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
456 |
416 |
43 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
20 |
3 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
23 |
12 |
12 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
690 |
520 |
202 |
2.9 |
bash |
9 |
no-host |
bin-true |
575 |
431 |
142 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,357 |
1,514 |
1,117 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
839 |
585 |
263 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
835 |
578 |
267 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,488 |
9,177 |
6,695 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,627 |
9,315 |
6,716 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
30,017 |
18,267 |
13,702 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,946 |
9,167 |
7,033 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,906 |
9,221 |
6,803 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,926 |
1,739 |
1,218 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,829 |
1,662 |
1,183 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,822 |
2,292 |
1,754 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,889 |
1,683 |
1,245 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,875 |
1,652 |
1,246 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
27 |
23 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
44 |
30 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
131 |
70 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
18 |
31 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,547 |
9,010 |
6,008 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
15,414 |
9,415 |
6,493 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,174 |
21,651 |
11,638 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,680 |
8,745 |
6,115 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,592 |
8,718 |
6,069 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,884 |
1,082 |
810 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,831 |
1,105 |
729 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,547 |
1,625 |
967 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,877 |
1,115 |
765 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,897 |
1,133 |
767 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
51 |
34 |
17 |
17.6 |
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,550 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,491 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,232 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,135 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,382 |
0 |
0 |
0 |
8 |
0 |
1,991 |
37 |
bash |
9 |
no-host |
bin-true |
65,463 |
0 |
0 |
0 |
8 |
0 |
1,980 |
41 |
dash |
17 |
no-host |
bin-true |
764,900 |
0 |
0 |
0 |
8 |
0 |
2,000 |
438 |
osh-cpython |
25 |
no-host |
bin-true |
129,117 |
0 |
0 |
0 |
16 |
0 |
1,986 |
65 |
osh-native |
33 |
no-host |
bin-true |
126,876 |
0 |
0 |
0 |
16 |
0 |
1,992 |
172 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,217,192 |
1 |
0 |
0 |
32,928 |
0 |
14,545 |
1,293 |
bash |
10 |
no-host |
configure.cpython |
2,236,348 |
1 |
0 |
0 |
32,992 |
0 |
14,705 |
1,021 |
dash |
18 |
no-host |
configure.cpython |
6,220,728 |
1 |
0 |
0 |
27,512 |
0 |
13,299 |
1,320 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,785 |
0 |
0 |
0 |
27,520 |
0 |
13,284 |
1,027 |
osh-native |
34 |
no-host |
configure.cpython |
2,222,127 |
1 |
0 |
0 |
27,520 |
0 |
13,277 |
993 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,614 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
150 |
bash |
12 |
no-host |
configure.ocaml |
391,048 |
0 |
0 |
0 |
5,112 |
0 |
1,891 |
145 |
dash |
20 |
no-host |
configure.ocaml |
646,252 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
297 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,569 |
1 |
0 |
0 |
5,120 |
0 |
1,928 |
181 |
osh-native |
36 |
no-host |
configure.ocaml |
413,187 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
141 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,563 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,491 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,474 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,025 |
0 |
0 |
0 |
104 |
0 |
47 |
10 |
osh-native |
37 |
no-host |
configure.tcc |
6,892 |
0 |
0 |
0 |
104 |
0 |
47 |
7 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,104,523 |
0 |
0 |
0 |
42,400 |
0 |
18,359 |
1,199 |
bash |
11 |
no-host |
configure.util-linux |
2,262,213 |
0 |
0 |
0 |
42,584 |
0 |
17,416 |
1,081 |
dash |
19 |
no-host |
configure.util-linux |
5,349,247 |
13 |
0 |
0 |
39,112 |
0 |
16,967 |
1,315 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,872 |
0 |
0 |
0 |
39,120 |
0 |
16,964 |
923 |
osh-native |
35 |
no-host |
configure.util-linux |
1,992,150 |
1 |
0 |
0 |
39,136 |
0 |
16,972 |
983 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,936 |
0 |
0 |
0 |
4,120 |
0 |
869 |
90 |
bash |
14 |
no-host |
configure.yash |
244,560 |
0 |
0 |
0 |
3,720 |
0 |
868 |
84 |
dash |
22 |
no-host |
configure.yash |
387,567 |
0 |
0 |
0 |
3,728 |
0 |
855 |
88 |
osh-cpython |
30 |
no-host |
configure.yash |
258,901 |
0 |
0 |
0 |
3,736 |
0 |
849 |
78 |
osh-native |
38 |
no-host |
configure.yash |
257,833 |
0 |
0 |
0 |
3,736 |
0 |
853 |
70 |
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,740 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
353 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host