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 |
24 |
11 |
524 |
26 |
22.27 |
1.11 |
bin-true |
no-host |
660 |
634 |
2,690 |
990 |
4.08 |
1.50 |
configure.cpython |
no-host |
16,756 |
17,874 |
33,844 |
18,296 |
2.02 |
1.09 |
configure.ocaml |
no-host |
4,330 |
4,258 |
5,328 |
4,377 |
1.23 |
1.01 |
configure.tcc |
no-host |
57 |
50 |
227 |
61 |
3.97 |
1.07 |
configure.util-linux |
no-host |
16,636 |
17,782 |
37,262 |
15,356 |
2.24 |
0.92 |
configure.yash |
no-host |
2,151 |
2,094 |
2,915 |
2,213 |
1.36 |
1.03 |
hello-world |
no-host |
2 |
1 |
56 |
3 |
37.16 |
2.21 |
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,087 |
22,837 |
3,166 |
8.98 |
1.24 |
bin-true |
no-host |
106,425 |
67,465 |
752,381 |
128,467 |
7.07 |
1.21 |
configure.cpython |
no-host |
2,225,857 |
2,242,852 |
6,112,426 |
2,220,877 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,923 |
390,741 |
638,315 |
413,510 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,564 |
5,469 |
23,227 |
7,003 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,102,232 |
2,259,099 |
5,286,984 |
1,992,997 |
2.51 |
0.95 |
configure.yash |
no-host |
255,181 |
244,428 |
384,065 |
258,058 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
85 |
3,696 |
350 |
24.48 |
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,736 |
3,736 |
0 |
681 |
1,886 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
990 |
1 |
2 |
2.6 |
8.0 |
154,701 |
13,053 |
2,806 |
9,731 |
78,355 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
18,296 |
2 |
79 |
15.0 |
27.4 |
1,772,677 |
49,204 |
28,515 |
86,378 |
908,107 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,356 |
3 |
70 |
21.3 |
30.4 |
2,703,413 |
44,774 |
65,800 |
109,640 |
1,320,605 |
1,273,168 |
49,081 |
41 |
131,600 |
1 |
configure.ocaml |
no-host |
4,377 |
1 |
2 |
2.6 |
20.6 |
150,047 |
11,053 |
5,146 |
7,510 |
71,643 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
61 |
0 |
0 |
1.3 |
19.3 |
30,536 |
30,536 |
0 |
1,501 |
14,810 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
2,213 |
1 |
3 |
2.6 |
24.2 |
139,704 |
7,971 |
6,607 |
6,317 |
70,315 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
26 |
1 |
2 |
2.8 |
9.0 |
116,279 |
64,462 |
42,670 |
4,552 |
54,555 |
57,172 |
478 |
3 |
85,340 |
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 |
24 |
17 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
11 |
6 |
6 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
524 |
478 |
50 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
26 |
19 |
8 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
660 |
486 |
203 |
2.9 |
bash |
9 |
no-host |
bin-true |
634 |
466 |
183 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,690 |
1,603 |
1,387 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
990 |
647 |
364 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
16,756 |
10,113 |
7,091 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
17,874 |
10,835 |
7,544 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
33,844 |
20,343 |
15,671 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
18,296 |
10,644 |
7,989 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
4,330 |
1,961 |
1,419 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
4,258 |
1,878 |
1,404 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
5,328 |
2,689 |
1,890 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,377 |
1,888 |
1,540 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
57 |
39 |
19 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
50 |
30 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
227 |
156 |
75 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
61 |
33 |
29 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
16,636 |
10,248 |
6,933 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
17,782 |
10,650 |
7,737 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
37,262 |
24,464 |
14,100 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,356 |
9,251 |
6,319 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
2,151 |
1,302 |
857 |
24.4 |
bash |
14 |
no-host |
configure.yash |
2,094 |
1,217 |
882 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,915 |
1,799 |
1,166 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
2,213 |
1,227 |
989 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
56 |
28 |
27 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,543 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,087 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,837 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,166 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,425 |
0 |
0 |
0 |
8 |
0 |
1,989 |
98 |
bash |
9 |
no-host |
bin-true |
67,465 |
0 |
0 |
0 |
8 |
0 |
1,989 |
41 |
dash |
17 |
no-host |
bin-true |
752,381 |
0 |
0 |
0 |
8 |
0 |
1,987 |
398 |
osh-cpython |
25 |
no-host |
bin-true |
128,467 |
0 |
0 |
0 |
16 |
0 |
1,992 |
123 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,857 |
0 |
0 |
0 |
32,928 |
0 |
14,498 |
1,142 |
bash |
10 |
no-host |
configure.cpython |
2,242,852 |
0 |
0 |
0 |
32,992 |
0 |
14,558 |
1,161 |
dash |
18 |
no-host |
configure.cpython |
6,112,426 |
0 |
0 |
0 |
27,512 |
0 |
13,190 |
1,419 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,220,877 |
0 |
0 |
0 |
27,520 |
0 |
13,522 |
1,201 |
osh-native |
4 |
no-host |
configure.ocaml |
410,923 |
0 |
0 |
0 |
5,120 |
0 |
1,943 |
161 |
bash |
12 |
no-host |
configure.ocaml |
390,741 |
0 |
0 |
0 |
5,112 |
0 |
1,923 |
150 |
dash |
20 |
no-host |
configure.ocaml |
638,315 |
0 |
0 |
0 |
5,112 |
0 |
1,874 |
207 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,510 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
154 |
osh-native |
5 |
no-host |
configure.tcc |
6,564 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,469 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,227 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,003 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,102,232 |
1 |
0 |
0 |
42,408 |
0 |
18,558 |
1,282 |
bash |
11 |
no-host |
configure.util-linux |
2,259,099 |
0 |
0 |
0 |
42,592 |
0 |
17,454 |
1,208 |
dash |
19 |
no-host |
configure.util-linux |
5,286,984 |
12 |
0 |
0 |
39,128 |
0 |
16,948 |
1,471 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,992,997 |
0 |
0 |
0 |
39,128 |
0 |
16,999 |
1,034 |
osh-native |
6 |
no-host |
configure.yash |
255,181 |
0 |
0 |
0 |
4,120 |
0 |
870 |
110 |
bash |
14 |
no-host |
configure.yash |
244,428 |
0 |
0 |
0 |
3,720 |
0 |
869 |
98 |
dash |
22 |
no-host |
configure.yash |
384,065 |
0 |
0 |
0 |
3,728 |
0 |
855 |
129 |
osh-cpython |
30 |
no-host |
configure.yash |
258,058 |
0 |
0 |
0 |
3,736 |
0 |
847 |
289 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,696 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host