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 |
460 |
22 |
24.52 |
1.19 |
bin-true |
no-host |
678 |
545 |
2,228 |
811 |
3.29 |
1.20 |
configure.cpython |
no-host |
14,912 |
15,121 |
28,405 |
15,469 |
1.90 |
1.04 |
configure.ocaml |
no-host |
3,865 |
3,725 |
4,602 |
3,818 |
1.19 |
0.99 |
configure.tcc |
no-host |
47 |
41 |
192 |
49 |
4.05 |
1.03 |
configure.util-linux |
no-host |
13,943 |
15,159 |
30,982 |
14,396 |
2.22 |
1.03 |
configure.yash |
no-host |
1,821 |
1,755 |
2,456 |
1,822 |
1.35 |
1.00 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
31.78 |
1.95 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,555 |
1,100 |
23,345 |
3,185 |
9.14 |
1.25 |
bin-true |
no-host |
106,377 |
66,484 |
747,454 |
127,178 |
7.03 |
1.20 |
configure.cpython |
no-host |
2,220,480 |
2,244,612 |
6,148,687 |
2,241,322 |
2.77 |
1.01 |
configure.ocaml |
no-host |
411,205 |
391,479 |
638,182 |
413,639 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,541 |
5,477 |
23,204 |
6,965 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,099,695 |
2,257,813 |
5,308,019 |
2,010,882 |
2.53 |
0.96 |
configure.yash |
no-host |
256,548 |
244,727 |
385,733 |
257,662 |
1.50 |
1.00 |
hello-world |
no-host |
152 |
82 |
3,668 |
344 |
24.13 |
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.3 |
6.3 |
3,723 |
3,723 |
0 |
684 |
1,875 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.7 |
8.0 |
154,688 |
12,992 |
2,799 |
11,737 |
78,344 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,469 |
1 |
61 |
15.8 |
27.4 |
1,772,604 |
49,197 |
28,508 |
101,770 |
908,051 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,396 |
3 |
59 |
22.2 |
30.0 |
2,703,268 |
44,766 |
65,812 |
126,121 |
1,320,495 |
1,256,652 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,818 |
1 |
2 |
2.7 |
20.6 |
150,030 |
11,045 |
5,138 |
8,602 |
71,629 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,523 |
30,523 |
0 |
1,599 |
14,799 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,822 |
1 |
2 |
2.6 |
24.4 |
139,687 |
7,964 |
6,600 |
7,554 |
70,301 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,266 |
64,455 |
42,663 |
4,610 |
54,544 |
57,112 |
478 |
3 |
85,326 |
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 |
12 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
460 |
417 |
46 |
21.4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
678 |
518 |
192 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
416 |
139 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,228 |
1,465 |
1,014 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
607 |
220 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,912 |
8,898 |
6,414 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,121 |
9,018 |
6,527 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,405 |
17,486 |
12,748 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,469 |
9,232 |
6,504 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,865 |
1,634 |
1,266 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,725 |
1,566 |
1,177 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,602 |
2,176 |
1,628 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,818 |
1,596 |
1,262 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
28 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
32 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
192 |
160 |
35 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
32 |
17 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,943 |
8,824 |
5,588 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,159 |
9,301 |
6,363 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,982 |
20,749 |
11,295 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,396 |
8,690 |
5,900 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,821 |
1,006 |
824 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,755 |
1,019 |
739 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,456 |
1,527 |
973 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,822 |
1,035 |
790 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
30 |
17 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,555 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
38 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,345 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,185 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,377 |
0 |
0 |
0 |
8 |
0 |
1,987 |
51 |
bash |
9 |
no-host |
bin-true |
66,484 |
0 |
0 |
0 |
8 |
0 |
1,985 |
51 |
dash |
17 |
no-host |
bin-true |
747,454 |
0 |
0 |
0 |
8 |
0 |
1,999 |
263 |
osh-cpython |
25 |
no-host |
bin-true |
127,178 |
0 |
0 |
0 |
16 |
0 |
1,984 |
46 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,480 |
0 |
0 |
0 |
32,928 |
0 |
14,425 |
1,154 |
bash |
10 |
no-host |
configure.cpython |
2,244,612 |
0 |
0 |
0 |
32,992 |
0 |
14,593 |
1,201 |
dash |
18 |
no-host |
configure.cpython |
6,148,687 |
0 |
0 |
0 |
27,512 |
0 |
13,189 |
1,140 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,241,322 |
0 |
0 |
0 |
27,520 |
0 |
13,255 |
966 |
osh-native |
4 |
no-host |
configure.ocaml |
411,205 |
0 |
0 |
0 |
5,120 |
0 |
1,954 |
165 |
bash |
12 |
no-host |
configure.ocaml |
391,479 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
148 |
dash |
20 |
no-host |
configure.ocaml |
638,182 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
166 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,639 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
164 |
osh-native |
5 |
no-host |
configure.tcc |
6,541 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,477 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,204 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,965 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,695 |
0 |
0 |
0 |
42,400 |
0 |
18,707 |
1,030 |
bash |
11 |
no-host |
configure.util-linux |
2,257,813 |
1 |
0 |
0 |
42,584 |
0 |
17,470 |
1,058 |
dash |
19 |
no-host |
configure.util-linux |
5,308,019 |
9 |
0 |
0 |
39,112 |
0 |
17,133 |
1,273 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,010,882 |
1 |
0 |
0 |
39,120 |
0 |
17,195 |
1,173 |
osh-native |
6 |
no-host |
configure.yash |
256,548 |
0 |
0 |
0 |
4,120 |
0 |
868 |
86 |
bash |
14 |
no-host |
configure.yash |
244,727 |
0 |
0 |
0 |
3,720 |
0 |
869 |
88 |
dash |
22 |
no-host |
configure.yash |
385,733 |
0 |
0 |
0 |
3,728 |
0 |
854 |
73 |
osh-cpython |
30 |
no-host |
configure.yash |
257,662 |
0 |
0 |
0 |
3,736 |
0 |
851 |
80 |
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,668 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host