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 |
457 |
23 |
23.87 |
1.18 |
bin-true |
no-host |
673 |
550 |
2,238 |
814 |
3.33 |
1.21 |
configure.cpython |
no-host |
15,038 |
15,078 |
28,347 |
15,361 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,842 |
3,776 |
4,601 |
3,827 |
1.20 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
193 |
49 |
4.02 |
1.02 |
configure.util-linux |
no-host |
14,078 |
15,077 |
30,952 |
14,310 |
2.20 |
1.02 |
configure.yash |
no-host |
1,841 |
1,779 |
2,420 |
1,818 |
1.31 |
0.99 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.90 |
1.99 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,541 |
1,094 |
23,616 |
3,198 |
9.29 |
1.26 |
bin-true |
no-host |
102,309 |
66,428 |
749,258 |
127,163 |
7.32 |
1.24 |
configure.cpython |
no-host |
2,214,357 |
2,244,821 |
6,134,430 |
2,227,929 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,448 |
391,218 |
640,383 |
413,797 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,554 |
5,484 |
23,277 |
6,982 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,098,293 |
2,260,019 |
5,324,844 |
2,023,672 |
2.54 |
0.96 |
configure.yash |
no-host |
256,484 |
245,274 |
385,352 |
257,715 |
1.50 |
1.00 |
hello-world |
no-host |
152 |
82 |
3,691 |
349 |
24.28 |
2.30 |
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 |
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,361 |
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,310 |
3 |
61 |
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,827 |
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,818 |
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 |
16 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
457 |
401 |
59 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
673 |
494 |
210 |
3.0 |
bash |
9 |
no-host |
bin-true |
550 |
419 |
141 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,238 |
1,465 |
1,036 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
560 |
267 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,038 |
9,064 |
6,370 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,078 |
9,219 |
6,278 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,347 |
16,967 |
13,236 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,361 |
9,278 |
6,349 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,842 |
1,675 |
1,206 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,776 |
1,575 |
1,220 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,601 |
2,189 |
1,617 |
20.7 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,827 |
1,635 |
1,231 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
16 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
26 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
136 |
60 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
36 |
13 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,078 |
8,894 |
5,666 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,077 |
9,273 |
6,303 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,952 |
20,915 |
11,139 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,310 |
8,696 |
5,813 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,841 |
1,033 |
802 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,779 |
1,029 |
754 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,420 |
1,484 |
980 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,818 |
1,096 |
726 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
28 |
20 |
17.4 |
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,541 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,616 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,198 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
102,309 |
0 |
0 |
0 |
8 |
0 |
1,988 |
78 |
bash |
9 |
no-host |
bin-true |
66,428 |
0 |
0 |
0 |
8 |
0 |
1,984 |
57 |
dash |
17 |
no-host |
bin-true |
749,258 |
0 |
0 |
0 |
8 |
0 |
1,988 |
129 |
osh-cpython |
25 |
no-host |
bin-true |
127,163 |
0 |
0 |
0 |
16 |
0 |
1,985 |
84 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,357 |
0 |
0 |
0 |
32,928 |
0 |
14,480 |
1,160 |
bash |
10 |
no-host |
configure.cpython |
2,244,821 |
5 |
0 |
0 |
32,992 |
0 |
14,562 |
1,198 |
dash |
18 |
no-host |
configure.cpython |
6,134,430 |
0 |
0 |
0 |
27,512 |
0 |
13,254 |
1,117 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,929 |
1 |
0 |
0 |
27,520 |
0 |
13,261 |
1,078 |
osh-native |
4 |
no-host |
configure.ocaml |
410,448 |
0 |
0 |
0 |
5,120 |
0 |
1,940 |
158 |
bash |
12 |
no-host |
configure.ocaml |
391,218 |
0 |
0 |
0 |
5,112 |
0 |
1,921 |
136 |
dash |
20 |
no-host |
configure.ocaml |
640,383 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
208 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,797 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
162 |
osh-native |
5 |
no-host |
configure.tcc |
6,554 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,484 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,277 |
0 |
0 |
0 |
96 |
0 |
53 |
3 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,982 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,293 |
0 |
0 |
0 |
42,400 |
0 |
18,723 |
1,223 |
bash |
11 |
no-host |
configure.util-linux |
2,260,019 |
3 |
0 |
0 |
42,584 |
0 |
17,432 |
1,155 |
dash |
19 |
no-host |
configure.util-linux |
5,324,844 |
8 |
0 |
0 |
39,112 |
0 |
17,079 |
1,151 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,023,672 |
1 |
0 |
0 |
39,120 |
0 |
17,078 |
1,210 |
osh-native |
6 |
no-host |
configure.yash |
256,484 |
0 |
0 |
0 |
4,120 |
0 |
877 |
101 |
bash |
14 |
no-host |
configure.yash |
245,274 |
0 |
0 |
0 |
3,720 |
0 |
870 |
75 |
dash |
22 |
no-host |
configure.yash |
385,352 |
0 |
0 |
0 |
3,728 |
0 |
858 |
91 |
osh-cpython |
30 |
no-host |
configure.yash |
257,715 |
0 |
0 |
0 |
3,736 |
0 |
854 |
101 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,691 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host