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 |
16 |
7 |
511 |
17 |
32.70 |
1.12 |
bin-true |
no-host |
652 |
414 |
1,910 |
735 |
2.93 |
1.13 |
configure.cpython |
no-host |
15,318 |
13,513 |
28,988 |
14,408 |
1.89 |
0.94 |
configure.ocaml |
no-host |
3,859 |
3,521 |
4,538 |
3,069 |
1.18 |
0.80 |
configure.tcc |
no-host |
49 |
31 |
150 |
36 |
3.09 |
0.75 |
configure.util-linux |
no-host |
14,150 |
13,131 |
31,794 |
11,852 |
2.25 |
0.84 |
configure.yash |
no-host |
1,451 |
1,322 |
2,061 |
1,318 |
1.42 |
0.91 |
hello-world |
no-host |
2 |
1 |
36 |
3 |
22.26 |
1.81 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,522 |
1,104 |
22,820 |
3,148 |
9.05 |
1.25 |
bin-true |
no-host |
106,424 |
66,414 |
765,459 |
128,484 |
7.19 |
1.21 |
configure.cpython |
no-host |
2,225,302 |
2,244,152 |
6,179,147 |
2,224,164 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,914 |
391,536 |
641,667 |
413,545 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,520 |
5,491 |
23,334 |
6,976 |
3.58 |
1.07 |
configure.util-linux |
no-host |
2,100,969 |
2,268,958 |
5,338,202 |
1,993,312 |
2.54 |
0.95 |
configure.yash |
no-host |
256,789 |
245,280 |
385,461 |
257,850 |
1.50 |
1.00 |
hello-world |
no-host |
154 |
82 |
3,698 |
350 |
24.01 |
2.27 |
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,759 |
3,759 |
0 |
684 |
1,901 |
1,174 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
735 |
1 |
2 |
2.6 |
8.3 |
154,724 |
13,074 |
2,826 |
9,734 |
78,370 |
66,620 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,408 |
2 |
66 |
15.0 |
27.6 |
1,772,700 |
49,116 |
28,536 |
86,381 |
908,122 |
778,197 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
11,852 |
3 |
62 |
21.3 |
30.3 |
2,703,545 |
42,753 |
65,840 |
109,673 |
1,320,656 |
1,273,216 |
27,394 |
41 |
131,680 |
1 |
configure.ocaml |
no-host |
3,069 |
0 |
2 |
2.6 |
20.7 |
150,070 |
11,001 |
5,171 |
7,513 |
71,658 |
70,899 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
36 |
0 |
0 |
1.3 |
19.5 |
30,559 |
30,559 |
0 |
1,504 |
14,825 |
14,230 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,318 |
1 |
2 |
2.6 |
24.6 |
139,727 |
7,969 |
6,628 |
6,320 |
70,330 |
63,077 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
17 |
0 |
1 |
2.8 |
9.2 |
116,302 |
64,479 |
42,689 |
4,554 |
54,570 |
57,178 |
270 |
3 |
85,378 |
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 |
16 |
12 |
4 |
4.6 |
bash |
15 |
no-host |
abuild-print-help |
7 |
4 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
511 |
455 |
59 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
17 |
13 |
5 |
9.2 |
osh-native |
1 |
no-host |
bin-true |
652 |
468 |
207 |
2.9 |
bash |
9 |
no-host |
bin-true |
414 |
327 |
87 |
1.5 |
dash |
17 |
no-host |
bin-true |
1,910 |
1,202 |
986 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
735 |
531 |
209 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
15,318 |
9,725 |
5,942 |
27.6 |
bash |
10 |
no-host |
configure.cpython |
13,513 |
8,599 |
5,267 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,988 |
17,838 |
13,125 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,408 |
8,855 |
5,775 |
27.6 |
osh-native |
4 |
no-host |
configure.ocaml |
3,859 |
1,704 |
1,186 |
20.8 |
bash |
12 |
no-host |
configure.ocaml |
3,521 |
1,501 |
1,027 |
20.7 |
dash |
20 |
no-host |
configure.ocaml |
4,538 |
2,123 |
1,603 |
20.7 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,069 |
1,394 |
708 |
20.7 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
26 |
24 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
31 |
21 |
10 |
19.5 |
dash |
21 |
no-host |
configure.tcc |
150 |
124 |
30 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
36 |
21 |
16 |
19.5 |
osh-native |
3 |
no-host |
configure.util-linux |
14,150 |
9,191 |
5,305 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
13,131 |
8,329 |
5,183 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
31,794 |
21,220 |
11,750 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
11,852 |
7,429 |
4,550 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,451 |
865 |
592 |
24.6 |
bash |
14 |
no-host |
configure.yash |
1,322 |
811 |
512 |
24.6 |
dash |
22 |
no-host |
configure.yash |
2,061 |
1,248 |
857 |
24.6 |
osh-cpython |
30 |
no-host |
configure.yash |
1,318 |
781 |
538 |
24.6 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
3.1 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.7 |
dash |
16 |
no-host |
hello-world |
36 |
24 |
12 |
17.5 |
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,522 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,820 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,148 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,424 |
0 |
0 |
0 |
8 |
0 |
2,001 |
63 |
bash |
9 |
no-host |
bin-true |
66,414 |
0 |
0 |
0 |
8 |
0 |
1,999 |
37 |
dash |
17 |
no-host |
bin-true |
765,459 |
0 |
0 |
0 |
8 |
0 |
2,006 |
181 |
osh-cpython |
25 |
no-host |
bin-true |
128,484 |
0 |
0 |
0 |
16 |
0 |
2,000 |
72 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,302 |
0 |
0 |
0 |
32,928 |
0 |
16,344 |
3,129 |
bash |
10 |
no-host |
configure.cpython |
2,244,152 |
2 |
0 |
0 |
32,992 |
0 |
14,826 |
1,528 |
dash |
18 |
no-host |
configure.cpython |
6,179,147 |
1 |
0 |
0 |
27,512 |
0 |
16,153 |
5,381 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,164 |
0 |
0 |
0 |
27,520 |
0 |
12,972 |
1,365 |
osh-native |
4 |
no-host |
configure.ocaml |
410,914 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
269 |
bash |
12 |
no-host |
configure.ocaml |
391,536 |
0 |
0 |
0 |
5,112 |
0 |
1,899 |
248 |
dash |
20 |
no-host |
configure.ocaml |
641,667 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
322 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,545 |
0 |
0 |
0 |
5,120 |
0 |
1,861 |
259 |
osh-native |
5 |
no-host |
configure.tcc |
6,520 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,491 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,334 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,969 |
1 |
0 |
0 |
42,400 |
0 |
22,387 |
6,282 |
bash |
11 |
no-host |
configure.util-linux |
2,268,958 |
1 |
0 |
0 |
42,584 |
0 |
20,455 |
5,055 |
dash |
19 |
no-host |
configure.util-linux |
5,338,202 |
4 |
0 |
0 |
39,112 |
0 |
16,948 |
2,241 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,312 |
1 |
0 |
0 |
39,136 |
0 |
17,039 |
1,231 |
osh-native |
6 |
no-host |
configure.yash |
256,789 |
0 |
0 |
0 |
4,120 |
0 |
868 |
78 |
bash |
14 |
no-host |
configure.yash |
245,280 |
0 |
0 |
0 |
3,720 |
0 |
870 |
79 |
dash |
22 |
no-host |
configure.yash |
385,461 |
2 |
0 |
0 |
3,728 |
0 |
858 |
114 |
osh-cpython |
30 |
no-host |
configure.yash |
257,850 |
0 |
0 |
0 |
3,736 |
0 |
851 |
100 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,698 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host