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 |
458 |
22 |
23.99 |
1.16 |
bin-true |
no-host |
671 |
543 |
2,233 |
816 |
3.33 |
1.21 |
configure.cpython |
no-host |
15,128 |
15,408 |
28,795 |
15,418 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,861 |
3,776 |
4,653 |
3,860 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
192 |
50 |
4.02 |
1.04 |
configure.util-linux |
no-host |
14,205 |
15,024 |
31,437 |
14,572 |
2.21 |
1.03 |
configure.yash |
no-host |
1,838 |
1,784 |
2,458 |
1,876 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.09 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,535 |
1,118 |
23,282 |
3,200 |
9.18 |
1.26 |
bin-true |
no-host |
104,366 |
66,480 |
755,953 |
126,235 |
7.24 |
1.21 |
configure.cpython |
no-host |
2,219,119 |
2,249,953 |
6,144,544 |
2,227,006 |
2.77 |
1.00 |
configure.ocaml |
no-host |
411,120 |
391,505 |
637,321 |
413,440 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,575 |
5,480 |
23,173 |
6,981 |
3.52 |
1.06 |
configure.util-linux |
no-host |
2,100,764 |
2,257,870 |
5,321,606 |
2,018,495 |
2.53 |
0.96 |
configure.yash |
no-host |
256,178 |
244,201 |
384,447 |
258,486 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,651 |
343 |
24.02 |
2.26 |
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.2 |
6.2 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.7 |
8.1 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,418 |
1 |
63 |
15.8 |
27.4 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,572 |
3 |
61 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,786 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,860 |
1 |
2 |
2.7 |
20.4 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,876 |
1 |
2 |
2.6 |
24.4 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,257 |
64,449 |
42,657 |
4,609 |
54,535 |
57,113 |
478 |
3 |
85,314 |
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 |
14 |
5 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
458 |
435 |
26 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
5 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
671 |
489 |
212 |
2.9 |
bash |
9 |
no-host |
bin-true |
543 |
409 |
141 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,233 |
1,411 |
1,078 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
583 |
247 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,128 |
9,196 |
6,333 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,408 |
9,211 |
6,547 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,795 |
17,406 |
13,250 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,418 |
9,167 |
6,524 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,861 |
1,626 |
1,267 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,776 |
1,615 |
1,182 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,653 |
2,211 |
1,648 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,860 |
1,592 |
1,308 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
34 |
14 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
25 |
17 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
192 |
145 |
51 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
21 |
30 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,205 |
8,910 |
5,770 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,024 |
9,199 |
6,318 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,437 |
20,909 |
11,619 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,572 |
8,791 |
5,982 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,838 |
1,075 |
770 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,784 |
1,008 |
779 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,458 |
1,522 |
977 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,876 |
1,040 |
840 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
25 |
24 |
17.2 |
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,535 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,282 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,200 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,366 |
0 |
0 |
0 |
8 |
0 |
1,996 |
78 |
bash |
9 |
no-host |
bin-true |
66,480 |
0 |
0 |
0 |
8 |
0 |
1,988 |
35 |
dash |
17 |
no-host |
bin-true |
755,953 |
0 |
0 |
0 |
8 |
0 |
1,994 |
167 |
osh-cpython |
25 |
no-host |
bin-true |
126,235 |
0 |
0 |
0 |
16 |
0 |
1,988 |
90 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,119 |
2 |
0 |
0 |
32,928 |
0 |
14,482 |
1,144 |
bash |
10 |
no-host |
configure.cpython |
2,249,953 |
0 |
0 |
0 |
32,992 |
0 |
14,536 |
1,092 |
dash |
18 |
no-host |
configure.cpython |
6,144,544 |
0 |
0 |
0 |
27,512 |
0 |
13,274 |
1,195 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,006 |
0 |
0 |
0 |
27,520 |
0 |
13,273 |
1,031 |
osh-native |
4 |
no-host |
configure.ocaml |
411,120 |
0 |
0 |
0 |
5,120 |
0 |
1,979 |
170 |
bash |
12 |
no-host |
configure.ocaml |
391,505 |
0 |
0 |
0 |
5,112 |
0 |
1,892 |
145 |
dash |
20 |
no-host |
configure.ocaml |
637,321 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
187 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,440 |
1 |
0 |
0 |
5,120 |
0 |
1,938 |
176 |
osh-native |
5 |
no-host |
configure.tcc |
6,575 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,480 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,173 |
0 |
0 |
0 |
96 |
0 |
53 |
3 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,981 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,764 |
0 |
0 |
0 |
42,400 |
0 |
18,647 |
963 |
bash |
11 |
no-host |
configure.util-linux |
2,257,870 |
0 |
0 |
0 |
42,584 |
0 |
17,412 |
1,060 |
dash |
19 |
no-host |
configure.util-linux |
5,321,606 |
17 |
0 |
0 |
39,112 |
0 |
17,049 |
1,453 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,018,495 |
0 |
0 |
0 |
39,120 |
0 |
17,058 |
1,030 |
osh-native |
6 |
no-host |
configure.yash |
256,178 |
0 |
0 |
0 |
4,120 |
0 |
874 |
76 |
bash |
14 |
no-host |
configure.yash |
244,201 |
0 |
0 |
0 |
3,720 |
0 |
868 |
81 |
dash |
22 |
no-host |
configure.yash |
384,447 |
0 |
0 |
0 |
3,728 |
0 |
858 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
258,486 |
0 |
0 |
0 |
3,736 |
0 |
853 |
79 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,651 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host