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 |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
454 |
22 |
23.34 |
1.11 |
bin-true |
no-host |
678 |
542 |
2,231 |
813 |
3.29 |
1.20 |
configure.cpython |
no-host |
15,038 |
15,063 |
28,508 |
15,245 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,784 |
3,745 |
4,619 |
3,821 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
192 |
49 |
4.01 |
1.02 |
configure.util-linux |
no-host |
13,972 |
14,864 |
31,137 |
14,332 |
2.23 |
1.03 |
configure.yash |
no-host |
1,842 |
1,773 |
2,456 |
1,820 |
1.33 |
0.99 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
33.81 |
1.96 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,575 |
1,108 |
22,856 |
3,157 |
8.88 |
1.23 |
bin-true |
no-host |
106,389 |
66,459 |
751,490 |
127,418 |
7.06 |
1.20 |
configure.cpython |
no-host |
2,214,149 |
2,251,340 |
6,113,479 |
2,217,336 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,457 |
391,199 |
638,497 |
412,728 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,572 |
5,488 |
23,277 |
6,976 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,104,239 |
2,258,492 |
5,302,590 |
1,988,387 |
2.52 |
0.94 |
configure.yash |
no-host |
256,149 |
245,013 |
384,273 |
257,601 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,694 |
350 |
23.99 |
2.27 |
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.3 |
6.2 |
3,736 |
3,736 |
0 |
681 |
1,886 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.1 |
154,701 |
13,053 |
2,806 |
9,731 |
78,355 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,245 |
1 |
60 |
15.0 |
27.5 |
1,772,677 |
49,204 |
28,515 |
86,378 |
908,107 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,332 |
3 |
60 |
21.3 |
30.1 |
2,703,413 |
42,779 |
65,820 |
109,640 |
1,320,605 |
1,273,168 |
49,081 |
41 |
131,640 |
1 |
configure.ocaml |
no-host |
3,821 |
1 |
2 |
2.6 |
20.6 |
150,047 |
11,053 |
5,146 |
7,510 |
71,643 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,536 |
30,536 |
0 |
1,501 |
14,810 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,820 |
1 |
2 |
2.6 |
24.4 |
139,704 |
7,971 |
6,607 |
6,317 |
70,315 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,279 |
64,462 |
42,670 |
4,552 |
54,555 |
57,172 |
478 |
3 |
85,340 |
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 |
12 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
454 |
398 |
60 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
3 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
678 |
483 |
228 |
3.0 |
bash |
9 |
no-host |
bin-true |
542 |
422 |
129 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,231 |
1,467 |
1,026 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
589 |
238 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,038 |
9,051 |
6,384 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,063 |
9,225 |
6,251 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,508 |
17,496 |
12,889 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,245 |
8,968 |
6,539 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,784 |
1,614 |
1,211 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,745 |
1,524 |
1,241 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,619 |
2,208 |
1,620 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,821 |
1,588 |
1,272 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
29 |
13 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
192 |
130 |
65 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
41 |
8 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,972 |
8,816 |
5,634 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,864 |
9,072 |
6,284 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,137 |
20,816 |
11,430 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,332 |
8,559 |
5,970 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,842 |
1,056 |
777 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,773 |
1,062 |
713 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,456 |
1,514 |
985 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,820 |
1,049 |
775 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
22 |
27 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
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,575 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,108 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,856 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,157 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,389 |
0 |
0 |
0 |
8 |
0 |
1,989 |
69 |
bash |
9 |
no-host |
bin-true |
66,459 |
0 |
0 |
0 |
8 |
0 |
1,984 |
121 |
dash |
17 |
no-host |
bin-true |
751,490 |
0 |
0 |
0 |
8 |
0 |
2,002 |
137 |
osh-cpython |
25 |
no-host |
bin-true |
127,418 |
0 |
0 |
0 |
16 |
0 |
1,988 |
49 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,149 |
0 |
0 |
0 |
32,928 |
0 |
14,534 |
1,235 |
bash |
10 |
no-host |
configure.cpython |
2,251,340 |
0 |
0 |
0 |
32,992 |
0 |
14,611 |
1,189 |
dash |
18 |
no-host |
configure.cpython |
6,113,479 |
0 |
0 |
0 |
27,512 |
0 |
13,255 |
1,272 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,217,336 |
0 |
0 |
0 |
27,520 |
0 |
13,237 |
1,275 |
osh-native |
4 |
no-host |
configure.ocaml |
410,457 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
199 |
bash |
12 |
no-host |
configure.ocaml |
391,199 |
0 |
0 |
0 |
5,112 |
0 |
1,892 |
179 |
dash |
20 |
no-host |
configure.ocaml |
638,497 |
0 |
0 |
0 |
5,112 |
0 |
1,848 |
210 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,728 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
164 |
osh-native |
5 |
no-host |
configure.tcc |
6,572 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,488 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,277 |
0 |
0 |
0 |
96 |
0 |
52 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,239 |
0 |
0 |
0 |
42,400 |
0 |
18,617 |
1,180 |
bash |
11 |
no-host |
configure.util-linux |
2,258,492 |
0 |
0 |
0 |
42,584 |
0 |
17,521 |
1,119 |
dash |
19 |
no-host |
configure.util-linux |
5,302,590 |
10 |
0 |
0 |
39,112 |
0 |
16,954 |
1,224 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,988,387 |
1 |
0 |
0 |
39,120 |
0 |
16,995 |
920 |
osh-native |
6 |
no-host |
configure.yash |
256,149 |
0 |
0 |
0 |
4,120 |
0 |
879 |
86 |
bash |
14 |
no-host |
configure.yash |
245,013 |
0 |
0 |
0 |
3,720 |
0 |
870 |
87 |
dash |
22 |
no-host |
configure.yash |
384,273 |
0 |
0 |
0 |
3,728 |
0 |
854 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
257,601 |
0 |
0 |
0 |
3,736 |
0 |
847 |
72 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,694 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host