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 |
459 |
23 |
24.35 |
1.21 |
bin-true |
no-host |
669 |
543 |
2,261 |
813 |
3.38 |
1.22 |
configure.cpython |
no-host |
15,188 |
15,324 |
28,718 |
15,422 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,861 |
3,763 |
4,665 |
3,846 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
195 |
49 |
4.06 |
1.02 |
configure.util-linux |
no-host |
14,244 |
15,035 |
31,527 |
14,547 |
2.21 |
1.02 |
configure.yash |
no-host |
1,824 |
1,783 |
2,472 |
1,864 |
1.35 |
1.02 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
33.85 |
2.02 |
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,087 |
23,413 |
3,231 |
9.32 |
1.29 |
bin-true |
no-host |
106,310 |
66,452 |
754,240 |
128,215 |
7.09 |
1.21 |
configure.cpython |
no-host |
2,228,298 |
2,237,353 |
6,146,917 |
2,222,581 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,578 |
391,317 |
640,842 |
413,625 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,562 |
5,473 |
23,398 |
7,013 |
3.57 |
1.07 |
configure.util-linux |
no-host |
2,095,112 |
2,253,521 |
5,331,231 |
2,011,121 |
2.54 |
0.96 |
configure.yash |
no-host |
256,927 |
244,123 |
385,117 |
258,880 |
1.50 |
1.01 |
hello-world |
no-host |
155 |
81 |
3,689 |
348 |
23.80 |
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.0 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
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,422 |
1 |
64 |
16.0 |
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,547 |
3 |
62 |
22.3 |
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,846 |
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.1 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,864 |
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.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 |
19 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
459 |
419 |
44 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
18 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
669 |
501 |
197 |
3.0 |
bash |
9 |
no-host |
bin-true |
543 |
407 |
145 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,261 |
1,544 |
975 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
593 |
235 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
15,188 |
8,933 |
6,658 |
27.1 |
bash |
10 |
no-host |
configure.cpython |
15,324 |
9,276 |
6,463 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,718 |
17,485 |
13,109 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,422 |
9,165 |
6,527 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,861 |
1,633 |
1,260 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,763 |
1,585 |
1,197 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,665 |
2,223 |
1,651 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,846 |
1,653 |
1,232 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
28 |
20 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
35 |
7 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
150 |
49 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,244 |
8,960 |
5,771 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,035 |
9,234 |
6,303 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,527 |
20,955 |
11,692 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,547 |
8,843 |
5,897 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,824 |
1,093 |
740 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,783 |
987 |
799 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,472 |
1,511 |
1,005 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,864 |
1,060 |
805 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
33 |
16 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,511 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,087 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,413 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,231 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,310 |
0 |
0 |
0 |
8 |
0 |
1,997 |
74 |
bash |
9 |
no-host |
bin-true |
66,452 |
0 |
0 |
0 |
8 |
0 |
1,990 |
66 |
dash |
17 |
no-host |
bin-true |
754,240 |
0 |
0 |
0 |
8 |
0 |
2,002 |
498 |
osh-cpython |
25 |
no-host |
bin-true |
128,215 |
0 |
0 |
0 |
16 |
0 |
1,989 |
122 |
osh-native |
2 |
no-host |
configure.cpython |
2,228,298 |
0 |
0 |
0 |
32,928 |
0 |
14,442 |
1,112 |
bash |
10 |
no-host |
configure.cpython |
2,237,353 |
2 |
0 |
0 |
32,992 |
0 |
14,508 |
1,062 |
dash |
18 |
no-host |
configure.cpython |
6,146,917 |
0 |
0 |
0 |
27,512 |
0 |
13,320 |
1,209 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,222,581 |
0 |
0 |
0 |
27,520 |
0 |
13,253 |
924 |
osh-native |
4 |
no-host |
configure.ocaml |
410,578 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
166 |
bash |
12 |
no-host |
configure.ocaml |
391,317 |
0 |
0 |
0 |
5,112 |
0 |
1,873 |
156 |
dash |
20 |
no-host |
configure.ocaml |
640,842 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
217 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,625 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
180 |
osh-native |
5 |
no-host |
configure.tcc |
6,562 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,398 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,013 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,112 |
0 |
0 |
0 |
42,400 |
0 |
18,673 |
1,012 |
bash |
11 |
no-host |
configure.util-linux |
2,253,521 |
0 |
0 |
0 |
42,584 |
0 |
17,581 |
1,132 |
dash |
19 |
no-host |
configure.util-linux |
5,331,231 |
6 |
0 |
0 |
39,112 |
0 |
17,089 |
1,326 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,011,121 |
5 |
0 |
0 |
39,120 |
0 |
17,071 |
939 |
osh-native |
6 |
no-host |
configure.yash |
256,927 |
0 |
0 |
0 |
4,120 |
0 |
870 |
80 |
bash |
14 |
no-host |
configure.yash |
244,123 |
0 |
0 |
0 |
3,720 |
0 |
868 |
83 |
dash |
22 |
no-host |
configure.yash |
385,117 |
0 |
0 |
0 |
3,728 |
0 |
857 |
100 |
osh-cpython |
30 |
no-host |
configure.yash |
258,880 |
0 |
0 |
0 |
3,736 |
0 |
855 |
119 |
osh-native |
0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,689 |
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