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 |
452 |
22 |
21 |
23.24 |
1.14 |
bin-true |
no-host |
673 |
541 |
2,251 |
812 |
826 |
3.34 |
1.21 |
configure.cpython |
no-host |
15,010 |
15,111 |
28,705 |
15,315 |
15,589 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,801 |
3,757 |
4,663 |
3,863 |
3,826 |
1.23 |
1.02 |
configure.tcc |
no-host |
48 |
41 |
196 |
49 |
48 |
4.09 |
1.03 |
configure.util-linux |
no-host |
14,029 |
14,846 |
31,388 |
14,400 |
14,459 |
2.24 |
1.03 |
configure.yash |
no-host |
1,818 |
1,781 |
2,457 |
1,845 |
1,831 |
1.35 |
1.02 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
29.41 |
1.70 |
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,540 |
1,090 |
23,411 |
3,219 |
3,134 |
9.22 |
1.27 |
bin-true |
no-host |
105,383 |
66,475 |
761,843 |
127,158 |
127,892 |
7.23 |
1.21 |
configure.cpython |
no-host |
2,221,545 |
2,239,538 |
6,234,634 |
2,228,320 |
2,224,794 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,369 |
390,915 |
647,720 |
413,973 |
412,809 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,560 |
5,499 |
23,600 |
7,026 |
6,880 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,103,588 |
2,261,370 |
5,366,777 |
1,999,394 |
1,991,573 |
2.55 |
0.95 |
configure.yash |
no-host |
255,622 |
243,655 |
387,749 |
258,725 |
258,161 |
1.52 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,737 |
352 |
344 |
24.75 |
2.33 |
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,747 |
3,747 |
0 |
694 |
1,841 |
1,212 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
812 |
1 |
2 |
2.6 |
8.1 |
154,712 |
13,192 |
2,849 |
9,744 |
78,310 |
66,658 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,315 |
1 |
60 |
15.0 |
27.3 |
1,772,694 |
49,826 |
28,559 |
86,397 |
908,062 |
778,235 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,400 |
3 |
59 |
21.3 |
30.1 |
2,703,462 |
29,118 |
65,862 |
109,675 |
1,320,568 |
1,273,219 |
27,391 |
41 |
131,724 |
1 |
configure.ocaml |
no-host |
3,863 |
1 |
2 |
2.6 |
20.6 |
150,068 |
11,023 |
5,193 |
7,531 |
71,595 |
70,942 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,553 |
30,553 |
0 |
1,520 |
14,765 |
14,268 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,845 |
1 |
2 |
2.6 |
24.4 |
139,721 |
7,992 |
6,651 |
6,336 |
70,270 |
63,115 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,296 |
64,502 |
42,712 |
4,571 |
54,510 |
57,215 |
270 |
3 |
85,424 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,746 |
3,746 |
0 |
695 |
1,841 |
1,210 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
826 |
1 |
2 |
2.6 |
7.7 |
154,711 |
12,980 |
2,787 |
9,745 |
78,310 |
66,656 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,589 |
1 |
61 |
15.0 |
27.3 |
1,772,693 |
49,077 |
28,497 |
86,398 |
908,062 |
778,233 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,459 |
3 |
60 |
21.3 |
30.0 |
2,703,462 |
42,713 |
65,800 |
109,677 |
1,320,568 |
1,273,217 |
27,391 |
41 |
131,600 |
1 |
configure.ocaml |
no-host |
3,826 |
0 |
2 |
2.6 |
20.4 |
150,068 |
10,961 |
5,131 |
7,533 |
71,595 |
70,940 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,553 |
30,553 |
0 |
1,522 |
14,765 |
14,266 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,831 |
1 |
2 |
2.6 |
24.5 |
139,721 |
7,930 |
6,589 |
6,338 |
70,270 |
63,113 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,295 |
64,440 |
42,650 |
4,572 |
54,510 |
57,213 |
270 |
3 |
85,300 |
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 |
19 |
1 |
4.2 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
452 |
401 |
54 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
10 |
13 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
673 |
507 |
198 |
2.9 |
bash |
9 |
no-host |
bin-true |
541 |
407 |
144 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,251 |
1,491 |
1,022 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
812 |
595 |
233 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
826 |
590 |
249 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,010 |
9,219 |
6,187 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,111 |
9,204 |
6,318 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,705 |
17,355 |
13,214 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,315 |
9,052 |
6,528 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,589 |
9,086 |
6,614 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,801 |
1,627 |
1,212 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,757 |
1,561 |
1,214 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,663 |
2,261 |
1,615 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,863 |
1,641 |
1,262 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,826 |
1,656 |
1,206 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
38 |
11 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
41 |
21 |
21 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
196 |
120 |
79 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
22 |
27 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
29 |
19 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,029 |
8,809 |
5,681 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,846 |
9,210 |
6,131 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,388 |
20,970 |
11,514 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,400 |
8,660 |
5,937 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,459 |
8,782 |
5,886 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,818 |
1,073 |
754 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,781 |
1,027 |
756 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,457 |
1,507 |
993 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,845 |
1,079 |
770 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,831 |
1,031 |
804 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
29 |
20 |
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,540 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,090 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,411 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,219 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,134 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,383 |
0 |
0 |
0 |
8 |
0 |
1,993 |
117 |
bash |
9 |
no-host |
bin-true |
66,475 |
0 |
0 |
0 |
8 |
0 |
1,991 |
87 |
dash |
17 |
no-host |
bin-true |
761,843 |
0 |
0 |
0 |
8 |
0 |
1,992 |
195 |
osh-cpython |
25 |
no-host |
bin-true |
127,158 |
0 |
0 |
0 |
16 |
0 |
1,993 |
75 |
osh-native |
33 |
no-host |
bin-true |
127,892 |
0 |
0 |
0 |
16 |
0 |
1,989 |
123 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,221,545 |
0 |
0 |
0 |
32,928 |
0 |
14,493 |
1,348 |
bash |
10 |
no-host |
configure.cpython |
2,239,538 |
0 |
0 |
0 |
32,992 |
0 |
14,685 |
1,168 |
dash |
18 |
no-host |
configure.cpython |
6,234,634 |
1 |
0 |
0 |
27,512 |
0 |
13,308 |
1,213 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,320 |
0 |
0 |
0 |
27,520 |
0 |
13,277 |
1,004 |
osh-native |
34 |
no-host |
configure.cpython |
2,224,794 |
0 |
0 |
0 |
27,520 |
0 |
13,286 |
1,199 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,369 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
191 |
bash |
12 |
no-host |
configure.ocaml |
390,915 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
229 |
dash |
20 |
no-host |
configure.ocaml |
647,720 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
190 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,973 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
185 |
osh-native |
36 |
no-host |
configure.ocaml |
412,809 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
166 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
49 |
12 |
bash |
13 |
no-host |
configure.tcc |
5,499 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,600 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,026 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
37 |
no-host |
configure.tcc |
6,880 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,103,588 |
0 |
0 |
0 |
42,408 |
0 |
18,626 |
1,108 |
bash |
11 |
no-host |
configure.util-linux |
2,261,370 |
0 |
0 |
0 |
42,592 |
0 |
17,527 |
1,113 |
dash |
19 |
no-host |
configure.util-linux |
5,366,777 |
13 |
0 |
0 |
39,144 |
0 |
16,973 |
1,406 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,394 |
0 |
0 |
0 |
39,128 |
0 |
17,108 |
1,096 |
osh-native |
35 |
no-host |
configure.util-linux |
1,991,573 |
0 |
0 |
0 |
39,136 |
0 |
17,036 |
1,001 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,622 |
0 |
0 |
0 |
4,120 |
0 |
869 |
68 |
bash |
14 |
no-host |
configure.yash |
243,655 |
0 |
0 |
0 |
3,720 |
0 |
867 |
94 |
dash |
22 |
no-host |
configure.yash |
387,749 |
1 |
0 |
0 |
3,728 |
0 |
853 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
258,725 |
0 |
0 |
0 |
3,736 |
0 |
851 |
97 |
osh-native |
38 |
no-host |
configure.yash |
258,161 |
0 |
0 |
0 |
3,736 |
0 |
850 |
75 |
osh-native-souffle |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,737 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host