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 |
23.36 |
1.16 |
bin-true |
no-host |
687 |
555 |
2,284 |
832 |
3.33 |
1.21 |
configure.cpython |
no-host |
15,442 |
15,481 |
29,594 |
15,647 |
1.92 |
1.01 |
configure.ocaml |
no-host |
3,906 |
3,836 |
4,728 |
3,912 |
1.21 |
1.00 |
configure.tcc |
no-host |
49 |
42 |
197 |
50 |
4.06 |
1.02 |
configure.util-linux |
no-host |
14,420 |
15,314 |
32,012 |
14,744 |
2.22 |
1.02 |
configure.yash |
no-host |
1,915 |
1,838 |
2,526 |
1,881 |
1.32 |
0.98 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
32.13 |
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,518 |
1,103 |
22,936 |
3,168 |
9.11 |
1.26 |
bin-true |
no-host |
106,369 |
66,406 |
760,779 |
130,233 |
7.15 |
1.22 |
configure.cpython |
no-host |
2,220,052 |
2,235,950 |
6,190,506 |
2,225,911 |
2.79 |
1.00 |
configure.ocaml |
no-host |
409,649 |
391,261 |
640,300 |
412,767 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,535 |
5,466 |
23,309 |
6,990 |
3.57 |
1.07 |
configure.util-linux |
no-host |
2,109,320 |
2,253,745 |
5,326,231 |
1,996,978 |
2.53 |
0.95 |
configure.yash |
no-host |
255,965 |
245,264 |
383,609 |
258,321 |
1.50 |
1.01 |
hello-world |
no-host |
149 |
84 |
3,692 |
349 |
24.78 |
2.34 |
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.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
832 |
1 |
2 |
2.6 |
8.3 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,647 |
1 |
62 |
15.0 |
27.4 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,744 |
3 |
62 |
21.3 |
30.1 |
2,703,426 |
42,745 |
65,812 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,912 |
1 |
2 |
2.6 |
20.6 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,881 |
1 |
2 |
2.6 |
24.4 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
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 |
14 |
5 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
396 |
61 |
21.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
687 |
502 |
217 |
3.0 |
bash |
9 |
no-host |
bin-true |
555 |
426 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,284 |
1,452 |
1,102 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
832 |
594 |
251 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
15,442 |
9,267 |
6,569 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,481 |
9,202 |
6,710 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,594 |
18,028 |
13,517 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,647 |
9,133 |
6,792 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,906 |
1,687 |
1,259 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,836 |
1,631 |
1,225 |
20.7 |
dash |
20 |
no-host |
configure.ocaml |
4,728 |
2,280 |
1,661 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,912 |
1,580 |
1,370 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
36 |
13 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
34 |
9 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
197 |
160 |
41 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
37 |
13 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,420 |
9,021 |
5,891 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,314 |
9,322 |
6,491 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,012 |
21,350 |
11,816 |
30.5 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,744 |
8,807 |
6,127 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,915 |
1,162 |
763 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,838 |
1,035 |
807 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,526 |
1,620 |
947 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,881 |
1,074 |
811 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
51 |
24 |
27 |
17.4 |
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,518 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,103 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,936 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,168 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,369 |
0 |
0 |
0 |
8 |
0 |
1,993 |
57 |
bash |
9 |
no-host |
bin-true |
66,406 |
0 |
0 |
0 |
8 |
0 |
1,987 |
51 |
dash |
17 |
no-host |
bin-true |
760,779 |
0 |
0 |
0 |
8 |
0 |
1,990 |
186 |
osh-cpython |
25 |
no-host |
bin-true |
130,233 |
0 |
0 |
0 |
16 |
0 |
1,988 |
181 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,052 |
0 |
0 |
0 |
32,928 |
0 |
14,573 |
1,292 |
bash |
10 |
no-host |
configure.cpython |
2,235,950 |
0 |
0 |
0 |
32,992 |
0 |
14,639 |
1,165 |
dash |
18 |
no-host |
configure.cpython |
6,190,506 |
0 |
0 |
0 |
27,512 |
0 |
13,280 |
1,189 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,911 |
0 |
0 |
0 |
27,520 |
0 |
13,221 |
957 |
osh-native |
4 |
no-host |
configure.ocaml |
409,649 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
157 |
bash |
12 |
no-host |
configure.ocaml |
391,261 |
0 |
0 |
0 |
5,112 |
0 |
1,878 |
151 |
dash |
20 |
no-host |
configure.ocaml |
640,300 |
0 |
0 |
0 |
5,112 |
0 |
1,846 |
176 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,767 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
183 |
osh-native |
5 |
no-host |
configure.tcc |
6,535 |
0 |
0 |
0 |
104 |
0 |
48 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,466 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,309 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,990 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,109,320 |
0 |
0 |
0 |
42,400 |
0 |
18,631 |
1,077 |
bash |
11 |
no-host |
configure.util-linux |
2,253,745 |
0 |
0 |
0 |
42,584 |
0 |
17,473 |
1,186 |
dash |
19 |
no-host |
configure.util-linux |
5,326,231 |
12 |
0 |
0 |
39,112 |
0 |
16,993 |
1,341 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,978 |
1 |
0 |
0 |
39,128 |
0 |
16,981 |
1,021 |
osh-native |
6 |
no-host |
configure.yash |
255,965 |
0 |
0 |
0 |
4,120 |
0 |
872 |
81 |
bash |
14 |
no-host |
configure.yash |
245,264 |
0 |
0 |
0 |
3,720 |
0 |
871 |
70 |
dash |
22 |
no-host |
configure.yash |
383,609 |
0 |
0 |
0 |
3,728 |
0 |
850 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
258,321 |
0 |
0 |
0 |
3,736 |
0 |
848 |
88 |
osh-native |
0 |
no-host |
hello-world |
149 |
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,692 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host