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 |
468 |
23 |
21 |
24.29 |
1.17 |
bin-true |
no-host |
679 |
552 |
2,298 |
823 |
815 |
3.38 |
1.21 |
configure.cpython |
no-host |
15,377 |
15,433 |
29,368 |
15,786 |
15,824 |
1.91 |
1.03 |
configure.ocaml |
no-host |
3,879 |
3,812 |
4,772 |
3,961 |
3,894 |
1.23 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
199 |
49 |
49 |
4.15 |
1.02 |
configure.util-linux |
no-host |
14,293 |
15,440 |
32,079 |
15,137 |
14,938 |
2.24 |
1.06 |
configure.yash |
no-host |
1,846 |
1,823 |
2,526 |
1,890 |
1,850 |
1.37 |
1.02 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
3 |
33.07 |
1.83 |
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,515 |
1,104 |
23,426 |
3,199 |
3,124 |
9.31 |
1.27 |
bin-true |
no-host |
104,266 |
68,430 |
775,792 |
127,169 |
122,847 |
7.44 |
1.22 |
configure.cpython |
no-host |
2,222,417 |
2,240,210 |
6,217,749 |
2,219,480 |
2,206,249 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,574 |
391,172 |
646,719 |
413,086 |
413,280 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,553 |
5,497 |
23,813 |
6,990 |
6,931 |
3.63 |
1.07 |
configure.util-linux |
no-host |
2,102,863 |
2,264,186 |
5,368,984 |
2,002,084 |
1,988,613 |
2.55 |
0.95 |
configure.yash |
no-host |
256,199 |
245,197 |
386,353 |
257,762 |
256,776 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,740 |
350 |
347 |
24.44 |
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,780 |
3,780 |
0 |
695 |
1,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
823 |
1 |
2 |
2.6 |
8.0 |
154,745 |
13,282 |
2,884 |
9,745 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,786 |
1 |
63 |
15.0 |
27.5 |
1,772,727 |
49,861 |
28,594 |
86,398 |
908,078 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,137 |
3 |
64 |
21.3 |
30.1 |
2,703,495 |
29,752 |
65,877 |
109,676 |
1,320,584 |
1,273,235 |
27,391 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,961 |
1 |
2 |
2.6 |
20.6 |
150,101 |
11,058 |
5,228 |
7,532 |
71,611 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,521 |
14,781 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,890 |
1 |
2 |
2.6 |
24.4 |
139,754 |
8,027 |
6,686 |
6,337 |
70,286 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,329 |
64,537 |
42,747 |
4,572 |
54,526 |
57,231 |
270 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
6.0 |
3,779 |
3,779 |
0 |
696 |
1,857 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.6 |
7.6 |
154,744 |
13,070 |
2,822 |
9,746 |
78,326 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,824 |
1 |
64 |
14.9 |
27.4 |
1,772,726 |
49,112 |
28,532 |
86,399 |
908,078 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,938 |
3 |
65 |
21.3 |
30.0 |
2,703,604 |
42,748 |
65,815 |
109,708 |
1,320,620 |
1,273,276 |
27,394 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,894 |
1 |
2 |
2.6 |
20.6 |
150,101 |
10,996 |
5,166 |
7,534 |
71,611 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,523 |
14,781 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,850 |
1 |
2 |
2.6 |
24.4 |
139,754 |
7,965 |
6,624 |
6,339 |
70,286 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.8 |
116,328 |
64,475 |
42,685 |
4,573 |
54,526 |
57,229 |
270 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
468 |
425 |
46 |
22.2 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
10 |
13 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
12 |
9 |
8.8 |
osh-native-souffle |
1 |
no-host |
bin-true |
679 |
500 |
209 |
2.9 |
bash |
9 |
no-host |
bin-true |
552 |
422 |
143 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,298 |
1,464 |
1,096 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
823 |
566 |
272 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
815 |
577 |
250 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,377 |
9,380 |
6,400 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,433 |
9,232 |
6,619 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,368 |
17,944 |
13,326 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,786 |
9,380 |
6,674 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,824 |
9,503 |
6,492 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,879 |
1,684 |
1,225 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,812 |
1,682 |
1,150 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,772 |
2,367 |
1,624 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,961 |
1,691 |
1,310 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,894 |
1,548 |
1,382 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
30 |
19 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
30 |
12 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
199 |
128 |
75 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
23 |
27 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,293 |
8,965 |
5,803 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,440 |
9,346 |
6,514 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,079 |
21,392 |
11,807 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,137 |
9,144 |
6,186 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,938 |
8,865 |
6,258 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,846 |
1,059 |
797 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,823 |
1,041 |
785 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,526 |
1,562 |
1,008 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,890 |
1,108 |
787 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,850 |
1,072 |
780 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
52 |
44 |
8 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,515 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,426 |
0 |
0 |
0 |
8 |
0 |
45 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,199 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,124 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,266 |
0 |
0 |
0 |
8 |
0 |
1,988 |
73 |
bash |
9 |
no-host |
bin-true |
68,430 |
0 |
0 |
0 |
8 |
0 |
1,981 |
45 |
dash |
17 |
no-host |
bin-true |
775,792 |
0 |
0 |
0 |
8 |
0 |
1,998 |
272 |
osh-cpython |
25 |
no-host |
bin-true |
127,169 |
0 |
0 |
0 |
16 |
0 |
1,984 |
72 |
osh-native |
33 |
no-host |
bin-true |
122,847 |
0 |
0 |
0 |
16 |
0 |
1,993 |
93 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,222,417 |
0 |
0 |
0 |
32,928 |
0 |
14,510 |
1,205 |
bash |
10 |
no-host |
configure.cpython |
2,240,210 |
0 |
0 |
0 |
32,992 |
0 |
14,286 |
1,241 |
dash |
18 |
no-host |
configure.cpython |
6,217,749 |
0 |
0 |
0 |
27,512 |
0 |
13,283 |
1,212 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,219,480 |
0 |
0 |
0 |
27,520 |
0 |
13,164 |
1,008 |
osh-native |
34 |
no-host |
configure.cpython |
2,206,249 |
0 |
0 |
0 |
27,520 |
0 |
13,222 |
989 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,574 |
0 |
0 |
0 |
5,120 |
0 |
1,975 |
186 |
bash |
12 |
no-host |
configure.ocaml |
391,172 |
0 |
0 |
0 |
5,112 |
0 |
1,884 |
149 |
dash |
20 |
no-host |
configure.ocaml |
646,719 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
180 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,086 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
182 |
osh-native |
36 |
no-host |
configure.ocaml |
413,280 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
160 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,553 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,497 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,813 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,990 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,931 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,863 |
0 |
0 |
0 |
42,400 |
0 |
18,580 |
952 |
bash |
11 |
no-host |
configure.util-linux |
2,264,186 |
1 |
0 |
0 |
42,584 |
0 |
17,408 |
1,045 |
dash |
19 |
no-host |
configure.util-linux |
5,368,984 |
9 |
0 |
0 |
39,120 |
0 |
16,976 |
1,288 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,084 |
2 |
0 |
0 |
39,128 |
0 |
16,975 |
1,255 |
osh-native |
35 |
no-host |
configure.util-linux |
1,988,613 |
0 |
0 |
0 |
39,152 |
0 |
16,979 |
1,025 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,199 |
0 |
0 |
0 |
4,120 |
0 |
869 |
85 |
bash |
14 |
no-host |
configure.yash |
245,197 |
0 |
0 |
0 |
3,720 |
0 |
866 |
86 |
dash |
22 |
no-host |
configure.yash |
386,353 |
0 |
0 |
0 |
3,728 |
0 |
853 |
90 |
osh-cpython |
30 |
no-host |
configure.yash |
257,762 |
0 |
0 |
0 |
3,736 |
0 |
849 |
67 |
osh-native |
38 |
no-host |
configure.yash |
256,776 |
0 |
0 |
0 |
3,736 |
0 |
849 |
85 |
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,740 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host