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 |
9 |
452 |
22 |
23.55 |
1.13 |
bin-true |
no-host |
681 |
545 |
2,274 |
817 |
3.34 |
1.20 |
configure.cpython |
no-host |
15,072 |
15,196 |
28,738 |
15,390 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,836 |
3,767 |
4,681 |
3,853 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
194 |
49 |
4.07 |
1.04 |
configure.util-linux |
no-host |
14,033 |
14,924 |
31,384 |
14,484 |
2.24 |
1.03 |
configure.yash |
no-host |
1,821 |
1,774 |
2,501 |
1,849 |
1.37 |
1.02 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
30.92 |
1.80 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,557 |
1,090 |
22,964 |
3,163 |
8.98 |
1.24 |
bin-true |
no-host |
107,392 |
67,372 |
760,870 |
126,168 |
7.08 |
1.17 |
configure.cpython |
no-host |
2,229,571 |
2,241,053 |
6,181,662 |
2,225,715 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,646 |
391,309 |
641,102 |
413,666 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,532 |
5,483 |
23,300 |
6,985 |
3.57 |
1.07 |
configure.util-linux |
no-host |
2,102,107 |
2,263,393 |
5,336,915 |
1,999,629 |
2.54 |
0.95 |
configure.yash |
no-host |
256,813 |
245,121 |
385,707 |
258,111 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,697 |
345 |
24.32 |
2.27 |
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 |
817 |
1 |
2 |
2.6 |
7.9 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,390 |
1 |
61 |
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,484 |
3 |
60 |
21.3 |
30.1 |
2,703,426 |
42,745 |
65,832 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,853 |
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 |
49 |
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,849 |
1 |
2 |
2.6 |
24.5 |
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 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
405 |
50 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
681 |
512 |
203 |
3.0 |
bash |
9 |
no-host |
bin-true |
545 |
423 |
133 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,274 |
1,469 |
1,064 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
580 |
253 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,072 |
9,173 |
6,292 |
27.1 |
bash |
10 |
no-host |
configure.cpython |
15,196 |
9,403 |
6,205 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,738 |
17,677 |
12,915 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,390 |
8,993 |
6,667 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,836 |
1,650 |
1,212 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,767 |
1,596 |
1,190 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,681 |
2,231 |
1,657 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,853 |
1,626 |
1,266 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
38 |
10 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
31 |
11 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
133 |
63 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
25 |
25 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,033 |
8,859 |
5,644 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,924 |
9,206 |
6,210 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,384 |
21,022 |
11,454 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,484 |
8,789 |
5,886 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,821 |
1,077 |
753 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,774 |
1,005 |
773 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,501 |
1,573 |
973 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,849 |
1,083 |
770 |
24.5 |
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 |
49 |
37 |
12 |
17.4 |
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,557 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,090 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,964 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,163 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
1 |
no-host |
bin-true |
107,392 |
0 |
0 |
0 |
8 |
0 |
1,990 |
88 |
bash |
9 |
no-host |
bin-true |
67,372 |
0 |
0 |
0 |
8 |
0 |
1,987 |
62 |
dash |
17 |
no-host |
bin-true |
760,870 |
0 |
0 |
0 |
8 |
0 |
2,000 |
396 |
osh-cpython |
25 |
no-host |
bin-true |
126,168 |
0 |
0 |
0 |
16 |
0 |
1,989 |
109 |
osh-native |
2 |
no-host |
configure.cpython |
2,229,571 |
0 |
0 |
0 |
32,928 |
0 |
14,518 |
974 |
bash |
10 |
no-host |
configure.cpython |
2,241,053 |
0 |
0 |
0 |
32,992 |
0 |
14,569 |
1,096 |
dash |
18 |
no-host |
configure.cpython |
6,181,662 |
6 |
0 |
0 |
27,512 |
0 |
13,278 |
1,141 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,715 |
1 |
0 |
0 |
27,520 |
0 |
13,279 |
941 |
osh-native |
4 |
no-host |
configure.ocaml |
410,646 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
138 |
bash |
12 |
no-host |
configure.ocaml |
391,309 |
0 |
0 |
0 |
5,112 |
0 |
1,901 |
150 |
dash |
20 |
no-host |
configure.ocaml |
641,102 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
178 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,666 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
167 |
osh-native |
5 |
no-host |
configure.tcc |
6,532 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,483 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,300 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,985 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
3 |
no-host |
configure.util-linux |
2,102,107 |
0 |
0 |
0 |
42,400 |
0 |
18,576 |
961 |
bash |
11 |
no-host |
configure.util-linux |
2,263,393 |
0 |
0 |
0 |
42,584 |
0 |
17,452 |
1,113 |
dash |
19 |
no-host |
configure.util-linux |
5,336,915 |
11 |
0 |
0 |
39,112 |
0 |
16,930 |
1,395 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,629 |
1 |
0 |
0 |
39,128 |
0 |
17,001 |
971 |
osh-native |
6 |
no-host |
configure.yash |
256,813 |
0 |
0 |
0 |
4,120 |
0 |
870 |
88 |
bash |
14 |
no-host |
configure.yash |
245,121 |
0 |
0 |
0 |
3,720 |
0 |
866 |
68 |
dash |
22 |
no-host |
configure.yash |
385,707 |
0 |
0 |
0 |
3,728 |
0 |
852 |
112 |
osh-cpython |
30 |
no-host |
configure.yash |
258,111 |
0 |
0 |
0 |
3,736 |
0 |
848 |
75 |
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,697 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host