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 |
443 |
22 |
23.01 |
1.16 |
bin-true |
no-host |
674 |
548 |
2,205 |
802 |
3.27 |
1.19 |
configure.cpython |
no-host |
14,728 |
14,831 |
28,111 |
14,982 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,744 |
3,704 |
4,561 |
3,776 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
191 |
49 |
4.04 |
1.04 |
configure.util-linux |
no-host |
13,792 |
14,662 |
30,564 |
14,257 |
2.22 |
1.03 |
configure.yash |
no-host |
1,805 |
1,743 |
2,387 |
1,793 |
1.32 |
0.99 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
34.89 |
2.08 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,540 |
1,085 |
23,430 |
3,229 |
9.22 |
1.27 |
bin-true |
no-host |
104,427 |
65,400 |
752,769 |
126,178 |
7.21 |
1.21 |
configure.cpython |
no-host |
2,214,990 |
2,241,663 |
6,128,517 |
2,236,348 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,105 |
391,790 |
640,406 |
413,564 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,569 |
5,483 |
23,291 |
6,989 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,091,084 |
2,254,673 |
5,326,425 |
2,017,349 |
2.55 |
0.96 |
configure.yash |
no-host |
257,099 |
244,195 |
384,351 |
258,510 |
1.49 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,679 |
347 |
23.89 |
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.3 |
6.3 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
802 |
1 |
2 |
2.7 |
8.1 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,982 |
1 |
56 |
15.8 |
27.5 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,257 |
2 |
57 |
22.2 |
30.1 |
2,703,404 |
44,766 |
65,812 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,776 |
1 |
2 |
2.7 |
20.4 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,793 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
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 |
12 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
443 |
420 |
25 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
674 |
502 |
196 |
3.0 |
bash |
9 |
no-host |
bin-true |
548 |
429 |
128 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,205 |
1,515 |
944 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
802 |
566 |
250 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,728 |
8,895 |
6,229 |
27.0 |
bash |
10 |
no-host |
configure.cpython |
14,831 |
8,960 |
6,286 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,111 |
17,428 |
12,502 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,982 |
8,778 |
6,468 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,744 |
1,558 |
1,226 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,704 |
1,512 |
1,210 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,561 |
2,200 |
1,564 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,776 |
1,563 |
1,252 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
30 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
35 |
7 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
135 |
59 |
19.5 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
35 |
15 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,792 |
8,708 |
5,554 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,662 |
9,156 |
5,996 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,564 |
20,454 |
11,164 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,257 |
8,497 |
5,918 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,805 |
1,005 |
808 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,743 |
1,042 |
705 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,387 |
1,471 |
957 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,793 |
1,077 |
719 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
31 |
19 |
17.1 |
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,540 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,085 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,430 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,229 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
104,427 |
0 |
0 |
0 |
8 |
0 |
1,988 |
48 |
bash |
9 |
no-host |
bin-true |
65,400 |
0 |
0 |
0 |
8 |
0 |
1,990 |
173 |
dash |
17 |
no-host |
bin-true |
752,769 |
0 |
0 |
0 |
8 |
0 |
1,996 |
125 |
osh-cpython |
25 |
no-host |
bin-true |
126,178 |
0 |
0 |
0 |
16 |
0 |
1,990 |
66 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,990 |
0 |
0 |
0 |
32,928 |
0 |
14,520 |
1,005 |
bash |
10 |
no-host |
configure.cpython |
2,241,663 |
0 |
0 |
0 |
32,992 |
0 |
14,612 |
1,052 |
dash |
18 |
no-host |
configure.cpython |
6,128,517 |
1 |
0 |
0 |
27,512 |
0 |
13,221 |
1,214 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,348 |
0 |
0 |
0 |
27,520 |
0 |
13,329 |
1,192 |
osh-native |
4 |
no-host |
configure.ocaml |
410,105 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
200 |
bash |
12 |
no-host |
configure.ocaml |
391,790 |
0 |
0 |
0 |
5,112 |
0 |
1,944 |
173 |
dash |
20 |
no-host |
configure.ocaml |
640,406 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
186 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,564 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
170 |
osh-native |
5 |
no-host |
configure.tcc |
6,569 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,483 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,291 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,989 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,091,084 |
0 |
0 |
0 |
42,408 |
0 |
18,580 |
1,266 |
bash |
11 |
no-host |
configure.util-linux |
2,254,673 |
1 |
0 |
0 |
42,592 |
0 |
17,453 |
1,187 |
dash |
19 |
no-host |
configure.util-linux |
5,326,425 |
6 |
0 |
0 |
39,112 |
0 |
17,047 |
1,298 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,349 |
2 |
0 |
0 |
39,120 |
0 |
17,061 |
1,352 |
osh-native |
6 |
no-host |
configure.yash |
257,099 |
0 |
0 |
0 |
4,120 |
0 |
869 |
90 |
bash |
14 |
no-host |
configure.yash |
244,195 |
0 |
0 |
0 |
3,720 |
0 |
870 |
79 |
dash |
22 |
no-host |
configure.yash |
384,351 |
0 |
0 |
0 |
3,728 |
0 |
856 |
88 |
osh-cpython |
30 |
no-host |
configure.yash |
258,510 |
0 |
0 |
0 |
3,736 |
0 |
850 |
101 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,679 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host