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 |
481 |
23 |
21 |
24.07 |
1.14 |
bin-true |
no-host |
706 |
558 |
2,409 |
839 |
825 |
3.41 |
1.19 |
configure.cpython |
no-host |
16,125 |
16,019 |
31,489 |
16,146 |
15,918 |
1.95 |
1.00 |
configure.ocaml |
no-host |
4,001 |
3,955 |
4,943 |
3,949 |
3,974 |
1.24 |
0.99 |
configure.tcc |
no-host |
50 |
45 |
209 |
50 |
50 |
4.16 |
0.99 |
configure.util-linux |
no-host |
15,116 |
16,046 |
34,062 |
14,948 |
14,939 |
2.25 |
0.99 |
configure.yash |
no-host |
1,928 |
1,891 |
2,613 |
1,902 |
1,893 |
1.36 |
0.99 |
hello-world |
no-host |
2 |
1 |
56 |
3 |
3 |
33.39 |
1.78 |
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,093 |
23,426 |
3,190 |
3,089 |
9.13 |
1.24 |
bin-true |
no-host |
107,364 |
66,447 |
775,842 |
125,764 |
124,897 |
7.23 |
1.17 |
configure.cpython |
no-host |
2,220,118 |
2,239,203 |
6,219,690 |
2,220,550 |
2,202,842 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,935 |
390,730 |
646,185 |
413,996 |
412,275 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,566 |
5,472 |
23,787 |
6,985 |
6,892 |
3.62 |
1.06 |
configure.util-linux |
no-host |
2,111,885 |
2,261,054 |
5,380,594 |
2,005,138 |
1,986,831 |
2.55 |
0.95 |
configure.yash |
no-host |
256,760 |
245,135 |
387,433 |
258,347 |
257,663 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,741 |
351 |
346 |
24.61 |
2.31 |
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.4 |
3,780 |
3,780 |
0 |
695 |
1,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
839 |
1 |
2 |
2.6 |
8.1 |
154,745 |
13,282 |
2,884 |
9,745 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,146 |
2 |
69 |
15.0 |
27.4 |
1,772,727 |
49,861 |
28,594 |
86,398 |
908,078 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,948 |
3 |
66 |
21.3 |
30.1 |
2,703,604 |
29,752 |
65,877 |
109,706 |
1,320,620 |
1,273,278 |
27,394 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,949 |
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 |
50 |
0 |
0 |
1.3 |
19.1 |
30,586 |
30,586 |
0 |
1,521 |
14,781 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,902 |
1 |
2 |
2.6 |
24.2 |
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 |
8.8 |
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 |
825 |
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,918 |
2 |
69 |
14.9 |
27.5 |
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,939 |
3 |
66 |
21.3 |
30.0 |
2,703,495 |
42,748 |
65,815 |
109,678 |
1,320,584 |
1,273,233 |
27,391 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,974 |
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 |
50 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,523 |
14,781 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,893 |
1 |
2 |
2.6 |
24.5 |
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.7 |
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 |
20 |
12 |
9 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
481 |
417 |
68 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
19 |
5 |
8.8 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
17 |
5 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
706 |
512 |
228 |
2.8 |
bash |
9 |
no-host |
bin-true |
558 |
424 |
138 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,409 |
1,596 |
1,095 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
839 |
582 |
269 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
825 |
593 |
247 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
16,125 |
9,712 |
6,826 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
16,019 |
9,719 |
6,733 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
31,489 |
18,967 |
14,584 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,146 |
9,510 |
6,904 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,918 |
9,229 |
6,867 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
4,001 |
1,628 |
1,415 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,955 |
1,696 |
1,281 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,943 |
2,386 |
1,787 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,949 |
1,712 |
1,276 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,974 |
1,780 |
1,232 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
50 |
23 |
28 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
45 |
22 |
23 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
209 |
150 |
62 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
40 |
10 |
19.1 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
28 |
22 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
15,116 |
9,445 |
6,169 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
16,046 |
9,725 |
6,818 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
34,062 |
22,426 |
12,833 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,948 |
9,006 |
6,134 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,939 |
8,818 |
6,307 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,928 |
1,156 |
780 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,891 |
1,023 |
871 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,613 |
1,601 |
1,058 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,902 |
1,092 |
814 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,893 |
1,084 |
814 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
56 |
32 |
24 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
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,565 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,426 |
0 |
0 |
0 |
8 |
0 |
44 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,190 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,089 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,364 |
0 |
0 |
0 |
8 |
0 |
1,980 |
55 |
bash |
9 |
no-host |
bin-true |
66,447 |
0 |
0 |
0 |
8 |
0 |
1,982 |
44 |
dash |
17 |
no-host |
bin-true |
775,842 |
0 |
0 |
0 |
8 |
0 |
1,996 |
205 |
osh-cpython |
25 |
no-host |
bin-true |
125,764 |
0 |
0 |
0 |
16 |
0 |
1,984 |
109 |
osh-native |
33 |
no-host |
bin-true |
124,897 |
0 |
0 |
0 |
16 |
0 |
1,985 |
61 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,220,118 |
0 |
0 |
0 |
32,928 |
0 |
14,549 |
1,073 |
bash |
10 |
no-host |
configure.cpython |
2,239,203 |
0 |
0 |
0 |
32,992 |
0 |
14,615 |
1,067 |
dash |
18 |
no-host |
configure.cpython |
6,219,690 |
5 |
0 |
0 |
27,512 |
0 |
13,286 |
1,296 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,220,550 |
0 |
0 |
0 |
27,520 |
0 |
13,187 |
1,012 |
osh-native |
34 |
no-host |
configure.cpython |
2,202,842 |
0 |
0 |
0 |
27,520 |
0 |
13,303 |
994 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,935 |
0 |
0 |
0 |
5,120 |
0 |
1,943 |
169 |
bash |
12 |
no-host |
configure.ocaml |
390,730 |
0 |
0 |
0 |
5,112 |
0 |
1,934 |
177 |
dash |
20 |
no-host |
configure.ocaml |
646,185 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
191 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,996 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
184 |
osh-native |
36 |
no-host |
configure.ocaml |
412,275 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
161 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,566 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,472 |
0 |
0 |
0 |
96 |
0 |
48 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,787 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,985 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,892 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,111,885 |
0 |
0 |
0 |
42,400 |
0 |
18,636 |
1,134 |
bash |
11 |
no-host |
configure.util-linux |
2,261,054 |
0 |
0 |
0 |
42,592 |
0 |
17,430 |
1,148 |
dash |
19 |
no-host |
configure.util-linux |
5,380,594 |
12 |
0 |
0 |
39,128 |
0 |
16,955 |
1,318 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,005,138 |
0 |
0 |
0 |
39,144 |
0 |
16,975 |
1,059 |
osh-native |
35 |
no-host |
configure.util-linux |
1,986,831 |
0 |
0 |
0 |
39,136 |
0 |
16,984 |
1,034 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,760 |
0 |
0 |
0 |
4,120 |
0 |
871 |
92 |
bash |
14 |
no-host |
configure.yash |
245,135 |
0 |
0 |
0 |
3,720 |
0 |
868 |
88 |
dash |
22 |
no-host |
configure.yash |
387,433 |
0 |
0 |
0 |
3,728 |
0 |
852 |
122 |
osh-cpython |
30 |
no-host |
configure.yash |
258,347 |
0 |
0 |
0 |
3,736 |
0 |
848 |
78 |
osh-native |
38 |
no-host |
configure.yash |
257,663 |
0 |
0 |
0 |
3,736 |
0 |
849 |
76 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,741 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host