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 |
9 |
453 |
23 |
23.10 |
1.16 |
bin-true |
no-host |
670 |
552 |
2,235 |
820 |
3.34 |
1.22 |
configure.cpython |
no-host |
15,301 |
15,370 |
29,059 |
15,527 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,813 |
3,821 |
4,642 |
3,904 |
1.22 |
1.02 |
configure.tcc |
no-host |
48 |
43 |
198 |
53 |
4.10 |
1.09 |
configure.util-linux |
no-host |
14,175 |
15,531 |
31,653 |
14,671 |
2.23 |
1.04 |
configure.yash |
no-host |
1,859 |
1,838 |
2,468 |
1,866 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
29.04 |
1.72 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,514 |
1,106 |
23,330 |
3,214 |
9.28 |
1.28 |
bin-true |
no-host |
104,390 |
66,402 |
736,720 |
126,137 |
7.06 |
1.21 |
configure.cpython |
no-host |
2,219,806 |
2,241,325 |
6,092,009 |
2,231,474 |
2.74 |
1.01 |
configure.ocaml |
no-host |
410,371 |
391,505 |
636,170 |
414,024 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,481 |
23,092 |
6,966 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,104,510 |
2,263,156 |
5,298,948 |
2,018,811 |
2.52 |
0.96 |
configure.yash |
no-host |
256,218 |
244,567 |
383,783 |
258,419 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
81 |
3,645 |
343 |
23.67 |
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.2 |
6.3 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.7 |
7.9 |
154,662 |
12,890 |
2,792 |
11,730 |
78,321 |
64,611 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,527 |
1 |
65 |
15.8 |
27.4 |
1,772,605 |
49,191 |
28,502 |
101,770 |
908,047 |
762,788 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,671 |
3 |
62 |
22.2 |
30.0 |
2,703,269 |
44,760 |
65,786 |
126,121 |
1,320,491 |
1,256,657 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,904 |
1 |
2 |
2.7 |
20.6 |
150,027 |
11,039 |
5,132 |
8,602 |
71,623 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
53 |
0 |
0 |
1.3 |
19.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,866 |
1 |
2 |
2.6 |
24.4 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,229 |
64,449 |
42,657 |
4,603 |
54,507 |
57,119 |
478 |
3 |
85,314 |
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 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
453 |
402 |
55 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
7 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
670 |
518 |
183 |
2.9 |
bash |
9 |
no-host |
bin-true |
552 |
420 |
141 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,235 |
1,451 |
1,040 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
593 |
243 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,301 |
9,278 |
6,425 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,370 |
9,282 |
6,513 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,059 |
17,599 |
13,314 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,527 |
9,164 |
6,636 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,813 |
1,685 |
1,165 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,821 |
1,721 |
1,112 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,642 |
2,180 |
1,666 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,904 |
1,713 |
1,232 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
36 |
12 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
24 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
163 |
38 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
53 |
33 |
20 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,175 |
8,981 |
5,691 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,531 |
9,414 |
6,608 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,653 |
20,629 |
12,109 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,671 |
8,766 |
6,097 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,859 |
1,066 |
800 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,838 |
1,027 |
815 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,468 |
1,538 |
972 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,866 |
1,081 |
789 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
24 |
23 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,514 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,330 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,214 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,390 |
0 |
0 |
0 |
8 |
0 |
1,992 |
49 |
bash |
9 |
no-host |
bin-true |
66,402 |
0 |
0 |
0 |
8 |
0 |
1,993 |
44 |
dash |
17 |
no-host |
bin-true |
736,720 |
0 |
0 |
0 |
8 |
0 |
1,993 |
84 |
osh-cpython |
25 |
no-host |
bin-true |
126,137 |
0 |
0 |
0 |
16 |
0 |
1,994 |
72 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,806 |
0 |
0 |
0 |
32,928 |
0 |
14,469 |
1,375 |
bash |
10 |
no-host |
configure.cpython |
2,241,325 |
0 |
0 |
0 |
32,992 |
0 |
14,574 |
1,115 |
dash |
18 |
no-host |
configure.cpython |
6,092,009 |
1 |
0 |
0 |
27,512 |
0 |
13,266 |
1,163 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,474 |
0 |
0 |
0 |
27,520 |
0 |
13,341 |
1,059 |
osh-native |
4 |
no-host |
configure.ocaml |
410,371 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
175 |
bash |
12 |
no-host |
configure.ocaml |
391,505 |
0 |
0 |
0 |
5,112 |
0 |
1,892 |
148 |
dash |
20 |
no-host |
configure.ocaml |
636,170 |
0 |
0 |
0 |
5,112 |
0 |
1,866 |
178 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,024 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
181 |
osh-native |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,092 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,966 |
0 |
0 |
0 |
104 |
0 |
47 |
7 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,510 |
1 |
0 |
0 |
42,400 |
0 |
18,677 |
1,114 |
bash |
11 |
no-host |
configure.util-linux |
2,263,156 |
0 |
0 |
0 |
42,592 |
0 |
17,412 |
1,145 |
dash |
19 |
no-host |
configure.util-linux |
5,298,948 |
12 |
0 |
0 |
39,120 |
0 |
17,047 |
1,389 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,018,811 |
0 |
0 |
0 |
39,128 |
0 |
17,029 |
1,106 |
osh-native |
6 |
no-host |
configure.yash |
256,218 |
0 |
0 |
0 |
4,120 |
0 |
872 |
87 |
bash |
14 |
no-host |
configure.yash |
244,567 |
0 |
0 |
0 |
3,720 |
0 |
870 |
146 |
dash |
22 |
no-host |
configure.yash |
383,783 |
0 |
0 |
0 |
3,728 |
0 |
860 |
95 |
osh-cpython |
30 |
no-host |
configure.yash |
258,419 |
0 |
0 |
0 |
3,736 |
0 |
851 |
75 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,645 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host