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 |
453 |
23 |
22.35 |
1.11 |
bin-true |
no-host |
676 |
542 |
2,205 |
828 |
3.26 |
1.22 |
configure.cpython |
no-host |
15,036 |
15,126 |
28,394 |
15,343 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,794 |
3,756 |
4,624 |
3,831 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
191 |
50 |
4.02 |
1.04 |
configure.util-linux |
no-host |
14,038 |
14,900 |
31,016 |
14,434 |
2.21 |
1.03 |
configure.yash |
no-host |
1,825 |
1,761 |
2,437 |
1,843 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
31.55 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,537 |
1,098 |
23,078 |
3,192 |
9.10 |
1.26 |
bin-true |
no-host |
107,314 |
65,467 |
736,008 |
132,153 |
6.86 |
1.23 |
configure.cpython |
no-host |
2,223,584 |
2,241,578 |
6,094,030 |
2,234,883 |
2.74 |
1.01 |
configure.ocaml |
no-host |
410,926 |
390,975 |
634,359 |
413,431 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,571 |
5,479 |
23,033 |
6,961 |
3.51 |
1.06 |
configure.util-linux |
no-host |
2,092,941 |
2,258,378 |
5,296,065 |
2,018,098 |
2.53 |
0.96 |
configure.yash |
no-host |
255,929 |
244,961 |
383,800 |
258,994 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,649 |
345 |
23.85 |
2.25 |
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.2 |
6.3 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
828 |
1 |
2 |
2.7 |
8.0 |
154,658 |
12,890 |
2,792 |
11,730 |
78,319 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,343 |
1 |
61 |
15.9 |
27.5 |
1,772,935 |
49,191 |
28,502 |
101,923 |
908,314 |
762,698 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,434 |
2 |
59 |
22.2 |
30.0 |
2,703,259 |
44,760 |
65,806 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,831 |
1 |
2 |
2.7 |
20.6 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,843 |
1 |
2 |
2.6 |
24.2 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,221 |
64,449 |
42,657 |
4,601 |
54,503 |
57,117 |
478 |
3 |
85,314 |
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 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
453 |
381 |
76 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
12 |
11 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
676 |
507 |
202 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
408 |
143 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,205 |
1,426 |
1,024 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
828 |
570 |
273 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,036 |
8,973 |
6,465 |
27.1 |
bash |
10 |
no-host |
configure.cpython |
15,126 |
9,084 |
6,451 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,394 |
17,170 |
13,014 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,343 |
8,856 |
6,745 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,794 |
1,633 |
1,199 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,756 |
1,535 |
1,238 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,624 |
2,231 |
1,591 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,831 |
1,641 |
1,224 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
153 |
42 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
22 |
28 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,038 |
8,915 |
5,590 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,900 |
9,081 |
6,304 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,016 |
20,836 |
11,221 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,434 |
8,928 |
5,703 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,825 |
1,113 |
721 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,761 |
1,029 |
735 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,437 |
1,522 |
956 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,843 |
1,081 |
766 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
31 |
15 |
17.2 |
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,537 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,098 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,078 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,192 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,314 |
0 |
0 |
0 |
8 |
0 |
1,986 |
36 |
bash |
9 |
no-host |
bin-true |
65,467 |
0 |
0 |
0 |
8 |
0 |
1,986 |
48 |
dash |
17 |
no-host |
bin-true |
736,008 |
0 |
0 |
0 |
8 |
0 |
1,998 |
300 |
osh-cpython |
25 |
no-host |
bin-true |
132,153 |
0 |
0 |
0 |
16 |
0 |
1,992 |
80 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,584 |
0 |
0 |
0 |
32,928 |
0 |
14,554 |
1,039 |
bash |
10 |
no-host |
configure.cpython |
2,241,578 |
0 |
0 |
0 |
32,992 |
0 |
14,602 |
1,100 |
dash |
18 |
no-host |
configure.cpython |
6,094,030 |
1 |
0 |
0 |
27,512 |
0 |
13,242 |
1,177 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,883 |
0 |
0 |
0 |
27,520 |
0 |
13,303 |
1,318 |
osh-native |
4 |
no-host |
configure.ocaml |
410,926 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
154 |
bash |
12 |
no-host |
configure.ocaml |
390,975 |
0 |
0 |
0 |
5,112 |
0 |
1,883 |
145 |
dash |
20 |
no-host |
configure.ocaml |
634,359 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
196 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,431 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
145 |
osh-native |
5 |
no-host |
configure.tcc |
6,571 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,033 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,961 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,092,941 |
0 |
0 |
0 |
42,408 |
0 |
18,558 |
1,070 |
bash |
11 |
no-host |
configure.util-linux |
2,258,378 |
0 |
0 |
0 |
42,592 |
0 |
17,431 |
1,053 |
dash |
19 |
no-host |
configure.util-linux |
5,296,065 |
6 |
0 |
0 |
39,112 |
0 |
17,074 |
1,184 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,018,098 |
0 |
0 |
0 |
39,120 |
0 |
17,185 |
951 |
osh-native |
6 |
no-host |
configure.yash |
255,929 |
0 |
0 |
0 |
4,120 |
0 |
866 |
83 |
bash |
14 |
no-host |
configure.yash |
244,961 |
0 |
0 |
0 |
3,720 |
0 |
871 |
73 |
dash |
22 |
no-host |
configure.yash |
383,800 |
0 |
0 |
0 |
3,728 |
0 |
855 |
81 |
osh-cpython |
30 |
no-host |
configure.yash |
258,994 |
0 |
0 |
0 |
3,736 |
0 |
853 |
84 |
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,649 |
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