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 |
20 |
10 |
455 |
23 |
23.32 |
1.17 |
bin-true |
no-host |
684 |
550 |
2,250 |
839 |
3.29 |
1.23 |
configure.cpython |
no-host |
15,549 |
15,599 |
29,707 |
15,876 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,926 |
3,845 |
4,764 |
3,969 |
1.21 |
1.01 |
configure.tcc |
no-host |
49 |
44 |
195 |
50 |
3.98 |
1.02 |
configure.util-linux |
no-host |
14,503 |
15,318 |
32,456 |
15,053 |
2.24 |
1.04 |
configure.yash |
no-host |
1,864 |
1,855 |
2,499 |
1,912 |
1.34 |
1.03 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.87 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,518 |
1,119 |
23,234 |
3,176 |
9.23 |
1.26 |
bin-true |
no-host |
105,386 |
66,422 |
749,037 |
129,262 |
7.11 |
1.23 |
configure.cpython |
no-host |
2,217,724 |
2,248,658 |
6,138,073 |
2,227,379 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,448 |
391,144 |
636,845 |
413,415 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,560 |
5,463 |
23,228 |
6,990 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,097,197 |
2,257,053 |
5,338,740 |
2,011,185 |
2.55 |
0.96 |
configure.yash |
no-host |
255,543 |
244,007 |
385,785 |
259,084 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,657 |
349 |
23.90 |
2.28 |
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,717 |
3,717 |
0 |
684 |
1,869 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
839 |
1 |
2 |
2.7 |
8.1 |
154,682 |
12,988 |
2,795 |
11,737 |
78,338 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,876 |
1 |
68 |
15.8 |
27.4 |
1,772,598 |
49,193 |
28,504 |
101,770 |
908,045 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,053 |
3 |
66 |
22.2 |
30.1 |
2,703,262 |
44,762 |
65,788 |
126,121 |
1,320,489 |
1,256,652 |
49,081 |
41 |
131,576 |
1 |
configure.ocaml |
no-host |
3,969 |
1 |
2 |
2.7 |
20.4 |
150,024 |
11,041 |
5,134 |
8,602 |
71,623 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,517 |
30,517 |
0 |
1,599 |
14,793 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,912 |
1 |
2 |
2.6 |
24.2 |
139,681 |
7,960 |
6,596 |
7,554 |
70,295 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.7 |
116,260 |
64,451 |
42,659 |
4,609 |
54,538 |
57,113 |
478 |
3 |
85,318 |
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 |
20 |
15 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
455 |
405 |
53 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
7 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
684 |
520 |
198 |
2.9 |
bash |
9 |
no-host |
bin-true |
550 |
416 |
145 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,250 |
1,516 |
996 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
839 |
588 |
265 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,549 |
9,303 |
6,618 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,599 |
9,321 |
6,688 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,707 |
17,744 |
13,841 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,876 |
9,296 |
6,830 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,926 |
1,687 |
1,254 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,845 |
1,625 |
1,238 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,764 |
2,354 |
1,618 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,969 |
1,735 |
1,270 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
37 |
12 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
44 |
38 |
6 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
146 |
53 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
33 |
18 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,503 |
9,045 |
5,916 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,318 |
9,402 |
6,406 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,456 |
21,482 |
12,094 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,053 |
8,983 |
6,223 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,864 |
1,079 |
793 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,855 |
1,140 |
718 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,499 |
1,498 |
1,043 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,912 |
1,114 |
800 |
24.2 |
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 |
25 |
24 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,518 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,119 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,234 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,176 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
105,386 |
0 |
0 |
0 |
8 |
0 |
1,988 |
99 |
bash |
9 |
no-host |
bin-true |
66,422 |
0 |
0 |
0 |
8 |
0 |
1,986 |
84 |
dash |
17 |
no-host |
bin-true |
749,037 |
0 |
0 |
0 |
8 |
0 |
2,001 |
156 |
osh-cpython |
25 |
no-host |
bin-true |
129,262 |
0 |
0 |
0 |
16 |
0 |
1,987 |
81 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,724 |
0 |
0 |
0 |
32,928 |
0 |
14,531 |
1,052 |
bash |
10 |
no-host |
configure.cpython |
2,248,658 |
0 |
0 |
0 |
32,992 |
0 |
14,647 |
999 |
dash |
18 |
no-host |
configure.cpython |
6,138,073 |
0 |
0 |
0 |
27,512 |
0 |
13,199 |
1,316 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,379 |
0 |
0 |
0 |
27,520 |
0 |
13,235 |
1,062 |
osh-native |
4 |
no-host |
configure.ocaml |
410,448 |
0 |
0 |
0 |
5,120 |
0 |
1,965 |
170 |
bash |
12 |
no-host |
configure.ocaml |
391,144 |
0 |
0 |
0 |
5,112 |
0 |
1,929 |
151 |
dash |
20 |
no-host |
configure.ocaml |
636,845 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
189 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,415 |
0 |
0 |
0 |
5,120 |
0 |
1,921 |
169 |
osh-native |
5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,463 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,228 |
0 |
0 |
0 |
96 |
0 |
53 |
15 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,990 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,097,197 |
0 |
0 |
0 |
42,400 |
0 |
18,661 |
1,109 |
bash |
11 |
no-host |
configure.util-linux |
2,257,053 |
1 |
0 |
0 |
42,584 |
0 |
17,563 |
1,290 |
dash |
19 |
no-host |
configure.util-linux |
5,338,740 |
8 |
0 |
0 |
39,136 |
0 |
17,079 |
1,432 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,011,185 |
1 |
0 |
0 |
39,120 |
0 |
17,107 |
1,045 |
osh-native |
6 |
no-host |
configure.yash |
255,543 |
0 |
0 |
0 |
4,120 |
0 |
870 |
85 |
bash |
14 |
no-host |
configure.yash |
244,007 |
0 |
0 |
0 |
3,720 |
0 |
870 |
72 |
dash |
22 |
no-host |
configure.yash |
385,785 |
0 |
0 |
0 |
3,728 |
0 |
858 |
108 |
osh-cpython |
30 |
no-host |
configure.yash |
259,084 |
0 |
0 |
0 |
3,736 |
0 |
851 |
107 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,657 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host