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 |
449 |
22 |
23.51 |
1.16 |
bin-true |
no-host |
694 |
544 |
2,273 |
825 |
3.27 |
1.19 |
configure.cpython |
no-host |
15,415 |
15,595 |
29,364 |
15,735 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,867 |
3,849 |
4,664 |
3,921 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
44 |
192 |
51 |
4.03 |
1.08 |
configure.util-linux |
no-host |
14,385 |
15,345 |
32,521 |
14,899 |
2.26 |
1.04 |
configure.yash |
no-host |
1,826 |
1,802 |
2,475 |
1,885 |
1.35 |
1.03 |
hello-world |
no-host |
2 |
1 |
49 |
4 |
26.59 |
2.29 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,547 |
1,094 |
23,173 |
3,209 |
9.10 |
1.26 |
bin-true |
no-host |
108,331 |
65,432 |
750,425 |
129,150 |
6.93 |
1.19 |
configure.cpython |
no-host |
2,220,120 |
2,234,560 |
6,101,233 |
2,227,966 |
2.75 |
1.00 |
configure.ocaml |
no-host |
409,991 |
390,970 |
637,541 |
413,805 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,544 |
5,459 |
23,196 |
6,981 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,101,263 |
2,258,537 |
5,315,843 |
2,009,952 |
2.53 |
0.96 |
configure.yash |
no-host |
256,772 |
244,663 |
383,829 |
258,053 |
1.49 |
1.00 |
hello-world |
no-host |
153 |
85 |
3,651 |
346 |
23.86 |
2.26 |
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 |
4 |
0 |
0 |
0.3 |
6.0 |
3,720 |
3,720 |
0 |
684 |
1,872 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
825 |
1 |
2 |
2.7 |
8.0 |
154,685 |
12,990 |
2,797 |
11,737 |
78,341 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,735 |
2 |
65 |
15.8 |
27.4 |
1,772,601 |
49,195 |
28,506 |
101,770 |
908,048 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,899 |
3 |
62 |
22.2 |
30.1 |
2,703,265 |
44,764 |
65,790 |
126,121 |
1,320,492 |
1,256,652 |
49,081 |
41 |
131,580 |
1 |
configure.ocaml |
no-host |
3,921 |
1 |
2 |
2.7 |
20.6 |
150,027 |
11,043 |
5,136 |
8,602 |
71,626 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.1 |
30,520 |
30,520 |
0 |
1,599 |
14,796 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,885 |
1 |
2 |
2.6 |
24.2 |
139,684 |
7,962 |
6,598 |
7,554 |
70,298 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,263 |
64,453 |
42,661 |
4,609 |
54,541 |
57,113 |
478 |
3 |
85,322 |
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 |
16 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
449 |
418 |
34 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
694 |
523 |
202 |
2.9 |
bash |
9 |
no-host |
bin-true |
544 |
421 |
133 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,273 |
1,466 |
1,074 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
825 |
576 |
265 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,415 |
9,291 |
6,537 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,595 |
9,324 |
6,706 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,364 |
17,586 |
13,665 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,735 |
9,311 |
6,696 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,867 |
1,617 |
1,287 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,849 |
1,672 |
1,196 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,664 |
2,229 |
1,637 |
20.7 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,921 |
1,719 |
1,243 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
30 |
18 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
44 |
26 |
19 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
192 |
141 |
55 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
40 |
12 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,385 |
8,900 |
5,973 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,345 |
9,473 |
6,370 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,521 |
21,869 |
11,784 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,899 |
9,040 |
6,062 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,826 |
1,059 |
776 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,802 |
1,030 |
775 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,475 |
1,492 |
1,025 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,885 |
1,069 |
820 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
29 |
20 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
4 |
0 |
4 |
6.0 |
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,547 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,173 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,209 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
108,331 |
0 |
0 |
0 |
8 |
0 |
1,987 |
50 |
bash |
9 |
no-host |
bin-true |
65,432 |
0 |
0 |
0 |
8 |
0 |
1,984 |
55 |
dash |
17 |
no-host |
bin-true |
750,425 |
0 |
0 |
0 |
8 |
0 |
1,993 |
153 |
osh-cpython |
25 |
no-host |
bin-true |
129,150 |
0 |
0 |
0 |
16 |
0 |
1,990 |
52 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,120 |
0 |
0 |
0 |
32,928 |
0 |
14,466 |
1,265 |
bash |
10 |
no-host |
configure.cpython |
2,234,560 |
0 |
0 |
0 |
32,992 |
0 |
14,553 |
1,203 |
dash |
18 |
no-host |
configure.cpython |
6,101,233 |
0 |
0 |
0 |
27,512 |
0 |
13,268 |
1,237 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,966 |
0 |
0 |
0 |
27,520 |
0 |
13,223 |
961 |
osh-native |
4 |
no-host |
configure.ocaml |
409,991 |
0 |
0 |
0 |
5,120 |
0 |
1,957 |
178 |
bash |
12 |
no-host |
configure.ocaml |
390,970 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
164 |
dash |
20 |
no-host |
configure.ocaml |
637,541 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
220 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,805 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
169 |
osh-native |
5 |
no-host |
configure.tcc |
6,544 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,459 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,196 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,981 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,263 |
0 |
0 |
0 |
42,400 |
0 |
18,686 |
1,065 |
bash |
11 |
no-host |
configure.util-linux |
2,258,537 |
1 |
0 |
0 |
42,584 |
0 |
17,487 |
1,141 |
dash |
19 |
no-host |
configure.util-linux |
5,315,843 |
10 |
0 |
0 |
39,112 |
0 |
17,115 |
1,444 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,952 |
1 |
0 |
0 |
39,120 |
0 |
17,076 |
1,043 |
osh-native |
6 |
no-host |
configure.yash |
256,772 |
0 |
0 |
0 |
4,120 |
0 |
870 |
78 |
bash |
14 |
no-host |
configure.yash |
244,663 |
0 |
0 |
0 |
3,720 |
0 |
869 |
84 |
dash |
22 |
no-host |
configure.yash |
383,829 |
0 |
0 |
0 |
3,728 |
0 |
860 |
121 |
osh-cpython |
30 |
no-host |
configure.yash |
258,053 |
0 |
0 |
0 |
3,736 |
0 |
849 |
76 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,651 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host