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 |
452 |
23 |
23.25 |
1.19 |
bin-true |
no-host |
689 |
551 |
2,239 |
825 |
3.25 |
1.20 |
configure.cpython |
no-host |
15,499 |
15,626 |
29,496 |
15,738 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,921 |
3,906 |
4,783 |
4,024 |
1.22 |
1.03 |
configure.tcc |
no-host |
48 |
44 |
201 |
52 |
4.16 |
1.07 |
configure.util-linux |
no-host |
14,433 |
15,369 |
32,769 |
15,036 |
2.27 |
1.04 |
configure.yash |
no-host |
1,885 |
1,834 |
2,542 |
1,911 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
34.30 |
1.98 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,532 |
1,082 |
22,833 |
3,167 |
9.02 |
1.25 |
bin-true |
no-host |
106,356 |
66,483 |
749,248 |
128,128 |
7.04 |
1.20 |
configure.cpython |
no-host |
2,221,243 |
2,250,202 |
6,145,303 |
2,222,627 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,064 |
390,742 |
637,054 |
412,756 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,479 |
23,227 |
6,978 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,093,917 |
2,256,250 |
5,285,642 |
1,998,033 |
2.52 |
0.95 |
configure.yash |
no-host |
255,533 |
245,028 |
384,139 |
257,758 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,721 |
352 |
24.32 |
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,727 |
3,727 |
0 |
681 |
1,877 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
825 |
1 |
2 |
2.6 |
8.0 |
154,692 |
12,992 |
2,799 |
9,731 |
78,346 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,738 |
2 |
67 |
15.0 |
27.5 |
1,772,668 |
49,197 |
28,508 |
86,378 |
908,098 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,036 |
3 |
68 |
21.3 |
30.1 |
2,703,404 |
44,766 |
65,792 |
109,640 |
1,320,596 |
1,273,168 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
4,024 |
1 |
2 |
2.6 |
20.6 |
150,038 |
11,045 |
5,138 |
7,510 |
71,634 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
52 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,501 |
14,801 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,911 |
1 |
2 |
2.6 |
24.2 |
139,695 |
7,964 |
6,600 |
6,317 |
70,306 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,270 |
64,455 |
42,663 |
4,552 |
54,546 |
57,172 |
478 |
3 |
85,326 |
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 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
6 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
411 |
45 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
10 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
689 |
509 |
213 |
2.9 |
bash |
9 |
no-host |
bin-true |
551 |
419 |
141 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,239 |
1,474 |
1,023 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
825 |
567 |
274 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,499 |
9,588 |
6,322 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,626 |
9,275 |
6,790 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,496 |
17,942 |
13,488 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,738 |
9,168 |
6,838 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,921 |
1,648 |
1,312 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,906 |
1,642 |
1,282 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,783 |
2,282 |
1,713 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,024 |
1,781 |
1,283 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
39 |
9 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
44 |
34 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
201 |
149 |
55 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
38 |
14 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,433 |
9,059 |
5,851 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,369 |
9,243 |
6,626 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,769 |
21,852 |
12,071 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,036 |
9,087 |
6,143 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,885 |
1,062 |
832 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,834 |
1,073 |
764 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,542 |
1,508 |
1,073 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,911 |
1,104 |
812 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
52 |
24 |
27 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,532 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,082 |
0 |
0 |
0 |
8 |
0 |
38 |
3 |
dash |
23 |
no-host |
abuild-print-help |
22,833 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,167 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,356 |
0 |
0 |
0 |
8 |
0 |
1,988 |
56 |
bash |
9 |
no-host |
bin-true |
66,483 |
0 |
0 |
0 |
8 |
0 |
1,986 |
45 |
dash |
17 |
no-host |
bin-true |
749,248 |
0 |
0 |
0 |
8 |
0 |
1,994 |
116 |
osh-cpython |
25 |
no-host |
bin-true |
128,128 |
0 |
0 |
0 |
16 |
0 |
1,987 |
60 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,243 |
0 |
0 |
0 |
32,928 |
0 |
14,605 |
1,019 |
bash |
10 |
no-host |
configure.cpython |
2,250,202 |
0 |
0 |
0 |
32,992 |
0 |
14,575 |
1,085 |
dash |
18 |
no-host |
configure.cpython |
6,145,303 |
0 |
0 |
0 |
27,512 |
0 |
13,198 |
1,217 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,222,627 |
0 |
0 |
0 |
27,520 |
0 |
13,261 |
1,114 |
osh-native |
4 |
no-host |
configure.ocaml |
410,064 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
215 |
bash |
12 |
no-host |
configure.ocaml |
390,742 |
0 |
0 |
0 |
5,112 |
0 |
1,892 |
167 |
dash |
20 |
no-host |
configure.ocaml |
637,054 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
194 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,756 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
161 |
osh-native |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
48 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,227 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,978 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,917 |
0 |
0 |
0 |
42,408 |
0 |
18,570 |
1,014 |
bash |
11 |
no-host |
configure.util-linux |
2,256,250 |
1 |
0 |
0 |
42,592 |
0 |
17,476 |
1,070 |
dash |
19 |
no-host |
configure.util-linux |
5,285,642 |
8 |
0 |
0 |
39,136 |
0 |
17,006 |
1,239 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,033 |
0 |
0 |
0 |
39,120 |
0 |
16,981 |
1,067 |
osh-native |
6 |
no-host |
configure.yash |
255,533 |
0 |
0 |
0 |
4,120 |
0 |
871 |
96 |
bash |
14 |
no-host |
configure.yash |
245,028 |
0 |
0 |
0 |
3,720 |
0 |
868 |
87 |
dash |
22 |
no-host |
configure.yash |
384,139 |
0 |
0 |
0 |
3,728 |
0 |
851 |
105 |
osh-cpython |
30 |
no-host |
configure.yash |
257,758 |
0 |
0 |
0 |
3,736 |
0 |
850 |
72 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,721 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host