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.19 |
1.20 |
bin-true |
no-host |
690 |
550 |
2,231 |
821 |
3.24 |
1.19 |
configure.cpython |
no-host |
15,387 |
15,376 |
29,044 |
15,567 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,847 |
3,795 |
4,694 |
3,902 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
194 |
50 |
4.04 |
1.04 |
configure.util-linux |
no-host |
14,256 |
15,164 |
31,649 |
14,675 |
2.22 |
1.03 |
configure.yash |
no-host |
1,864 |
1,792 |
2,475 |
1,877 |
1.33 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.44 |
1.89 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,509 |
1,114 |
23,392 |
3,182 |
9.32 |
1.27 |
bin-true |
no-host |
107,323 |
65,409 |
752,907 |
128,212 |
7.02 |
1.19 |
configure.cpython |
no-host |
2,221,941 |
2,235,409 |
6,153,773 |
2,232,327 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,689 |
391,372 |
639,441 |
413,342 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,544 |
5,495 |
23,226 |
6,967 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,098,700 |
2,264,224 |
5,320,845 |
2,016,192 |
2.54 |
0.96 |
configure.yash |
no-host |
255,972 |
245,172 |
385,254 |
258,904 |
1.51 |
1.01 |
hello-world |
no-host |
150 |
83 |
3,659 |
347 |
24.39 |
2.31 |
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 |
821 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,567 |
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,675 |
3 |
62 |
22.2 |
29.9 |
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,902 |
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 |
50 |
0 |
0 |
1.3 |
19.3 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,877 |
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.8 |
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 |
15 |
5 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
465 |
422 |
47 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
690 |
507 |
214 |
2.8 |
bash |
9 |
no-host |
bin-true |
550 |
428 |
130 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,231 |
1,434 |
1,055 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
582 |
254 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,387 |
9,246 |
6,539 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,376 |
9,206 |
6,590 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,044 |
17,821 |
13,104 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,567 |
9,002 |
6,836 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,847 |
1,661 |
1,225 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,795 |
1,614 |
1,200 |
20.2 |
dash |
20 |
no-host |
configure.ocaml |
4,694 |
2,281 |
1,617 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,902 |
1,707 |
1,232 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
31 |
17 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
15 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
133 |
64 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
32 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,256 |
8,926 |
5,805 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,164 |
9,273 |
6,388 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,649 |
20,732 |
12,032 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,675 |
8,742 |
6,119 |
29.9 |
osh-native |
6 |
no-host |
configure.yash |
1,864 |
1,156 |
712 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,792 |
1,055 |
740 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,475 |
1,551 |
965 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,877 |
1,094 |
788 |
24.4 |
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 |
49 |
24 |
25 |
17.1 |
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,509 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,114 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,392 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,182 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
107,323 |
0 |
0 |
0 |
8 |
0 |
1,988 |
192 |
bash |
9 |
no-host |
bin-true |
65,409 |
0 |
0 |
0 |
8 |
0 |
1,985 |
85 |
dash |
17 |
no-host |
bin-true |
752,907 |
0 |
0 |
0 |
8 |
0 |
1,995 |
103 |
osh-cpython |
25 |
no-host |
bin-true |
128,212 |
0 |
0 |
0 |
16 |
0 |
1,988 |
53 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,941 |
0 |
0 |
0 |
32,928 |
0 |
14,426 |
1,242 |
bash |
10 |
no-host |
configure.cpython |
2,235,409 |
0 |
0 |
0 |
32,992 |
0 |
14,530 |
1,157 |
dash |
18 |
no-host |
configure.cpython |
6,153,773 |
0 |
0 |
0 |
27,512 |
0 |
13,276 |
1,307 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,327 |
0 |
0 |
0 |
27,520 |
0 |
13,349 |
1,110 |
osh-native |
4 |
no-host |
configure.ocaml |
410,689 |
0 |
0 |
0 |
5,120 |
0 |
1,942 |
159 |
bash |
12 |
no-host |
configure.ocaml |
391,372 |
0 |
0 |
0 |
5,112 |
0 |
1,885 |
153 |
dash |
20 |
no-host |
configure.ocaml |
639,441 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
188 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,342 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
198 |
osh-native |
5 |
no-host |
configure.tcc |
6,544 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,495 |
0 |
0 |
0 |
96 |
0 |
47 |
9 |
dash |
21 |
no-host |
configure.tcc |
23,226 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,967 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,700 |
0 |
0 |
0 |
42,400 |
0 |
18,528 |
1,264 |
bash |
11 |
no-host |
configure.util-linux |
2,264,224 |
2 |
0 |
0 |
42,584 |
0 |
17,675 |
1,404 |
dash |
19 |
no-host |
configure.util-linux |
5,320,845 |
6 |
0 |
0 |
39,112 |
0 |
17,060 |
1,188 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,192 |
0 |
0 |
0 |
39,128 |
0 |
17,252 |
1,178 |
osh-native |
6 |
no-host |
configure.yash |
255,972 |
0 |
0 |
0 |
4,120 |
0 |
873 |
80 |
bash |
14 |
no-host |
configure.yash |
245,172 |
0 |
0 |
0 |
3,720 |
0 |
872 |
87 |
dash |
22 |
no-host |
configure.yash |
385,254 |
0 |
0 |
0 |
3,728 |
0 |
858 |
106 |
osh-cpython |
30 |
no-host |
configure.yash |
258,904 |
0 |
0 |
0 |
3,736 |
0 |
850 |
103 |
osh-native |
0 |
no-host |
hello-world |
150 |
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,659 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host