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 |
20 |
10 |
454 |
22 |
23.02 |
1.11 |
bin-true |
no-host |
678 |
545 |
2,285 |
821 |
3.37 |
1.21 |
configure.cpython |
no-host |
15,127 |
15,224 |
28,930 |
15,356 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,846 |
3,759 |
4,651 |
3,851 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
194 |
50 |
4.02 |
1.03 |
configure.util-linux |
no-host |
14,115 |
15,015 |
31,385 |
14,575 |
2.22 |
1.03 |
configure.yash |
no-host |
1,827 |
1,800 |
2,478 |
1,847 |
1.36 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
34.59 |
2.06 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,541 |
1,101 |
22,972 |
3,172 |
9.04 |
1.25 |
bin-true |
no-host |
104,287 |
66,414 |
750,028 |
127,113 |
7.19 |
1.22 |
configure.cpython |
no-host |
2,213,975 |
2,247,348 |
6,132,895 |
2,221,488 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,479 |
391,860 |
638,298 |
413,186 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,478 |
23,289 |
7,007 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,104,074 |
2,261,505 |
5,296,275 |
1,996,669 |
2.52 |
0.95 |
configure.yash |
no-host |
256,791 |
245,081 |
382,880 |
258,305 |
1.49 |
1.01 |
hello-world |
no-host |
151 |
84 |
3,682 |
347 |
24.38 |
2.30 |
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,728 |
3,728 |
0 |
681 |
1,878 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.6 |
8.0 |
154,693 |
12,993 |
2,800 |
9,731 |
78,347 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,356 |
1 |
61 |
15.0 |
27.4 |
1,772,669 |
49,198 |
28,509 |
86,378 |
908,099 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,575 |
3 |
63 |
21.3 |
30.3 |
2,703,405 |
44,768 |
65,794 |
109,640 |
1,320,597 |
1,273,168 |
49,081 |
41 |
131,588 |
1 |
configure.ocaml |
no-host |
3,851 |
1 |
2 |
2.6 |
20.4 |
150,039 |
11,047 |
5,140 |
7,510 |
71,635 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,528 |
30,528 |
0 |
1,501 |
14,802 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,847 |
1 |
2 |
2.6 |
24.4 |
139,696 |
7,965 |
6,601 |
6,317 |
70,307 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,271 |
64,456 |
42,664 |
4,552 |
54,547 |
57,172 |
478 |
3 |
85,328 |
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 |
19 |
1 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
454 |
400 |
57 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
678 |
518 |
192 |
3.0 |
bash |
9 |
no-host |
bin-true |
545 |
421 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,285 |
1,510 |
1,035 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
594 |
243 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,127 |
8,996 |
6,526 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,224 |
9,024 |
6,619 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,930 |
17,461 |
13,339 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,356 |
8,821 |
6,798 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,846 |
1,632 |
1,241 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,759 |
1,590 |
1,190 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,651 |
2,295 |
1,567 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,851 |
1,561 |
1,321 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
16 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
25 |
17 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
194 |
145 |
52 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
25 |
25 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,115 |
8,897 |
5,701 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,015 |
9,264 |
6,249 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,385 |
21,119 |
11,352 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,575 |
8,784 |
5,995 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,827 |
1,057 |
778 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,800 |
1,023 |
777 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,478 |
1,542 |
978 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,847 |
1,089 |
761 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
34 |
15 |
17.3 |
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,541 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,972 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,172 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,287 |
0 |
0 |
0 |
8 |
0 |
1,995 |
92 |
bash |
9 |
no-host |
bin-true |
66,414 |
0 |
0 |
0 |
8 |
0 |
1,987 |
44 |
dash |
17 |
no-host |
bin-true |
750,028 |
0 |
0 |
0 |
8 |
0 |
1,997 |
452 |
osh-cpython |
25 |
no-host |
bin-true |
127,113 |
0 |
0 |
0 |
16 |
0 |
1,992 |
57 |
osh-native |
2 |
no-host |
configure.cpython |
2,213,975 |
0 |
0 |
0 |
32,928 |
0 |
14,510 |
1,380 |
bash |
10 |
no-host |
configure.cpython |
2,247,348 |
0 |
0 |
0 |
32,992 |
0 |
14,626 |
1,188 |
dash |
18 |
no-host |
configure.cpython |
6,132,895 |
0 |
0 |
0 |
27,512 |
0 |
13,247 |
1,243 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,488 |
0 |
0 |
0 |
27,520 |
0 |
13,211 |
1,113 |
osh-native |
4 |
no-host |
configure.ocaml |
410,479 |
0 |
0 |
0 |
5,120 |
0 |
1,954 |
171 |
bash |
12 |
no-host |
configure.ocaml |
391,860 |
0 |
0 |
0 |
5,112 |
0 |
1,944 |
150 |
dash |
20 |
no-host |
configure.ocaml |
638,298 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
152 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,186 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
179 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,289 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,007 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,074 |
0 |
0 |
0 |
42,408 |
0 |
18,647 |
1,156 |
bash |
11 |
no-host |
configure.util-linux |
2,261,505 |
0 |
0 |
0 |
42,592 |
0 |
17,511 |
1,183 |
dash |
19 |
no-host |
configure.util-linux |
5,296,275 |
13 |
0 |
0 |
39,112 |
0 |
17,091 |
1,352 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,669 |
1 |
0 |
0 |
39,120 |
0 |
17,106 |
1,021 |
osh-native |
6 |
no-host |
configure.yash |
256,791 |
0 |
0 |
0 |
4,120 |
0 |
874 |
82 |
bash |
14 |
no-host |
configure.yash |
245,081 |
0 |
0 |
0 |
3,720 |
0 |
869 |
113 |
dash |
22 |
no-host |
configure.yash |
382,880 |
0 |
0 |
0 |
3,728 |
0 |
856 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
258,305 |
0 |
0 |
0 |
3,736 |
0 |
848 |
70 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,682 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host