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 |
451 |
22 |
23.91 |
1.19 |
bin-true |
no-host |
676 |
552 |
2,245 |
820 |
3.32 |
1.21 |
configure.cpython |
no-host |
15,036 |
15,304 |
28,707 |
15,352 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,872 |
3,758 |
4,626 |
3,872 |
1.19 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
194 |
49 |
4.07 |
1.03 |
configure.util-linux |
no-host |
14,147 |
14,980 |
31,501 |
14,479 |
2.23 |
1.02 |
configure.yash |
no-host |
1,827 |
1,787 |
2,460 |
1,863 |
1.35 |
1.02 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.40 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,518 |
1,103 |
23,393 |
3,219 |
9.29 |
1.28 |
bin-true |
no-host |
105,413 |
66,445 |
738,004 |
129,164 |
7.00 |
1.23 |
configure.cpython |
no-host |
2,219,515 |
2,244,839 |
6,125,088 |
2,246,493 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,588 |
391,234 |
637,375 |
413,950 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,561 |
5,502 |
23,164 |
7,003 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,099,926 |
2,258,330 |
5,314,341 |
2,016,243 |
2.53 |
0.96 |
configure.yash |
no-host |
256,066 |
245,222 |
383,757 |
258,427 |
1.50 |
1.01 |
hello-world |
no-host |
155 |
82 |
3,660 |
346 |
23.61 |
2.23 |
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.0 |
3,729 |
3,729 |
0 |
684 |
1,881 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.7 |
8.1 |
154,694 |
12,996 |
2,803 |
11,737 |
78,350 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,352 |
1 |
60 |
15.8 |
27.3 |
1,772,610 |
49,201 |
28,512 |
101,770 |
908,057 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,479 |
3 |
62 |
22.2 |
30.3 |
2,703,274 |
44,770 |
65,796 |
126,121 |
1,320,501 |
1,256,652 |
49,081 |
41 |
131,592 |
1 |
configure.ocaml |
no-host |
3,872 |
1 |
2 |
2.7 |
20.4 |
150,036 |
11,049 |
5,142 |
8,602 |
71,635 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,529 |
30,529 |
0 |
1,599 |
14,805 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,863 |
1 |
2 |
2.6 |
24.5 |
139,693 |
7,968 |
6,604 |
7,554 |
70,307 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,272 |
64,459 |
42,667 |
4,610 |
54,550 |
57,112 |
478 |
3 |
85,334 |
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 |
18 |
1 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
451 |
393 |
62 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
676 |
505 |
203 |
2.9 |
bash |
9 |
no-host |
bin-true |
552 |
437 |
125 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,245 |
1,457 |
1,039 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
567 |
267 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,036 |
9,211 |
6,219 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,304 |
9,403 |
6,318 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,707 |
17,584 |
12,949 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,352 |
9,151 |
6,468 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,872 |
1,627 |
1,272 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,758 |
1,579 |
1,199 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,626 |
2,279 |
1,547 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,872 |
1,645 |
1,249 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
21 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
128 |
69 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
25 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,147 |
8,951 |
5,675 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,980 |
9,235 |
6,236 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,501 |
20,926 |
11,638 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,479 |
8,674 |
5,994 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,827 |
1,086 |
749 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,787 |
1,071 |
719 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,460 |
1,542 |
961 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,863 |
1,038 |
829 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
29 |
20 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,518 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,103 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,393 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,219 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,413 |
0 |
0 |
0 |
8 |
0 |
1,992 |
73 |
bash |
9 |
no-host |
bin-true |
66,445 |
0 |
0 |
0 |
8 |
0 |
1,986 |
46 |
dash |
17 |
no-host |
bin-true |
738,004 |
0 |
0 |
0 |
8 |
0 |
1,990 |
195 |
osh-cpython |
25 |
no-host |
bin-true |
129,164 |
0 |
0 |
0 |
16 |
0 |
1,995 |
54 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,515 |
0 |
0 |
0 |
32,928 |
0 |
14,572 |
1,075 |
bash |
10 |
no-host |
configure.cpython |
2,244,839 |
0 |
0 |
0 |
32,992 |
0 |
14,719 |
1,200 |
dash |
18 |
no-host |
configure.cpython |
6,125,088 |
1 |
0 |
0 |
27,512 |
0 |
13,338 |
1,409 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,246,493 |
0 |
0 |
0 |
27,520 |
0 |
13,233 |
1,057 |
osh-native |
4 |
no-host |
configure.ocaml |
410,588 |
0 |
0 |
0 |
5,120 |
0 |
1,966 |
158 |
bash |
12 |
no-host |
configure.ocaml |
391,234 |
0 |
0 |
0 |
5,112 |
0 |
1,937 |
141 |
dash |
20 |
no-host |
configure.ocaml |
637,375 |
1 |
0 |
0 |
5,112 |
0 |
1,859 |
149 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,950 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
160 |
osh-native |
5 |
no-host |
configure.tcc |
6,561 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,502 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,164 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,003 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,926 |
3 |
0 |
0 |
42,400 |
0 |
18,574 |
930 |
bash |
11 |
no-host |
configure.util-linux |
2,258,330 |
1 |
0 |
0 |
42,584 |
0 |
17,525 |
1,224 |
dash |
19 |
no-host |
configure.util-linux |
5,314,341 |
13 |
0 |
0 |
39,112 |
0 |
17,084 |
1,265 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,243 |
1 |
0 |
0 |
39,120 |
0 |
17,040 |
986 |
osh-native |
6 |
no-host |
configure.yash |
256,066 |
0 |
0 |
0 |
4,120 |
0 |
867 |
97 |
bash |
14 |
no-host |
configure.yash |
245,222 |
0 |
0 |
0 |
3,720 |
0 |
868 |
77 |
dash |
22 |
no-host |
configure.yash |
383,757 |
0 |
0 |
0 |
3,728 |
0 |
859 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
258,427 |
0 |
0 |
0 |
3,736 |
0 |
854 |
88 |
osh-native |
0 |
no-host |
hello-world |
155 |
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,660 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host