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 |
9 |
459 |
22 |
24.11 |
1.17 |
bin-true |
no-host |
670 |
546 |
2,249 |
818 |
3.36 |
1.22 |
configure.cpython |
no-host |
14,942 |
15,039 |
28,640 |
15,238 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,787 |
3,735 |
4,647 |
3,823 |
1.23 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
193 |
49 |
4.11 |
1.04 |
configure.util-linux |
no-host |
14,035 |
14,793 |
31,106 |
14,382 |
2.22 |
1.02 |
configure.yash |
no-host |
1,863 |
1,768 |
2,448 |
1,827 |
1.31 |
0.98 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.22 |
1.99 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,528 |
1,128 |
22,798 |
3,185 |
9.02 |
1.26 |
bin-true |
no-host |
106,314 |
66,458 |
752,756 |
129,225 |
7.08 |
1.22 |
configure.cpython |
no-host |
2,218,888 |
2,242,028 |
6,144,725 |
2,219,284 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,549 |
391,183 |
638,950 |
414,210 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,552 |
5,488 |
23,233 |
6,990 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,105,567 |
2,265,425 |
5,308,765 |
1,994,183 |
2.52 |
0.95 |
configure.yash |
no-host |
256,403 |
244,682 |
381,151 |
258,158 |
1.49 |
1.01 |
hello-world |
no-host |
153 |
84 |
3,685 |
345 |
24.08 |
2.25 |
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,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.6 |
8.1 |
154,714 |
13,064 |
2,817 |
9,734 |
78,361 |
66,619 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,238 |
1 |
60 |
15.0 |
27.1 |
1,772,690 |
49,457 |
28,526 |
86,381 |
908,113 |
778,196 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,382 |
3 |
60 |
21.3 |
30.1 |
2,703,426 |
42,790 |
65,831 |
109,643 |
1,320,611 |
1,273,172 |
49,081 |
41 |
131,662 |
1 |
configure.ocaml |
no-host |
3,823 |
1 |
2 |
2.6 |
20.6 |
150,060 |
11,064 |
5,157 |
7,513 |
71,649 |
70,898 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,827 |
1 |
2 |
2.6 |
24.4 |
139,717 |
7,982 |
6,618 |
6,320 |
70,321 |
63,076 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,292 |
64,473 |
42,681 |
4,555 |
54,561 |
57,176 |
478 |
3 |
85,362 |
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 |
13 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
459 |
427 |
35 |
21.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
670 |
498 |
203 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
423 |
133 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,249 |
1,495 |
1,017 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
575 |
259 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,942 |
8,924 |
6,410 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,039 |
8,978 |
6,472 |
27.1 |
dash |
18 |
no-host |
configure.cpython |
28,640 |
17,699 |
12,788 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,238 |
9,114 |
6,386 |
27.1 |
osh-native |
4 |
no-host |
configure.ocaml |
3,787 |
1,518 |
1,307 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,735 |
1,597 |
1,154 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,647 |
2,255 |
1,597 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,823 |
1,570 |
1,294 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
31 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
150 |
47 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
35 |
14 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,035 |
8,785 |
5,713 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,793 |
9,095 |
6,185 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,106 |
20,595 |
11,589 |
29.9 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,382 |
8,509 |
6,070 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,863 |
1,079 |
760 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,768 |
999 |
772 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,448 |
1,568 |
922 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,827 |
1,035 |
796 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
24 |
24 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,528 |
0 |
0 |
0 |
16 |
0 |
41 |
5 |
bash |
15 |
no-host |
abuild-print-help |
1,128 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,798 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,185 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
1 |
no-host |
bin-true |
106,314 |
0 |
0 |
0 |
8 |
0 |
1,992 |
44 |
bash |
9 |
no-host |
bin-true |
66,458 |
0 |
0 |
0 |
8 |
0 |
1,992 |
34 |
dash |
17 |
no-host |
bin-true |
752,756 |
0 |
0 |
0 |
8 |
0 |
1,994 |
215 |
osh-cpython |
25 |
no-host |
bin-true |
129,225 |
0 |
0 |
0 |
16 |
0 |
1,992 |
75 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,888 |
0 |
0 |
0 |
32,928 |
0 |
14,528 |
1,093 |
bash |
10 |
no-host |
configure.cpython |
2,242,028 |
2 |
0 |
0 |
32,992 |
0 |
14,517 |
1,100 |
dash |
18 |
no-host |
configure.cpython |
6,144,725 |
0 |
0 |
0 |
27,512 |
0 |
13,293 |
1,144 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,219,284 |
0 |
0 |
0 |
27,520 |
0 |
13,325 |
1,092 |
osh-native |
4 |
no-host |
configure.ocaml |
410,549 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
166 |
bash |
12 |
no-host |
configure.ocaml |
391,183 |
0 |
0 |
0 |
5,112 |
0 |
1,925 |
164 |
dash |
20 |
no-host |
configure.ocaml |
638,950 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
301 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,210 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
170 |
osh-native |
5 |
no-host |
configure.tcc |
6,552 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,488 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,233 |
0 |
0 |
0 |
96 |
0 |
53 |
19 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,990 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,105,567 |
1 |
0 |
0 |
42,400 |
0 |
18,524 |
1,048 |
bash |
11 |
no-host |
configure.util-linux |
2,265,425 |
1 |
0 |
0 |
42,584 |
0 |
17,439 |
1,064 |
dash |
19 |
no-host |
configure.util-linux |
5,308,765 |
12 |
0 |
0 |
39,112 |
0 |
17,071 |
1,146 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,994,183 |
0 |
0 |
0 |
39,120 |
0 |
16,965 |
993 |
osh-native |
6 |
no-host |
configure.yash |
256,403 |
0 |
0 |
0 |
4,120 |
0 |
878 |
101 |
bash |
14 |
no-host |
configure.yash |
244,682 |
0 |
0 |
0 |
3,720 |
0 |
870 |
85 |
dash |
22 |
no-host |
configure.yash |
381,151 |
0 |
0 |
0 |
3,728 |
0 |
854 |
88 |
osh-cpython |
30 |
no-host |
configure.yash |
258,158 |
0 |
0 |
0 |
3,736 |
0 |
849 |
78 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,685 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host