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 |
462 |
23 |
24.16 |
1.19 |
bin-true |
no-host |
677 |
547 |
2,248 |
821 |
3.32 |
1.21 |
configure.cpython |
no-host |
15,131 |
15,284 |
28,798 |
15,553 |
1.90 |
1.03 |
configure.ocaml |
no-host |
3,808 |
3,781 |
4,646 |
3,893 |
1.22 |
1.02 |
configure.tcc |
no-host |
54 |
42 |
193 |
49 |
3.56 |
0.90 |
configure.util-linux |
no-host |
14,096 |
15,086 |
31,617 |
14,461 |
2.24 |
1.03 |
configure.yash |
no-host |
1,842 |
1,799 |
2,462 |
1,877 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.50 |
1.93 |
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,112 |
23,660 |
3,206 |
9.33 |
1.26 |
bin-true |
no-host |
105,353 |
67,523 |
745,657 |
126,116 |
7.08 |
1.20 |
configure.cpython |
no-host |
2,214,989 |
2,240,607 |
6,129,583 |
2,238,883 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,604 |
391,317 |
638,594 |
413,204 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,547 |
5,493 |
23,266 |
6,972 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,096,116 |
2,262,056 |
5,314,957 |
2,010,239 |
2.54 |
0.96 |
configure.yash |
no-host |
256,262 |
243,980 |
385,059 |
258,327 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,666 |
347 |
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,722 |
3,722 |
0 |
684 |
1,873 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.7 |
7.7 |
154,687 |
12,991 |
2,798 |
11,737 |
78,342 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,553 |
1 |
62 |
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,461 |
2 |
60 |
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,893 |
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.4 |
30,522 |
30,522 |
0 |
1,599 |
14,797 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,877 |
1 |
2 |
2.6 |
26.4 |
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 |
9.0 |
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 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
462 |
407 |
58 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
18 |
5 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
677 |
526 |
181 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
420 |
138 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,248 |
1,463 |
1,049 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
572 |
262 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
15,131 |
9,174 |
6,355 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,284 |
9,321 |
6,390 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,798 |
17,498 |
13,151 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,553 |
9,206 |
6,617 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,808 |
1,603 |
1,248 |
20.9 |
bash |
12 |
no-host |
configure.ocaml |
3,781 |
1,578 |
1,222 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,646 |
2,232 |
1,614 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,893 |
1,674 |
1,255 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
54 |
43 |
12 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
24 |
19 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
167 |
30 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
32 |
17 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,096 |
8,837 |
5,729 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,086 |
9,242 |
6,334 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,617 |
21,401 |
11,293 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,461 |
8,617 |
6,034 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,842 |
1,074 |
777 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,799 |
1,033 |
768 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,462 |
1,488 |
1,017 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,877 |
1,113 |
768 |
26.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
37 |
12 |
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,536 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,112 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,660 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,206 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
105,353 |
0 |
0 |
0 |
8 |
0 |
1,991 |
51 |
bash |
9 |
no-host |
bin-true |
67,523 |
0 |
0 |
0 |
8 |
0 |
1,986 |
91 |
dash |
17 |
no-host |
bin-true |
745,657 |
0 |
0 |
0 |
8 |
0 |
1,994 |
188 |
osh-cpython |
25 |
no-host |
bin-true |
126,116 |
0 |
0 |
0 |
16 |
0 |
1,989 |
173 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,989 |
0 |
0 |
0 |
32,928 |
0 |
14,553 |
1,260 |
bash |
10 |
no-host |
configure.cpython |
2,240,607 |
0 |
0 |
0 |
32,992 |
0 |
14,642 |
1,140 |
dash |
18 |
no-host |
configure.cpython |
6,129,583 |
0 |
0 |
0 |
27,512 |
0 |
13,292 |
1,290 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,238,883 |
0 |
0 |
0 |
27,520 |
0 |
13,362 |
1,065 |
osh-native |
4 |
no-host |
configure.ocaml |
410,604 |
0 |
0 |
0 |
5,120 |
0 |
1,939 |
196 |
bash |
12 |
no-host |
configure.ocaml |
391,317 |
0 |
0 |
0 |
5,112 |
0 |
1,936 |
151 |
dash |
20 |
no-host |
configure.ocaml |
638,594 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
196 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,204 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
180 |
osh-native |
5 |
no-host |
configure.tcc |
6,547 |
0 |
0 |
0 |
104 |
0 |
49 |
16 |
bash |
13 |
no-host |
configure.tcc |
5,493 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,266 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,972 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,116 |
1 |
0 |
0 |
42,400 |
0 |
18,565 |
1,057 |
bash |
11 |
no-host |
configure.util-linux |
2,262,056 |
1 |
0 |
0 |
42,584 |
0 |
17,514 |
1,388 |
dash |
19 |
no-host |
configure.util-linux |
5,314,957 |
18 |
0 |
0 |
39,112 |
0 |
17,098 |
1,379 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,010,239 |
0 |
0 |
0 |
39,128 |
0 |
17,082 |
1,166 |
osh-native |
6 |
no-host |
configure.yash |
256,262 |
0 |
0 |
0 |
4,120 |
0 |
867 |
82 |
bash |
14 |
no-host |
configure.yash |
243,980 |
0 |
0 |
0 |
3,720 |
0 |
866 |
81 |
dash |
22 |
no-host |
configure.yash |
385,059 |
0 |
0 |
0 |
3,728 |
0 |
855 |
97 |
osh-cpython |
30 |
no-host |
configure.yash |
258,327 |
0 |
0 |
0 |
3,736 |
0 |
852 |
97 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,666 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host