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 |
10 |
465 |
23 |
24.47 |
1.19 |
bin-true |
no-host |
685 |
540 |
2,205 |
829 |
3.22 |
1.21 |
configure.cpython |
no-host |
15,341 |
15,136 |
28,497 |
15,548 |
1.86 |
1.01 |
configure.ocaml |
no-host |
3,868 |
3,719 |
4,655 |
3,829 |
1.20 |
0.99 |
configure.tcc |
no-host |
47 |
41 |
195 |
49 |
4.11 |
1.03 |
configure.util-linux |
no-host |
14,059 |
14,947 |
31,528 |
14,524 |
2.24 |
1.03 |
configure.yash |
no-host |
1,810 |
1,766 |
2,552 |
1,833 |
1.41 |
1.01 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
30.29 |
1.86 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,520 |
1,133 |
23,581 |
3,218 |
9.36 |
1.28 |
bin-true |
no-host |
107,263 |
66,431 |
749,772 |
125,193 |
6.99 |
1.17 |
configure.cpython |
no-host |
2,228,837 |
2,244,705 |
6,168,639 |
2,236,806 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,642 |
391,407 |
640,883 |
413,368 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,472 |
23,301 |
6,984 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,101,969 |
2,264,459 |
5,319,907 |
2,016,518 |
2.53 |
0.96 |
configure.yash |
no-host |
256,767 |
244,027 |
385,502 |
258,477 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,673 |
350 |
24.32 |
2.32 |
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,722 |
3,722 |
0 |
684 |
1,873 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
829 |
1 |
2 |
2.7 |
8.1 |
154,687 |
12,991 |
2,798 |
11,737 |
78,342 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,548 |
1 |
63 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,049 |
762,784 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,524 |
3 |
61 |
22.2 |
30.3 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,493 |
1,256,653 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,829 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,627 |
69,800 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,522 |
30,522 |
0 |
1,599 |
14,797 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,833 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,299 |
61,833 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,265 |
64,454 |
42,662 |
4,610 |
54,542 |
57,113 |
478 |
3 |
85,324 |
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 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
465 |
412 |
56 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
685 |
519 |
197 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
406 |
143 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,205 |
1,471 |
988 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
829 |
567 |
271 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,341 |
9,167 |
6,582 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,136 |
9,321 |
6,242 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,497 |
17,447 |
12,871 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,548 |
9,214 |
6,605 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,868 |
1,635 |
1,267 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,719 |
1,576 |
1,164 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,655 |
2,252 |
1,604 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,829 |
1,639 |
1,231 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
41 |
7 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
22 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
127 |
72 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
32 |
17 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,059 |
8,966 |
5,573 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,947 |
9,308 |
6,131 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,528 |
21,089 |
11,547 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,524 |
8,633 |
6,093 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,810 |
1,079 |
738 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,766 |
993 |
776 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,552 |
1,507 |
1,088 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,833 |
1,062 |
775 |
24.2 |
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 |
47 |
28 |
19 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,520 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,133 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,581 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,218 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,263 |
0 |
0 |
0 |
8 |
0 |
1,989 |
47 |
bash |
9 |
no-host |
bin-true |
66,431 |
0 |
0 |
0 |
8 |
0 |
1,989 |
54 |
dash |
17 |
no-host |
bin-true |
749,772 |
0 |
0 |
0 |
8 |
0 |
1,990 |
103 |
osh-cpython |
25 |
no-host |
bin-true |
125,193 |
0 |
0 |
0 |
16 |
0 |
1,991 |
93 |
osh-native |
2 |
no-host |
configure.cpython |
2,228,837 |
0 |
0 |
0 |
32,928 |
0 |
14,519 |
1,168 |
bash |
10 |
no-host |
configure.cpython |
2,244,705 |
0 |
0 |
0 |
32,992 |
0 |
14,667 |
959 |
dash |
18 |
no-host |
configure.cpython |
6,168,639 |
1 |
0 |
0 |
27,512 |
0 |
13,297 |
1,154 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,806 |
0 |
0 |
0 |
27,520 |
0 |
13,302 |
966 |
osh-native |
4 |
no-host |
configure.ocaml |
410,642 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
148 |
bash |
12 |
no-host |
configure.ocaml |
391,407 |
0 |
0 |
0 |
5,112 |
0 |
1,945 |
154 |
dash |
20 |
no-host |
configure.ocaml |
640,883 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
188 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,368 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
161 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,472 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,301 |
0 |
0 |
0 |
96 |
0 |
52 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,969 |
0 |
0 |
0 |
42,408 |
0 |
18,574 |
1,075 |
bash |
11 |
no-host |
configure.util-linux |
2,264,459 |
0 |
0 |
0 |
42,592 |
0 |
17,446 |
1,227 |
dash |
19 |
no-host |
configure.util-linux |
5,319,907 |
8 |
0 |
0 |
39,112 |
0 |
17,060 |
1,398 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,518 |
0 |
0 |
0 |
39,120 |
0 |
17,056 |
1,071 |
osh-native |
6 |
no-host |
configure.yash |
256,767 |
0 |
0 |
0 |
4,120 |
0 |
871 |
64 |
bash |
14 |
no-host |
configure.yash |
244,027 |
0 |
0 |
0 |
3,720 |
0 |
865 |
70 |
dash |
22 |
no-host |
configure.yash |
385,502 |
0 |
0 |
0 |
3,728 |
0 |
855 |
106 |
osh-cpython |
30 |
no-host |
configure.yash |
258,477 |
0 |
0 |
0 |
3,736 |
0 |
852 |
77 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,673 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host