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 |
460 |
23 |
23.95 |
1.18 |
bin-true |
no-host |
683 |
550 |
2,229 |
835 |
3.27 |
1.22 |
configure.cpython |
no-host |
15,132 |
15,076 |
28,779 |
15,280 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,820 |
3,747 |
4,626 |
3,863 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
196 |
49 |
4.09 |
1.03 |
configure.util-linux |
no-host |
14,118 |
14,891 |
31,504 |
14,445 |
2.23 |
1.02 |
configure.yash |
no-host |
1,820 |
1,772 |
2,444 |
1,856 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.03 |
1.95 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,530 |
1,134 |
23,412 |
3,229 |
9.25 |
1.28 |
bin-true |
no-host |
106,394 |
65,417 |
752,379 |
129,218 |
7.07 |
1.21 |
configure.cpython |
no-host |
2,218,601 |
2,240,753 |
6,146,785 |
2,234,248 |
2.77 |
1.01 |
configure.ocaml |
no-host |
409,887 |
391,171 |
638,717 |
413,598 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,560 |
5,500 |
23,184 |
7,001 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,099,158 |
2,263,056 |
5,337,411 |
2,009,489 |
2.54 |
0.96 |
configure.yash |
no-host |
256,541 |
244,026 |
385,902 |
257,306 |
1.50 |
1.00 |
hello-world |
no-host |
154 |
82 |
3,659 |
349 |
23.76 |
2.27 |
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,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
835 |
1 |
2 |
2.7 |
8.1 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,280 |
1 |
62 |
15.8 |
27.4 |
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,445 |
3 |
60 |
22.2 |
30.1 |
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,863 |
1 |
2 |
2.7 |
20.4 |
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,856 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
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 |
19 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
460 |
404 |
60 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
13 |
10 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
683 |
512 |
203 |
2.9 |
bash |
9 |
no-host |
bin-true |
550 |
415 |
145 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,229 |
1,528 |
964 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
835 |
580 |
268 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,132 |
9,151 |
6,341 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,076 |
9,033 |
6,471 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,779 |
17,256 |
13,387 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,280 |
8,830 |
6,724 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,820 |
1,614 |
1,241 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,747 |
1,527 |
1,238 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,626 |
2,168 |
1,664 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,863 |
1,646 |
1,257 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
32 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
158 |
41 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
22 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,118 |
8,925 |
5,676 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,891 |
9,147 |
6,242 |
29.9 |
dash |
19 |
no-host |
configure.util-linux |
31,504 |
21,059 |
11,529 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,445 |
8,756 |
5,887 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,820 |
1,064 |
762 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,772 |
995 |
781 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,444 |
1,550 |
937 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,856 |
1,045 |
816 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
24 |
23 |
17.3 |
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,530 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,134 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,412 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,229 |
0 |
0 |
0 |
16 |
0 |
41 |
5 |
osh-native |
1 |
no-host |
bin-true |
106,394 |
0 |
0 |
0 |
8 |
0 |
1,987 |
81 |
bash |
9 |
no-host |
bin-true |
65,417 |
0 |
0 |
0 |
8 |
0 |
1,989 |
54 |
dash |
17 |
no-host |
bin-true |
752,379 |
0 |
0 |
0 |
8 |
0 |
1,996 |
167 |
osh-cpython |
25 |
no-host |
bin-true |
129,218 |
0 |
0 |
0 |
16 |
0 |
1,989 |
136 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,601 |
0 |
0 |
0 |
32,928 |
0 |
14,465 |
1,127 |
bash |
10 |
no-host |
configure.cpython |
2,240,753 |
0 |
0 |
0 |
32,992 |
0 |
14,580 |
1,105 |
dash |
18 |
no-host |
configure.cpython |
6,146,785 |
0 |
0 |
0 |
27,512 |
0 |
13,284 |
1,136 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,248 |
0 |
0 |
0 |
27,520 |
0 |
13,272 |
988 |
osh-native |
4 |
no-host |
configure.ocaml |
409,887 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
174 |
bash |
12 |
no-host |
configure.ocaml |
391,171 |
0 |
0 |
0 |
5,112 |
0 |
1,888 |
257 |
dash |
20 |
no-host |
configure.ocaml |
638,717 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
154 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,598 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
155 |
osh-native |
5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,500 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,184 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,001 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,158 |
0 |
0 |
0 |
42,408 |
0 |
18,636 |
1,015 |
bash |
11 |
no-host |
configure.util-linux |
2,263,056 |
0 |
0 |
0 |
42,592 |
0 |
17,446 |
1,113 |
dash |
19 |
no-host |
configure.util-linux |
5,337,411 |
18 |
0 |
0 |
39,112 |
0 |
17,183 |
1,511 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,489 |
2 |
0 |
0 |
39,120 |
0 |
17,158 |
1,138 |
osh-native |
6 |
no-host |
configure.yash |
256,541 |
0 |
0 |
0 |
4,120 |
0 |
873 |
91 |
bash |
14 |
no-host |
configure.yash |
244,026 |
0 |
0 |
0 |
3,720 |
0 |
866 |
79 |
dash |
22 |
no-host |
configure.yash |
385,902 |
0 |
0 |
0 |
3,728 |
0 |
860 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
257,306 |
0 |
0 |
0 |
3,736 |
0 |
849 |
82 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,659 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host