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 |
471 |
23 |
23.32 |
1.12 |
bin-true |
no-host |
684 |
547 |
2,248 |
822 |
3.28 |
1.20 |
configure.cpython |
no-host |
15,356 |
15,327 |
29,783 |
15,677 |
1.94 |
1.02 |
configure.ocaml |
no-host |
3,885 |
3,830 |
4,698 |
3,897 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
43 |
195 |
49 |
4.03 |
1.01 |
configure.util-linux |
no-host |
14,324 |
15,121 |
32,019 |
14,689 |
2.24 |
1.03 |
configure.yash |
no-host |
1,852 |
1,825 |
2,486 |
1,870 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.68 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,543 |
1,095 |
23,384 |
3,176 |
9.20 |
1.25 |
bin-true |
no-host |
107,295 |
66,457 |
740,170 |
127,155 |
6.90 |
1.19 |
configure.cpython |
no-host |
2,219,581 |
2,238,538 |
6,101,262 |
2,229,442 |
2.75 |
1.00 |
configure.ocaml |
no-host |
411,247 |
390,854 |
638,033 |
413,233 |
1.55 |
1.00 |
configure.tcc |
no-host |
6,542 |
5,474 |
23,202 |
6,976 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,099,216 |
2,262,092 |
5,302,164 |
2,013,282 |
2.53 |
0.96 |
configure.yash |
no-host |
255,550 |
245,014 |
385,608 |
258,939 |
1.51 |
1.01 |
hello-world |
no-host |
154 |
82 |
3,662 |
354 |
23.78 |
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,725 |
3,725 |
0 |
684 |
1,877 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
822 |
1 |
2 |
2.7 |
8.0 |
154,690 |
12,993 |
2,800 |
11,737 |
78,346 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,677 |
2 |
62 |
15.8 |
27.5 |
1,772,606 |
49,198 |
28,509 |
101,770 |
908,053 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,689 |
3 |
61 |
22.2 |
30.1 |
2,703,270 |
44,767 |
65,793 |
126,121 |
1,320,497 |
1,256,652 |
49,081 |
41 |
131,586 |
1 |
configure.ocaml |
no-host |
3,897 |
1 |
2 |
2.7 |
20.6 |
150,032 |
11,046 |
5,139 |
8,602 |
71,631 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,525 |
30,525 |
0 |
1,599 |
14,801 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,870 |
1 |
2 |
2.6 |
24.2 |
139,689 |
7,965 |
6,601 |
7,554 |
70,303 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,268 |
64,456 |
42,664 |
4,610 |
54,546 |
57,112 |
478 |
3 |
85,328 |
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 |
17 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
471 |
418 |
56 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
7 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
684 |
488 |
222 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
418 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,248 |
1,448 |
1,062 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
822 |
579 |
258 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,356 |
9,129 |
6,610 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,327 |
9,272 |
6,470 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,783 |
17,903 |
13,792 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,677 |
9,220 |
6,721 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,885 |
1,694 |
1,226 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,830 |
1,663 |
1,188 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,698 |
2,287 |
1,618 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,897 |
1,599 |
1,337 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
29 |
14 |
19.5 |
dash |
21 |
no-host |
configure.tcc |
195 |
144 |
54 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
31 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,324 |
8,920 |
5,867 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,121 |
9,188 |
6,428 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,019 |
21,358 |
11,764 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,689 |
8,899 |
5,975 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,852 |
1,042 |
819 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,825 |
1,014 |
814 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,486 |
1,513 |
1,017 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,870 |
1,067 |
806 |
24.2 |
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 |
50 |
35 |
15 |
17.0 |
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,543 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,095 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,384 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,176 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,295 |
0 |
0 |
0 |
8 |
0 |
1,991 |
116 |
bash |
9 |
no-host |
bin-true |
66,457 |
0 |
0 |
0 |
8 |
0 |
1,989 |
149 |
dash |
17 |
no-host |
bin-true |
740,170 |
0 |
0 |
0 |
8 |
0 |
2,000 |
226 |
osh-cpython |
25 |
no-host |
bin-true |
127,155 |
0 |
0 |
0 |
16 |
0 |
1,986 |
90 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,581 |
0 |
0 |
0 |
32,928 |
0 |
14,445 |
1,008 |
bash |
10 |
no-host |
configure.cpython |
2,238,538 |
0 |
0 |
0 |
32,992 |
0 |
14,607 |
1,227 |
dash |
18 |
no-host |
configure.cpython |
6,101,262 |
1 |
0 |
0 |
27,512 |
0 |
13,317 |
1,505 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,442 |
0 |
0 |
0 |
27,520 |
0 |
13,291 |
1,254 |
osh-native |
4 |
no-host |
configure.ocaml |
411,247 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
177 |
bash |
12 |
no-host |
configure.ocaml |
390,854 |
0 |
0 |
0 |
5,112 |
0 |
1,892 |
147 |
dash |
20 |
no-host |
configure.ocaml |
638,033 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
168 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,233 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
174 |
osh-native |
5 |
no-host |
configure.tcc |
6,542 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,474 |
0 |
0 |
0 |
96 |
0 |
47 |
5 |
dash |
21 |
no-host |
configure.tcc |
23,202 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,216 |
1 |
0 |
0 |
42,400 |
0 |
18,607 |
1,163 |
bash |
11 |
no-host |
configure.util-linux |
2,262,092 |
0 |
0 |
0 |
42,584 |
0 |
17,364 |
1,062 |
dash |
19 |
no-host |
configure.util-linux |
5,302,164 |
12 |
0 |
0 |
39,136 |
0 |
17,118 |
1,360 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,282 |
0 |
0 |
0 |
39,128 |
0 |
17,080 |
1,049 |
osh-native |
6 |
no-host |
configure.yash |
255,550 |
0 |
0 |
0 |
4,120 |
0 |
871 |
87 |
bash |
14 |
no-host |
configure.yash |
245,014 |
0 |
0 |
0 |
3,720 |
0 |
867 |
89 |
dash |
22 |
no-host |
configure.yash |
385,608 |
0 |
0 |
0 |
3,728 |
0 |
858 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
258,939 |
0 |
0 |
0 |
3,736 |
0 |
854 |
81 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
0 |
0 |
dash |
16 |
no-host |
hello-world |
3,662 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
354 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host