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 |
24.23 |
1.17 |
bin-true |
no-host |
678 |
547 |
2,208 |
817 |
3.26 |
1.20 |
configure.cpython |
no-host |
14,852 |
14,994 |
28,088 |
15,217 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,781 |
3,698 |
4,630 |
3,839 |
1.22 |
1.02 |
configure.tcc |
no-host |
47 |
41 |
191 |
49 |
4.08 |
1.05 |
configure.util-linux |
no-host |
13,837 |
14,708 |
30,791 |
14,450 |
2.23 |
1.04 |
configure.yash |
no-host |
1,798 |
1,743 |
2,435 |
1,837 |
1.35 |
1.02 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
30.53 |
1.85 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,547 |
1,104 |
23,523 |
3,212 |
9.24 |
1.26 |
bin-true |
no-host |
109,344 |
65,450 |
741,980 |
129,264 |
6.79 |
1.18 |
configure.cpython |
no-host |
2,226,746 |
2,247,435 |
6,122,025 |
2,240,374 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,283 |
391,341 |
639,348 |
413,752 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,560 |
5,487 |
23,193 |
6,987 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,092,705 |
2,263,215 |
5,309,172 |
2,015,641 |
2.54 |
0.96 |
configure.yash |
no-host |
256,680 |
244,701 |
385,382 |
258,692 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
83 |
3,683 |
349 |
24.39 |
2.31 |
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,722 |
3,722 |
0 |
684 |
1,873 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,342 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,217 |
1 |
60 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,049 |
762,784 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,450 |
2 |
59 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,811 |
126,121 |
1,320,493 |
1,256,653 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,839 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,627 |
69,800 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,522 |
30,522 |
0 |
1,599 |
14,797 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,837 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,299 |
61,833 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,265 |
64,454 |
42,662 |
4,610 |
54,542 |
57,113 |
478 |
3 |
85,324 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
416 |
42 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
22 |
0 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
678 |
518 |
192 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
416 |
141 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,208 |
1,443 |
1,019 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
573 |
259 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,852 |
8,986 |
6,260 |
27.1 |
bash |
10 |
no-host |
configure.cpython |
14,994 |
9,212 |
6,193 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,088 |
17,145 |
12,746 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,217 |
9,114 |
6,368 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,781 |
1,590 |
1,226 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,698 |
1,600 |
1,117 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,630 |
2,291 |
1,545 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,839 |
1,572 |
1,304 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
19 |
29 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
24 |
17 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
140 |
54 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
23 |
27 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,837 |
8,612 |
5,699 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,708 |
8,980 |
6,205 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,791 |
20,579 |
11,279 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,450 |
8,615 |
6,023 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,798 |
1,004 |
804 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,743 |
995 |
752 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,435 |
1,488 |
989 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,837 |
1,044 |
798 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
28 |
19 |
17.3 |
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,547 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
38 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,523 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,212 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
109,344 |
0 |
0 |
0 |
8 |
0 |
1,996 |
47 |
bash |
9 |
no-host |
bin-true |
65,450 |
0 |
0 |
0 |
8 |
0 |
1,994 |
292 |
dash |
17 |
no-host |
bin-true |
741,980 |
0 |
0 |
0 |
8 |
0 |
1,988 |
282 |
osh-cpython |
25 |
no-host |
bin-true |
129,264 |
0 |
0 |
0 |
16 |
0 |
1,988 |
89 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,746 |
0 |
0 |
0 |
32,928 |
0 |
14,456 |
1,331 |
bash |
10 |
no-host |
configure.cpython |
2,247,435 |
0 |
0 |
0 |
32,992 |
0 |
14,563 |
1,079 |
dash |
18 |
no-host |
configure.cpython |
6,122,025 |
0 |
0 |
0 |
27,512 |
0 |
13,322 |
1,231 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,240,374 |
0 |
0 |
0 |
27,520 |
0 |
13,236 |
1,076 |
osh-native |
4 |
no-host |
configure.ocaml |
410,283 |
0 |
0 |
0 |
5,120 |
0 |
1,962 |
201 |
bash |
12 |
no-host |
configure.ocaml |
391,341 |
0 |
0 |
0 |
5,112 |
0 |
1,935 |
147 |
dash |
20 |
no-host |
configure.ocaml |
639,348 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
171 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,752 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
194 |
osh-native |
5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,193 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,987 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,092,705 |
1 |
0 |
0 |
42,400 |
0 |
18,562 |
1,094 |
bash |
11 |
no-host |
configure.util-linux |
2,263,215 |
0 |
0 |
0 |
42,584 |
0 |
17,369 |
1,087 |
dash |
19 |
no-host |
configure.util-linux |
5,309,172 |
13 |
0 |
0 |
39,120 |
0 |
17,076 |
1,227 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,015,641 |
2 |
0 |
0 |
39,120 |
0 |
17,062 |
1,180 |
osh-native |
6 |
no-host |
configure.yash |
256,680 |
0 |
0 |
0 |
4,120 |
0 |
871 |
75 |
bash |
14 |
no-host |
configure.yash |
244,701 |
0 |
0 |
0 |
3,720 |
0 |
872 |
70 |
dash |
22 |
no-host |
configure.yash |
385,382 |
0 |
0 |
0 |
3,728 |
0 |
861 |
121 |
osh-cpython |
30 |
no-host |
configure.yash |
258,692 |
0 |
0 |
0 |
3,736 |
0 |
850 |
67 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,683 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host