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 |
454 |
22 |
23.97 |
1.18 |
bin-true |
no-host |
666 |
545 |
2,232 |
814 |
3.35 |
1.22 |
configure.cpython |
no-host |
15,011 |
15,129 |
28,475 |
15,254 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,843 |
3,744 |
4,628 |
3,829 |
1.20 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
196 |
49 |
4.09 |
1.02 |
configure.util-linux |
no-host |
14,017 |
14,896 |
31,074 |
14,462 |
2.22 |
1.03 |
configure.yash |
no-host |
1,821 |
1,778 |
2,465 |
1,847 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.05 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,526 |
1,098 |
23,552 |
3,229 |
9.32 |
1.28 |
bin-true |
no-host |
104,358 |
66,498 |
754,136 |
127,242 |
7.23 |
1.22 |
configure.cpython |
no-host |
2,228,603 |
2,243,086 |
6,158,332 |
2,231,547 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,445 |
391,003 |
639,613 |
413,669 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,553 |
5,478 |
23,277 |
6,988 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,091,442 |
2,257,835 |
5,341,135 |
2,024,274 |
2.55 |
0.97 |
configure.yash |
no-host |
256,259 |
245,078 |
386,142 |
258,484 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
83 |
3,677 |
346 |
24.03 |
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 |
3 |
0 |
0 |
0.3 |
6.0 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
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 |
15,254 |
1 |
60 |
15.8 |
27.4 |
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,462 |
2 |
61 |
22.2 |
30.1 |
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,829 |
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.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,847 |
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 |
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 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
454 |
412 |
46 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
666 |
493 |
206 |
3.0 |
bash |
9 |
no-host |
bin-true |
545 |
417 |
136 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,232 |
1,439 |
1,050 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
575 |
253 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,011 |
9,165 |
6,242 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,129 |
9,081 |
6,469 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,475 |
17,334 |
12,991 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,254 |
8,999 |
6,528 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,843 |
1,623 |
1,251 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,744 |
1,517 |
1,246 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,628 |
2,282 |
1,553 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,829 |
1,603 |
1,267 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
37 |
11 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
21 |
21 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
196 |
149 |
49 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
20 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,017 |
8,786 |
5,718 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,896 |
9,141 |
6,256 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,074 |
20,707 |
11,450 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,462 |
8,793 |
5,871 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,821 |
1,110 |
719 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,778 |
1,102 |
679 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,465 |
1,473 |
1,037 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,847 |
1,080 |
771 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,526 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,098 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,552 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,229 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,358 |
0 |
0 |
0 |
8 |
0 |
1,991 |
34 |
bash |
9 |
no-host |
bin-true |
66,498 |
0 |
0 |
0 |
8 |
0 |
1,996 |
34 |
dash |
17 |
no-host |
bin-true |
754,136 |
0 |
0 |
0 |
8 |
0 |
2,002 |
356 |
osh-cpython |
25 |
no-host |
bin-true |
127,242 |
0 |
0 |
0 |
16 |
0 |
1,990 |
100 |
osh-native |
2 |
no-host |
configure.cpython |
2,228,603 |
0 |
0 |
0 |
32,928 |
0 |
14,512 |
1,275 |
bash |
10 |
no-host |
configure.cpython |
2,243,086 |
2 |
0 |
0 |
32,992 |
0 |
14,625 |
1,191 |
dash |
18 |
no-host |
configure.cpython |
6,158,332 |
0 |
0 |
0 |
27,512 |
0 |
13,316 |
1,154 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,547 |
0 |
0 |
0 |
27,520 |
0 |
13,238 |
1,029 |
osh-native |
4 |
no-host |
configure.ocaml |
410,445 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
197 |
bash |
12 |
no-host |
configure.ocaml |
391,003 |
0 |
0 |
0 |
5,112 |
0 |
1,901 |
188 |
dash |
20 |
no-host |
configure.ocaml |
639,613 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
214 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,669 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
167 |
osh-native |
5 |
no-host |
configure.tcc |
6,553 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,277 |
0 |
0 |
0 |
96 |
0 |
52 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,988 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,091,442 |
1 |
0 |
0 |
42,400 |
0 |
18,832 |
1,032 |
bash |
11 |
no-host |
configure.util-linux |
2,257,835 |
1 |
0 |
0 |
42,584 |
0 |
17,469 |
1,131 |
dash |
19 |
no-host |
configure.util-linux |
5,341,135 |
5 |
0 |
0 |
39,112 |
0 |
17,064 |
1,278 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,024,274 |
2 |
0 |
0 |
39,120 |
0 |
17,065 |
1,021 |
osh-native |
6 |
no-host |
configure.yash |
256,259 |
0 |
0 |
0 |
4,120 |
0 |
869 |
80 |
bash |
14 |
no-host |
configure.yash |
245,078 |
0 |
0 |
0 |
3,720 |
0 |
873 |
67 |
dash |
22 |
no-host |
configure.yash |
386,142 |
0 |
0 |
0 |
3,728 |
0 |
859 |
95 |
osh-cpython |
30 |
no-host |
configure.yash |
258,484 |
0 |
0 |
0 |
3,736 |
0 |
851 |
113 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,677 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host