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 |
10 |
455 |
23 |
22.35 |
1.11 |
bin-true |
no-host |
689 |
551 |
2,290 |
852 |
3.32 |
1.24 |
configure.cpython |
no-host |
15,375 |
15,345 |
28,891 |
15,434 |
1.88 |
1.00 |
configure.ocaml |
no-host |
3,843 |
3,767 |
4,662 |
3,818 |
1.21 |
0.99 |
configure.tcc |
no-host |
52 |
43 |
194 |
49 |
3.75 |
0.96 |
configure.util-linux |
no-host |
14,117 |
15,066 |
31,577 |
14,400 |
2.24 |
1.02 |
configure.yash |
no-host |
1,875 |
1,791 |
2,492 |
1,832 |
1.33 |
0.98 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
29.14 |
1.79 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,545 |
1,132 |
23,462 |
3,208 |
9.22 |
1.26 |
bin-true |
no-host |
107,342 |
65,413 |
755,499 |
126,185 |
7.04 |
1.18 |
configure.cpython |
no-host |
2,220,239 |
2,252,732 |
6,170,981 |
2,232,639 |
2.78 |
1.01 |
configure.ocaml |
no-host |
410,439 |
390,854 |
641,735 |
413,411 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,573 |
5,457 |
23,398 |
7,014 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,094,724 |
2,260,388 |
5,343,753 |
2,015,919 |
2.55 |
0.96 |
configure.yash |
no-host |
255,727 |
244,650 |
386,028 |
259,204 |
1.51 |
1.01 |
hello-world |
no-host |
154 |
79 |
3,685 |
348 |
23.93 |
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.3 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
852 |
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,434 |
1 |
63 |
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,400 |
3 |
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,818 |
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,832 |
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 |
9.0 |
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 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
421 |
38 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
13 |
10 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
689 |
503 |
223 |
3.0 |
bash |
9 |
no-host |
bin-true |
551 |
437 |
124 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,290 |
1,481 |
1,068 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
852 |
613 |
255 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,375 |
9,267 |
6,515 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,345 |
9,269 |
6,514 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,891 |
17,532 |
13,217 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,434 |
9,221 |
6,475 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,843 |
1,704 |
1,180 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,767 |
1,602 |
1,185 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,662 |
2,323 |
1,547 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,818 |
1,647 |
1,212 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
52 |
31 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
26 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
129 |
68 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
39 |
11 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,117 |
9,109 |
5,502 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,066 |
9,295 |
6,290 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,577 |
21,291 |
11,396 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,400 |
8,629 |
5,973 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,875 |
1,098 |
786 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,791 |
1,020 |
775 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,492 |
1,545 |
989 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,832 |
1,037 |
800 |
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 |
35 |
14 |
17.3 |
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,545 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,132 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,462 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,208 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,342 |
0 |
0 |
0 |
8 |
0 |
1,987 |
36 |
bash |
9 |
no-host |
bin-true |
65,413 |
0 |
0 |
0 |
8 |
0 |
1,990 |
46 |
dash |
17 |
no-host |
bin-true |
755,499 |
0 |
0 |
0 |
8 |
0 |
1,995 |
207 |
osh-cpython |
25 |
no-host |
bin-true |
126,185 |
0 |
0 |
0 |
16 |
0 |
1,991 |
168 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,239 |
0 |
0 |
0 |
32,928 |
0 |
14,513 |
1,182 |
bash |
10 |
no-host |
configure.cpython |
2,252,732 |
2 |
0 |
0 |
32,992 |
0 |
14,608 |
1,001 |
dash |
18 |
no-host |
configure.cpython |
6,170,981 |
1 |
0 |
0 |
27,512 |
0 |
13,288 |
1,302 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,639 |
0 |
0 |
0 |
27,520 |
0 |
13,288 |
1,109 |
osh-native |
4 |
no-host |
configure.ocaml |
410,439 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
300 |
bash |
12 |
no-host |
configure.ocaml |
390,854 |
0 |
0 |
0 |
5,112 |
0 |
1,912 |
149 |
dash |
20 |
no-host |
configure.ocaml |
641,735 |
0 |
0 |
0 |
5,112 |
0 |
1,880 |
177 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,411 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
175 |
osh-native |
5 |
no-host |
configure.tcc |
6,573 |
0 |
0 |
0 |
104 |
0 |
51 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,457 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,398 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,014 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,724 |
0 |
0 |
0 |
42,408 |
0 |
18,541 |
1,021 |
bash |
11 |
no-host |
configure.util-linux |
2,260,388 |
0 |
0 |
0 |
42,592 |
0 |
17,560 |
1,039 |
dash |
19 |
no-host |
configure.util-linux |
5,343,753 |
7 |
0 |
0 |
39,112 |
0 |
17,063 |
1,153 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,015,919 |
0 |
0 |
0 |
39,120 |
0 |
17,041 |
1,089 |
osh-native |
6 |
no-host |
configure.yash |
255,727 |
0 |
0 |
0 |
4,120 |
0 |
869 |
83 |
bash |
14 |
no-host |
configure.yash |
244,650 |
0 |
0 |
0 |
3,720 |
0 |
866 |
83 |
dash |
22 |
no-host |
configure.yash |
386,028 |
0 |
0 |
0 |
3,728 |
0 |
853 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
259,204 |
0 |
0 |
0 |
3,736 |
0 |
855 |
74 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,685 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host