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 |
10 |
462 |
22 |
23.51 |
1.13 |
bin-true |
no-host |
681 |
551 |
2,262 |
823 |
3.32 |
1.21 |
configure.cpython |
no-host |
15,295 |
15,404 |
29,093 |
15,495 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,874 |
3,779 |
4,703 |
3,879 |
1.21 |
1.00 |
configure.tcc |
no-host |
50 |
42 |
195 |
49 |
3.94 |
0.98 |
configure.util-linux |
no-host |
14,320 |
15,133 |
31,756 |
14,626 |
2.22 |
1.02 |
configure.yash |
no-host |
1,852 |
1,795 |
2,505 |
1,850 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.11 |
1.86 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,516 |
1,133 |
22,888 |
3,174 |
9.10 |
1.26 |
bin-true |
no-host |
104,346 |
66,487 |
757,466 |
127,150 |
7.26 |
1.22 |
configure.cpython |
no-host |
2,219,980 |
2,246,985 |
6,168,256 |
2,222,840 |
2.78 |
1.00 |
configure.ocaml |
no-host |
409,876 |
390,874 |
640,790 |
412,931 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,532 |
5,473 |
23,307 |
7,012 |
3.57 |
1.07 |
configure.util-linux |
no-host |
2,102,062 |
2,258,549 |
5,333,816 |
1,994,214 |
2.54 |
0.95 |
configure.yash |
no-host |
256,086 |
244,475 |
385,019 |
258,486 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,693 |
351 |
24.46 |
2.32 |
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,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
823 |
1 |
2 |
2.6 |
8.1 |
154,714 |
13,064 |
2,817 |
9,734 |
78,361 |
66,619 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,495 |
1 |
62 |
15.0 |
27.4 |
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,626 |
3 |
63 |
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,879 |
1 |
2 |
2.6 |
20.6 |
150,060 |
11,064 |
5,157 |
7,513 |
71,649 |
70,898 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
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,850 |
1 |
2 |
2.6 |
24.4 |
139,717 |
7,982 |
6,618 |
6,320 |
70,321 |
63,076 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
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 |
20 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
462 |
418 |
47 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
681 |
492 |
218 |
3.0 |
bash |
9 |
no-host |
bin-true |
551 |
419 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,262 |
1,469 |
1,065 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
823 |
580 |
259 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,295 |
9,179 |
6,524 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,404 |
9,397 |
6,438 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,093 |
17,709 |
13,292 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,495 |
9,211 |
6,550 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,874 |
1,754 |
1,153 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,779 |
1,568 |
1,231 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,703 |
2,349 |
1,565 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,879 |
1,600 |
1,317 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
28 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
11 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
150 |
48 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
26 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,320 |
8,830 |
5,968 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,133 |
9,181 |
6,454 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,756 |
21,243 |
11,622 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,626 |
8,764 |
6,070 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,852 |
1,102 |
756 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,795 |
1,017 |
782 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,505 |
1,470 |
1,080 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,850 |
1,124 |
730 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
33 |
16 |
17.6 |
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,516 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,133 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,888 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,174 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,346 |
0 |
0 |
0 |
8 |
0 |
1,995 |
83 |
bash |
9 |
no-host |
bin-true |
66,487 |
0 |
0 |
0 |
8 |
0 |
1,993 |
41 |
dash |
17 |
no-host |
bin-true |
757,466 |
0 |
0 |
0 |
8 |
0 |
1,998 |
89 |
osh-cpython |
25 |
no-host |
bin-true |
127,150 |
0 |
0 |
0 |
16 |
0 |
1,986 |
121 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,980 |
2 |
0 |
0 |
32,928 |
0 |
14,594 |
1,172 |
bash |
10 |
no-host |
configure.cpython |
2,246,985 |
0 |
0 |
0 |
32,992 |
0 |
14,649 |
1,078 |
dash |
18 |
no-host |
configure.cpython |
6,168,256 |
2 |
0 |
0 |
27,512 |
0 |
13,221 |
1,123 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,222,840 |
1 |
0 |
0 |
27,520 |
0 |
13,220 |
1,098 |
osh-native |
4 |
no-host |
configure.ocaml |
409,876 |
0 |
0 |
0 |
5,120 |
0 |
1,966 |
178 |
bash |
12 |
no-host |
configure.ocaml |
390,874 |
0 |
0 |
0 |
5,112 |
0 |
1,870 |
151 |
dash |
20 |
no-host |
configure.ocaml |
640,790 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
172 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,931 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
159 |
osh-native |
5 |
no-host |
configure.tcc |
6,532 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,307 |
0 |
0 |
0 |
96 |
0 |
54 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,012 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,102,062 |
0 |
0 |
0 |
42,400 |
0 |
18,466 |
1,158 |
bash |
11 |
no-host |
configure.util-linux |
2,258,549 |
0 |
0 |
0 |
42,584 |
0 |
17,388 |
1,162 |
dash |
19 |
no-host |
configure.util-linux |
5,333,816 |
10 |
0 |
0 |
39,136 |
0 |
16,991 |
1,437 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,994,214 |
2 |
0 |
0 |
39,128 |
0 |
17,114 |
996 |
osh-native |
6 |
no-host |
configure.yash |
256,086 |
0 |
0 |
0 |
4,120 |
0 |
869 |
101 |
bash |
14 |
no-host |
configure.yash |
244,475 |
0 |
0 |
0 |
3,720 |
0 |
868 |
83 |
dash |
22 |
no-host |
configure.yash |
385,019 |
0 |
0 |
0 |
3,728 |
0 |
854 |
95 |
osh-cpython |
30 |
no-host |
configure.yash |
258,486 |
0 |
0 |
0 |
3,736 |
0 |
850 |
83 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,693 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host