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 |
451 |
23 |
23.25 |
1.16 |
bin-true |
no-host |
678 |
541 |
2,224 |
827 |
3.28 |
1.22 |
configure.cpython |
no-host |
14,922 |
14,956 |
28,300 |
15,152 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,780 |
3,713 |
4,603 |
3,809 |
1.22 |
1.01 |
configure.tcc |
no-host |
52 |
41 |
191 |
48 |
3.70 |
0.94 |
configure.util-linux |
no-host |
13,927 |
14,818 |
30,949 |
14,362 |
2.22 |
1.03 |
configure.yash |
no-host |
1,813 |
1,758 |
2,437 |
1,823 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
32.07 |
1.93 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,511 |
1,086 |
23,463 |
3,223 |
9.34 |
1.28 |
bin-true |
no-host |
107,391 |
65,431 |
750,661 |
130,131 |
6.99 |
1.21 |
configure.cpython |
no-host |
2,221,583 |
2,239,481 |
6,135,386 |
2,232,092 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,709 |
390,998 |
639,618 |
414,113 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,581 |
5,483 |
23,267 |
7,019 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,096,384 |
2,257,800 |
5,325,073 |
2,019,711 |
2.54 |
0.96 |
configure.yash |
no-host |
256,302 |
244,108 |
384,043 |
258,363 |
1.50 |
1.01 |
hello-world |
no-host |
148 |
82 |
3,688 |
348 |
24.92 |
2.35 |
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,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
827 |
1 |
2 |
2.7 |
8.3 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,152 |
1 |
60 |
15.8 |
27.3 |
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,362 |
3 |
58 |
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,809 |
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 |
48 |
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,823 |
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 |
23 |
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 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
451 |
413 |
42 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
9 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
678 |
493 |
217 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
414 |
136 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,224 |
1,493 |
989 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
827 |
593 |
251 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
14,922 |
9,008 |
6,307 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,956 |
9,058 |
6,317 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,300 |
17,239 |
12,882 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,152 |
9,063 |
6,358 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,780 |
1,612 |
1,208 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,713 |
1,608 |
1,124 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,603 |
2,183 |
1,626 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,809 |
1,606 |
1,239 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
52 |
32 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
28 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
135 |
60 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
22 |
27 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,927 |
8,726 |
5,677 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,818 |
9,125 |
6,195 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,949 |
20,876 |
11,159 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,362 |
8,680 |
5,879 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,813 |
1,079 |
740 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,758 |
1,044 |
717 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,437 |
1,498 |
982 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,823 |
1,086 |
740 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
36 |
12 |
17.3 |
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,511 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,086 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,463 |
0 |
0 |
0 |
8 |
0 |
47 |
5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,223 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,391 |
0 |
0 |
0 |
8 |
0 |
1,987 |
60 |
bash |
9 |
no-host |
bin-true |
65,431 |
0 |
0 |
0 |
8 |
0 |
1,990 |
49 |
dash |
17 |
no-host |
bin-true |
750,661 |
0 |
0 |
0 |
8 |
0 |
1,996 |
212 |
osh-cpython |
25 |
no-host |
bin-true |
130,131 |
0 |
0 |
0 |
16 |
0 |
1,989 |
119 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,583 |
0 |
0 |
0 |
32,928 |
0 |
14,537 |
1,176 |
bash |
10 |
no-host |
configure.cpython |
2,239,481 |
0 |
0 |
0 |
32,992 |
0 |
14,657 |
1,072 |
dash |
18 |
no-host |
configure.cpython |
6,135,386 |
0 |
0 |
0 |
27,512 |
0 |
12,980 |
1,231 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,092 |
0 |
0 |
0 |
27,520 |
0 |
13,309 |
1,366 |
osh-native |
4 |
no-host |
configure.ocaml |
410,709 |
0 |
0 |
0 |
5,120 |
0 |
1,941 |
163 |
bash |
12 |
no-host |
configure.ocaml |
390,998 |
0 |
0 |
0 |
5,112 |
0 |
1,884 |
154 |
dash |
20 |
no-host |
configure.ocaml |
639,618 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
179 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,113 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
183 |
osh-native |
5 |
no-host |
configure.tcc |
6,581 |
0 |
0 |
0 |
104 |
0 |
51 |
10 |
bash |
13 |
no-host |
configure.tcc |
5,483 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,267 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,019 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,384 |
1 |
0 |
0 |
42,400 |
0 |
18,524 |
1,101 |
bash |
11 |
no-host |
configure.util-linux |
2,257,800 |
0 |
0 |
0 |
42,584 |
0 |
17,430 |
1,132 |
dash |
19 |
no-host |
configure.util-linux |
5,325,073 |
8 |
0 |
0 |
39,112 |
0 |
17,064 |
1,240 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,019,711 |
0 |
0 |
0 |
39,120 |
0 |
17,038 |
1,106 |
osh-native |
6 |
no-host |
configure.yash |
256,302 |
0 |
0 |
0 |
4,120 |
0 |
874 |
77 |
bash |
14 |
no-host |
configure.yash |
244,108 |
0 |
0 |
0 |
3,720 |
0 |
867 |
72 |
dash |
22 |
no-host |
configure.yash |
384,043 |
0 |
0 |
0 |
3,728 |
0 |
857 |
83 |
osh-cpython |
30 |
no-host |
configure.yash |
258,363 |
0 |
0 |
0 |
3,736 |
0 |
851 |
84 |
osh-native |
0 |
no-host |
hello-world |
148 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,688 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host