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 |
9 |
460 |
23 |
23.55 |
1.16 |
bin-true |
no-host |
671 |
547 |
2,261 |
814 |
3.37 |
1.21 |
configure.cpython |
no-host |
15,321 |
15,383 |
28,986 |
15,564 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,877 |
3,797 |
4,704 |
3,882 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
196 |
49 |
4.05 |
1.02 |
configure.util-linux |
no-host |
14,202 |
15,203 |
31,800 |
14,689 |
2.24 |
1.03 |
configure.yash |
no-host |
1,852 |
1,812 |
2,497 |
1,860 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
29.39 |
1.83 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,525 |
1,092 |
23,466 |
3,205 |
9.29 |
1.27 |
bin-true |
no-host |
102,359 |
66,436 |
751,672 |
126,236 |
7.34 |
1.23 |
configure.cpython |
no-host |
2,227,790 |
2,246,038 |
6,137,740 |
2,233,479 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,083 |
390,950 |
640,314 |
413,706 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,575 |
5,485 |
23,287 |
7,007 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,096,060 |
2,256,610 |
5,325,485 |
2,021,384 |
2.54 |
0.96 |
configure.yash |
no-host |
256,188 |
244,423 |
384,417 |
258,995 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
79 |
3,682 |
343 |
24.07 |
2.24 |
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 |
814 |
1 |
2 |
2.7 |
7.9 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,564 |
1 |
63 |
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,689 |
3 |
64 |
22.2 |
30.3 |
2,703,404 |
44,766 |
65,792 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,882 |
1 |
2 |
2.7 |
20.6 |
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.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,860 |
1 |
2 |
2.6 |
24.5 |
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.8 |
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 |
20 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
460 |
409 |
54 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
7 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
671 |
497 |
204 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
416 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,261 |
1,483 |
1,040 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
598 |
232 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,321 |
9,412 |
6,310 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,383 |
9,439 |
6,370 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,986 |
17,556 |
13,301 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,564 |
9,077 |
6,760 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,877 |
1,624 |
1,282 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,797 |
1,635 |
1,182 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,704 |
2,247 |
1,667 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,882 |
1,762 |
1,159 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
29 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
20 |
22 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
196 |
139 |
59 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,202 |
8,972 |
5,706 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,203 |
9,249 |
6,458 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,800 |
21,264 |
11,648 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,689 |
8,991 |
5,891 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,852 |
1,064 |
796 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,812 |
1,055 |
759 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,497 |
1,478 |
1,063 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,860 |
1,073 |
792 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
21 |
29 |
17.3 |
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,525 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,092 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,466 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,205 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
102,359 |
0 |
0 |
0 |
8 |
0 |
1,993 |
88 |
bash |
9 |
no-host |
bin-true |
66,436 |
0 |
0 |
0 |
8 |
0 |
1,992 |
67 |
dash |
17 |
no-host |
bin-true |
751,672 |
0 |
0 |
0 |
8 |
0 |
1,993 |
122 |
osh-cpython |
25 |
no-host |
bin-true |
126,236 |
0 |
0 |
0 |
16 |
0 |
1,985 |
51 |
osh-native |
2 |
no-host |
configure.cpython |
2,227,790 |
0 |
0 |
0 |
32,928 |
0 |
14,470 |
1,076 |
bash |
10 |
no-host |
configure.cpython |
2,246,038 |
1 |
0 |
0 |
32,992 |
0 |
14,654 |
1,227 |
dash |
18 |
no-host |
configure.cpython |
6,137,740 |
1 |
0 |
0 |
27,512 |
0 |
13,325 |
1,205 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,479 |
0 |
0 |
0 |
27,520 |
0 |
13,303 |
1,135 |
osh-native |
4 |
no-host |
configure.ocaml |
410,083 |
0 |
0 |
0 |
5,120 |
0 |
1,960 |
175 |
bash |
12 |
no-host |
configure.ocaml |
390,950 |
0 |
0 |
0 |
5,112 |
0 |
1,891 |
134 |
dash |
20 |
no-host |
configure.ocaml |
640,314 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
159 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,706 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
148 |
osh-native |
5 |
no-host |
configure.tcc |
6,575 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,485 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,287 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,007 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,060 |
1 |
0 |
0 |
42,400 |
0 |
18,618 |
1,048 |
bash |
11 |
no-host |
configure.util-linux |
2,256,610 |
0 |
0 |
0 |
42,584 |
0 |
17,614 |
1,267 |
dash |
19 |
no-host |
configure.util-linux |
5,325,485 |
10 |
0 |
0 |
39,112 |
0 |
17,030 |
1,195 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,021,384 |
3 |
0 |
0 |
39,120 |
0 |
17,044 |
1,003 |
osh-native |
6 |
no-host |
configure.yash |
256,188 |
0 |
0 |
0 |
4,120 |
0 |
871 |
83 |
bash |
14 |
no-host |
configure.yash |
244,423 |
0 |
0 |
0 |
3,720 |
0 |
867 |
73 |
dash |
22 |
no-host |
configure.yash |
384,417 |
0 |
0 |
0 |
3,728 |
0 |
858 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
258,995 |
0 |
0 |
0 |
3,736 |
0 |
851 |
62 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,682 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host