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 |
456 |
22 |
23.40 |
1.12 |
bin-true |
no-host |
679 |
550 |
2,279 |
829 |
3.36 |
1.22 |
configure.cpython |
no-host |
15,254 |
15,329 |
29,174 |
15,549 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,842 |
3,793 |
4,713 |
3,894 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
198 |
49 |
4.12 |
1.03 |
configure.util-linux |
no-host |
14,243 |
15,127 |
31,709 |
14,625 |
2.23 |
1.03 |
configure.yash |
no-host |
1,852 |
1,797 |
2,502 |
1,860 |
1.35 |
1.00 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
34.67 |
1.96 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,508 |
1,131 |
22,944 |
3,168 |
9.15 |
1.26 |
bin-true |
no-host |
106,302 |
66,451 |
758,826 |
129,207 |
7.14 |
1.22 |
configure.cpython |
no-host |
2,216,793 |
2,245,489 |
6,185,598 |
2,223,535 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,230 |
391,538 |
640,618 |
413,462 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,556 |
5,484 |
23,333 |
6,974 |
3.56 |
1.06 |
configure.util-linux |
no-host |
2,101,717 |
2,263,064 |
5,325,318 |
1,996,554 |
2.53 |
0.95 |
configure.yash |
no-host |
255,202 |
242,700 |
384,695 |
258,441 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,694 |
349 |
24.30 |
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.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
829 |
1 |
2 |
2.6 |
8.1 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,549 |
1 |
62 |
15.0 |
27.1 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,625 |
3 |
61 |
21.3 |
30.3 |
2,703,426 |
42,745 |
65,832 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,894 |
1 |
2 |
2.6 |
20.6 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,860 |
1 |
2 |
2.6 |
24.4 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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 |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
456 |
406 |
53 |
21.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
679 |
492 |
219 |
3.0 |
bash |
9 |
no-host |
bin-true |
550 |
415 |
144 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,279 |
1,475 |
1,071 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
829 |
578 |
266 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,254 |
9,241 |
6,412 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,329 |
9,296 |
6,458 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,174 |
17,895 |
13,197 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,549 |
9,287 |
6,532 |
27.1 |
osh-native |
4 |
no-host |
configure.ocaml |
3,842 |
1,638 |
1,243 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,793 |
1,630 |
1,184 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,713 |
2,282 |
1,641 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,894 |
1,741 |
1,191 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
28 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
22 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
161 |
40 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
32 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,243 |
8,948 |
5,775 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,127 |
9,411 |
6,217 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,709 |
21,253 |
11,577 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,625 |
9,021 |
5,798 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,852 |
1,101 |
760 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,797 |
1,018 |
783 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,502 |
1,554 |
993 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,860 |
1,060 |
804 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
17 |
32 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,508 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,131 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,944 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,168 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,302 |
0 |
0 |
0 |
8 |
0 |
1,992 |
78 |
bash |
9 |
no-host |
bin-true |
66,451 |
0 |
0 |
0 |
8 |
0 |
1,991 |
226 |
dash |
17 |
no-host |
bin-true |
758,826 |
0 |
0 |
0 |
8 |
0 |
1,996 |
241 |
osh-cpython |
25 |
no-host |
bin-true |
129,207 |
0 |
0 |
0 |
16 |
0 |
1,992 |
61 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,793 |
2 |
0 |
0 |
32,928 |
0 |
14,593 |
1,285 |
bash |
10 |
no-host |
configure.cpython |
2,245,489 |
1 |
0 |
0 |
32,992 |
0 |
14,658 |
1,055 |
dash |
18 |
no-host |
configure.cpython |
6,185,598 |
3 |
0 |
0 |
27,512 |
0 |
13,190 |
1,190 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,535 |
0 |
0 |
0 |
27,520 |
0 |
13,167 |
1,032 |
osh-native |
4 |
no-host |
configure.ocaml |
410,230 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
161 |
bash |
12 |
no-host |
configure.ocaml |
391,538 |
0 |
0 |
0 |
5,112 |
0 |
1,934 |
226 |
dash |
20 |
no-host |
configure.ocaml |
640,618 |
1 |
0 |
0 |
5,112 |
0 |
1,850 |
214 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,462 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
172 |
osh-native |
5 |
no-host |
configure.tcc |
6,556 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,484 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,333 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,974 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,717 |
1 |
0 |
0 |
42,400 |
0 |
18,607 |
1,105 |
bash |
11 |
no-host |
configure.util-linux |
2,263,064 |
0 |
0 |
0 |
42,592 |
0 |
17,437 |
1,096 |
dash |
19 |
no-host |
configure.util-linux |
5,325,318 |
10 |
0 |
0 |
39,112 |
0 |
16,964 |
1,268 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,554 |
1 |
0 |
0 |
39,120 |
0 |
16,922 |
952 |
osh-native |
6 |
no-host |
configure.yash |
255,202 |
0 |
0 |
0 |
4,120 |
0 |
873 |
88 |
bash |
14 |
no-host |
configure.yash |
242,700 |
0 |
0 |
0 |
3,720 |
0 |
872 |
68 |
dash |
22 |
no-host |
configure.yash |
384,695 |
0 |
0 |
0 |
3,728 |
0 |
853 |
96 |
osh-cpython |
30 |
no-host |
configure.yash |
258,441 |
0 |
0 |
0 |
3,736 |
0 |
848 |
93 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,694 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host