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 |
22 |
9 |
465 |
22 |
21.21 |
1.01 |
bin-true |
no-host |
686 |
546 |
2,254 |
809 |
3.29 |
1.18 |
configure.cpython |
no-host |
15,047 |
15,140 |
28,539 |
15,303 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,823 |
3,773 |
4,627 |
3,831 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
191 |
49 |
4.01 |
1.03 |
configure.util-linux |
no-host |
14,110 |
14,926 |
31,268 |
14,469 |
2.22 |
1.03 |
configure.yash |
no-host |
1,824 |
1,789 |
2,445 |
1,846 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.61 |
1.91 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,536 |
1,097 |
23,368 |
3,231 |
9.21 |
1.27 |
bin-true |
no-host |
107,289 |
65,381 |
756,896 |
127,138 |
7.05 |
1.19 |
configure.cpython |
no-host |
2,217,893 |
2,242,735 |
6,153,558 |
2,227,892 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,287 |
390,906 |
639,034 |
414,132 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,540 |
5,484 |
23,237 |
7,016 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,103,002 |
2,263,927 |
5,323,661 |
2,013,505 |
2.53 |
0.96 |
configure.yash |
no-host |
256,739 |
244,624 |
385,787 |
258,689 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
80 |
3,656 |
346 |
23.74 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
809 |
1 |
2 |
2.7 |
7.9 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,303 |
1 |
61 |
15.8 |
27.5 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,469 |
3 |
62 |
22.2 |
30.0 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,831 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,846 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,265 |
64,454 |
42,662 |
4,609 |
54,543 |
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 |
22 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
465 |
418 |
51 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
6 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
686 |
519 |
197 |
2.9 |
bash |
9 |
no-host |
bin-true |
546 |
415 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,254 |
1,456 |
1,055 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
809 |
595 |
228 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,047 |
9,159 |
6,285 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,140 |
8,984 |
6,567 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,539 |
17,262 |
13,121 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,303 |
8,971 |
6,568 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,823 |
1,675 |
1,186 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,773 |
1,562 |
1,226 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,627 |
2,241 |
1,588 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,831 |
1,671 |
1,200 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
10 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
150 |
44 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
22 |
27 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,110 |
8,976 |
5,601 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,926 |
9,260 |
6,143 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,268 |
20,781 |
11,567 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,469 |
8,639 |
6,027 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,824 |
1,085 |
741 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,789 |
992 |
799 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,445 |
1,506 |
981 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,846 |
1,045 |
804 |
24.2 |
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 |
29 |
20 |
17.2 |
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,536 |
0 |
0 |
0 |
16 |
0 |
42 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,097 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,368 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,231 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,289 |
0 |
0 |
0 |
8 |
0 |
1,993 |
78 |
bash |
9 |
no-host |
bin-true |
65,381 |
0 |
0 |
0 |
8 |
0 |
1,989 |
70 |
dash |
17 |
no-host |
bin-true |
756,896 |
0 |
0 |
0 |
8 |
0 |
2,004 |
315 |
osh-cpython |
25 |
no-host |
bin-true |
127,138 |
0 |
0 |
0 |
16 |
0 |
1,991 |
46 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,893 |
0 |
0 |
0 |
32,928 |
0 |
14,467 |
986 |
bash |
10 |
no-host |
configure.cpython |
2,242,735 |
0 |
0 |
0 |
32,992 |
0 |
14,596 |
957 |
dash |
18 |
no-host |
configure.cpython |
6,153,558 |
1 |
0 |
0 |
27,512 |
0 |
13,281 |
1,107 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,892 |
0 |
0 |
0 |
27,520 |
0 |
13,284 |
927 |
osh-native |
4 |
no-host |
configure.ocaml |
410,287 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
190 |
bash |
12 |
no-host |
configure.ocaml |
390,906 |
0 |
0 |
0 |
5,112 |
0 |
1,872 |
149 |
dash |
20 |
no-host |
configure.ocaml |
639,034 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
159 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,132 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
157 |
osh-native |
5 |
no-host |
configure.tcc |
6,540 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,484 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,237 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,016 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,002 |
1 |
0 |
0 |
42,408 |
0 |
18,620 |
1,071 |
bash |
11 |
no-host |
configure.util-linux |
2,263,927 |
0 |
0 |
0 |
42,592 |
0 |
17,411 |
1,094 |
dash |
19 |
no-host |
configure.util-linux |
5,323,661 |
6 |
0 |
0 |
39,120 |
0 |
17,048 |
1,453 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,505 |
1 |
0 |
0 |
39,128 |
0 |
17,059 |
986 |
osh-native |
6 |
no-host |
configure.yash |
256,739 |
0 |
0 |
0 |
4,120 |
0 |
871 |
102 |
bash |
14 |
no-host |
configure.yash |
244,624 |
0 |
0 |
0 |
3,720 |
0 |
872 |
78 |
dash |
22 |
no-host |
configure.yash |
385,787 |
0 |
0 |
0 |
3,728 |
0 |
858 |
79 |
osh-cpython |
30 |
no-host |
configure.yash |
258,689 |
0 |
0 |
0 |
3,736 |
0 |
852 |
69 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,656 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host