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 |
464 |
23 |
23.83 |
1.16 |
bin-true |
no-host |
680 |
556 |
2,265 |
816 |
3.33 |
1.20 |
configure.cpython |
no-host |
15,484 |
15,497 |
29,617 |
15,682 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,897 |
3,826 |
4,750 |
3,900 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
199 |
50 |
4.13 |
1.04 |
configure.util-linux |
no-host |
14,438 |
15,312 |
32,218 |
14,737 |
2.23 |
1.02 |
configure.yash |
no-host |
1,858 |
1,818 |
2,520 |
1,884 |
1.36 |
1.01 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
34.04 |
1.96 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,521 |
1,112 |
22,875 |
3,208 |
9.07 |
1.27 |
bin-true |
no-host |
105,400 |
67,457 |
755,360 |
127,128 |
7.17 |
1.21 |
configure.cpython |
no-host |
2,220,593 |
2,252,434 |
6,164,336 |
2,217,901 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,539 |
390,944 |
640,354 |
413,496 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,550 |
5,494 |
23,305 |
7,006 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,099,918 |
2,256,315 |
5,335,684 |
2,002,739 |
2.54 |
0.95 |
configure.yash |
no-host |
255,651 |
244,487 |
384,369 |
256,009 |
1.50 |
1.00 |
hello-world |
no-host |
152 |
81 |
3,690 |
349 |
24.28 |
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.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.6 |
7.9 |
154,714 |
13,064 |
2,817 |
9,734 |
78,361 |
66,619 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,682 |
1 |
62 |
15.0 |
27.5 |
1,772,690 |
49,457 |
28,526 |
86,381 |
908,113 |
778,196 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,737 |
2 |
62 |
21.3 |
30.1 |
2,703,426 |
44,785 |
65,811 |
109,643 |
1,320,611 |
1,273,172 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,900 |
1 |
2 |
2.6 |
20.4 |
150,060 |
11,064 |
5,157 |
7,513 |
71,649 |
70,898 |
2,680 |
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 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,884 |
1 |
2 |
2.6 |
24.5 |
139,717 |
7,982 |
6,618 |
6,320 |
70,321 |
63,076 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,292 |
64,473 |
42,681 |
4,555 |
54,561 |
57,176 |
478 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
464 |
406 |
61 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
19 |
4 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
680 |
495 |
217 |
2.9 |
bash |
9 |
no-host |
bin-true |
556 |
431 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,265 |
1,523 |
1,015 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
591 |
242 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,484 |
9,317 |
6,560 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,497 |
9,296 |
6,628 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,617 |
17,786 |
13,769 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,682 |
9,204 |
6,736 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,897 |
1,682 |
1,250 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,826 |
1,648 |
1,198 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,750 |
2,317 |
1,650 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,900 |
1,673 |
1,257 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
30 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
199 |
130 |
72 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
23 |
27 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,438 |
9,021 |
5,899 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,312 |
9,287 |
6,522 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,218 |
21,290 |
12,060 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,737 |
8,702 |
6,219 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,858 |
1,052 |
813 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,818 |
1,075 |
746 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,520 |
1,563 |
1,002 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,884 |
1,063 |
825 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
45 |
5 |
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,521 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,112 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,875 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,208 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,400 |
0 |
0 |
0 |
8 |
0 |
1,983 |
59 |
bash |
9 |
no-host |
bin-true |
67,457 |
0 |
0 |
0 |
8 |
0 |
1,986 |
215 |
dash |
17 |
no-host |
bin-true |
755,360 |
0 |
0 |
0 |
8 |
0 |
2,000 |
149 |
osh-cpython |
25 |
no-host |
bin-true |
127,128 |
0 |
0 |
0 |
16 |
0 |
1,981 |
46 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,593 |
0 |
0 |
0 |
32,928 |
0 |
14,559 |
1,266 |
bash |
10 |
no-host |
configure.cpython |
2,252,434 |
0 |
0 |
0 |
32,992 |
0 |
14,642 |
1,223 |
dash |
18 |
no-host |
configure.cpython |
6,164,336 |
0 |
0 |
0 |
27,512 |
0 |
13,260 |
1,358 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,217,901 |
0 |
0 |
0 |
27,520 |
0 |
13,295 |
1,108 |
osh-native |
4 |
no-host |
configure.ocaml |
410,539 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
177 |
bash |
12 |
no-host |
configure.ocaml |
390,944 |
0 |
0 |
0 |
5,112 |
0 |
1,894 |
149 |
dash |
20 |
no-host |
configure.ocaml |
640,354 |
0 |
0 |
0 |
5,112 |
0 |
1,850 |
179 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,496 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
191 |
osh-native |
5 |
no-host |
configure.tcc |
6,550 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,494 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,305 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,006 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,918 |
2 |
0 |
0 |
42,400 |
0 |
18,547 |
1,228 |
bash |
11 |
no-host |
configure.util-linux |
2,256,315 |
2 |
0 |
0 |
42,584 |
0 |
17,484 |
1,212 |
dash |
19 |
no-host |
configure.util-linux |
5,335,684 |
6 |
0 |
0 |
39,136 |
0 |
17,143 |
1,317 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,739 |
0 |
0 |
0 |
39,120 |
0 |
16,983 |
1,064 |
osh-native |
6 |
no-host |
configure.yash |
255,651 |
0 |
0 |
0 |
4,120 |
0 |
862 |
76 |
bash |
14 |
no-host |
configure.yash |
244,487 |
0 |
0 |
0 |
3,720 |
0 |
865 |
92 |
dash |
22 |
no-host |
configure.yash |
384,369 |
0 |
0 |
0 |
3,728 |
0 |
851 |
97 |
osh-cpython |
30 |
no-host |
configure.yash |
256,009 |
0 |
0 |
0 |
3,736 |
0 |
850 |
80 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,690 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host