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 |
453 |
21 |
23.50 |
1.11 |
bin-true |
no-host |
683 |
540 |
2,244 |
810 |
3.29 |
1.19 |
configure.cpython |
no-host |
15,093 |
15,325 |
29,106 |
15,300 |
1.93 |
1.01 |
configure.ocaml |
no-host |
3,826 |
3,830 |
4,687 |
3,895 |
1.23 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
196 |
49 |
4.07 |
1.02 |
configure.util-linux |
no-host |
14,067 |
15,327 |
31,698 |
14,541 |
2.25 |
1.03 |
configure.yash |
no-host |
1,827 |
1,795 |
2,463 |
1,864 |
1.35 |
1.02 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
29.58 |
1.67 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,523 |
1,094 |
23,452 |
3,132 |
9.30 |
1.24 |
bin-true |
no-host |
105,337 |
65,431 |
749,686 |
125,175 |
7.12 |
1.19 |
configure.cpython |
no-host |
2,218,973 |
2,249,787 |
6,129,450 |
2,217,693 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,588 |
391,539 |
640,056 |
413,336 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,570 |
5,486 |
23,272 |
6,994 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,090,304 |
2,252,788 |
5,331,782 |
2,009,054 |
2.55 |
0.96 |
configure.yash |
no-host |
256,093 |
244,094 |
384,725 |
258,393 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
79 |
3,684 |
341 |
24.08 |
2.23 |
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 |
5.8 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
810 |
1 |
2 |
2.7 |
7.5 |
154,692 |
12,780 |
2,737 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,300 |
1 |
60 |
15.8 |
27.5 |
1,772,668 |
44,567 |
28,446 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,541 |
3 |
60 |
22.2 |
30.1 |
2,703,404 |
45,041 |
65,750 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,500 |
1 |
configure.ocaml |
no-host |
3,895 |
1 |
2 |
2.7 |
20.4 |
150,038 |
10,983 |
5,076 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,864 |
1 |
2 |
2.6 |
24.2 |
139,695 |
7,902 |
6,538 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.3 |
116,270 |
64,393 |
42,601 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,202 |
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 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
453 |
425 |
31 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
21 |
18 |
4 |
8.3 |
osh-native |
1 |
no-host |
bin-true |
683 |
493 |
221 |
2.9 |
bash |
9 |
no-host |
bin-true |
540 |
415 |
135 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,244 |
1,446 |
1,061 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
810 |
569 |
254 |
7.5 |
osh-native |
2 |
no-host |
configure.cpython |
15,093 |
9,041 |
6,451 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,325 |
9,173 |
6,579 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,106 |
17,956 |
13,042 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,300 |
9,078 |
6,479 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,826 |
1,675 |
1,190 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,830 |
1,602 |
1,248 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,687 |
2,277 |
1,615 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,895 |
1,628 |
1,304 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
28 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
139 |
60 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
37 |
13 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,067 |
8,822 |
5,714 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,327 |
9,300 |
6,512 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,698 |
20,895 |
11,930 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,541 |
8,747 |
5,988 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,827 |
1,031 |
805 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,795 |
1,034 |
765 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,463 |
1,551 |
955 |
24.1 |
osh-cpython |
30 |
no-host |
configure.yash |
1,864 |
1,130 |
738 |
24.2 |
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 |
49 |
21 |
28 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
5.8 |
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,523 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,452 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,132 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
105,337 |
0 |
0 |
0 |
8 |
0 |
1,992 |
245 |
bash |
9 |
no-host |
bin-true |
65,431 |
0 |
0 |
0 |
8 |
0 |
1,983 |
51 |
dash |
17 |
no-host |
bin-true |
749,686 |
0 |
0 |
0 |
8 |
0 |
2,001 |
311 |
osh-cpython |
25 |
no-host |
bin-true |
125,175 |
0 |
0 |
0 |
16 |
0 |
1,991 |
57 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,973 |
0 |
0 |
0 |
32,928 |
0 |
14,429 |
1,186 |
bash |
10 |
no-host |
configure.cpython |
2,249,787 |
0 |
0 |
0 |
32,992 |
0 |
14,607 |
1,114 |
dash |
18 |
no-host |
configure.cpython |
6,129,450 |
1 |
0 |
0 |
27,512 |
0 |
13,249 |
1,138 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,217,693 |
0 |
0 |
0 |
27,520 |
0 |
13,204 |
965 |
osh-native |
4 |
no-host |
configure.ocaml |
410,588 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
159 |
bash |
12 |
no-host |
configure.ocaml |
391,539 |
0 |
0 |
0 |
5,112 |
0 |
1,927 |
142 |
dash |
20 |
no-host |
configure.ocaml |
640,056 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
233 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,336 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
242 |
osh-native |
5 |
no-host |
configure.tcc |
6,570 |
0 |
0 |
0 |
104 |
0 |
49 |
15 |
bash |
13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,272 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,994 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,090,304 |
1 |
0 |
0 |
42,408 |
0 |
18,743 |
1,076 |
bash |
11 |
no-host |
configure.util-linux |
2,252,788 |
0 |
0 |
0 |
42,592 |
0 |
17,464 |
1,256 |
dash |
19 |
no-host |
configure.util-linux |
5,331,782 |
12 |
0 |
0 |
39,120 |
0 |
17,128 |
1,352 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,054 |
1 |
0 |
0 |
39,128 |
0 |
17,060 |
1,044 |
osh-native |
6 |
no-host |
configure.yash |
256,093 |
0 |
0 |
0 |
4,120 |
0 |
872 |
83 |
bash |
14 |
no-host |
configure.yash |
244,094 |
0 |
0 |
0 |
3,720 |
0 |
864 |
61 |
dash |
22 |
no-host |
configure.yash |
384,725 |
0 |
0 |
0 |
3,728 |
0 |
860 |
107 |
osh-cpython |
30 |
no-host |
configure.yash |
258,393 |
0 |
0 |
0 |
3,736 |
0 |
852 |
89 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,684 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host