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 |
503 |
23 |
25.97 |
1.20 |
bin-true |
no-host |
693 |
553 |
2,382 |
837 |
3.43 |
1.21 |
configure.cpython |
no-host |
15,985 |
15,638 |
30,767 |
16,516 |
1.92 |
1.03 |
configure.ocaml |
no-host |
3,949 |
3,861 |
4,805 |
4,100 |
1.22 |
1.04 |
configure.tcc |
no-host |
50 |
42 |
200 |
52 |
4.02 |
1.04 |
configure.util-linux |
no-host |
14,696 |
15,401 |
33,138 |
15,690 |
2.25 |
1.07 |
configure.yash |
no-host |
1,893 |
1,845 |
2,633 |
1,962 |
1.39 |
1.04 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
29.52 |
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,545 |
1,138 |
22,927 |
3,144 |
9.01 |
1.24 |
bin-true |
no-host |
106,377 |
65,420 |
760,751 |
127,214 |
7.15 |
1.20 |
configure.cpython |
no-host |
2,215,500 |
2,238,606 |
6,189,284 |
2,222,021 |
2.79 |
1.00 |
configure.ocaml |
no-host |
409,829 |
391,219 |
640,630 |
413,696 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,569 |
5,468 |
23,291 |
7,005 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,103,295 |
2,254,390 |
5,342,948 |
1,993,269 |
2.54 |
0.95 |
configure.yash |
no-host |
256,644 |
244,446 |
385,774 |
257,928 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,698 |
348 |
24.49 |
2.30 |
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,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
837 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,516 |
1 |
70 |
15.0 |
27.3 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,690 |
3 |
70 |
21.3 |
30.3 |
2,703,535 |
42,745 |
65,812 |
109,673 |
1,320,647 |
1,273,215 |
27,394 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
4,100 |
1 |
2 |
2.6 |
20.4 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
52 |
0 |
0 |
1.3 |
19.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,962 |
1 |
2 |
2.6 |
24.2 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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 |
9 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
503 |
458 |
48 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
6 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
693 |
495 |
231 |
3.0 |
bash |
9 |
no-host |
bin-true |
553 |
423 |
140 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,382 |
1,525 |
1,137 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
837 |
602 |
248 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,985 |
9,464 |
6,945 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,638 |
9,471 |
6,599 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
30,767 |
18,531 |
14,266 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,516 |
9,541 |
7,262 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,949 |
1,752 |
1,237 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,861 |
1,670 |
1,208 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,805 |
2,366 |
1,657 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,100 |
1,766 |
1,374 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
33 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
25 |
18 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
200 |
128 |
77 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
38 |
15 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,696 |
9,287 |
5,900 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,401 |
9,334 |
6,572 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
33,138 |
21,674 |
12,638 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,690 |
9,374 |
6,517 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,893 |
1,143 |
760 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,845 |
1,137 |
711 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,633 |
1,632 |
1,049 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,962 |
1,081 |
885 |
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 |
52 |
36 |
16 |
17.4 |
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,545 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,138 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,927 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,144 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,377 |
0 |
0 |
0 |
8 |
0 |
1,995 |
137 |
bash |
9 |
no-host |
bin-true |
65,420 |
0 |
0 |
0 |
8 |
0 |
1,982 |
37 |
dash |
17 |
no-host |
bin-true |
760,751 |
0 |
0 |
0 |
8 |
0 |
1,996 |
197 |
osh-cpython |
25 |
no-host |
bin-true |
127,214 |
0 |
0 |
0 |
16 |
0 |
1,992 |
64 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,500 |
0 |
0 |
0 |
32,928 |
0 |
14,521 |
1,096 |
bash |
10 |
no-host |
configure.cpython |
2,238,606 |
0 |
0 |
0 |
32,992 |
0 |
14,638 |
1,087 |
dash |
18 |
no-host |
configure.cpython |
6,189,284 |
0 |
0 |
0 |
27,512 |
0 |
13,292 |
1,459 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,222,021 |
0 |
0 |
0 |
27,520 |
0 |
13,184 |
1,110 |
osh-native |
4 |
no-host |
configure.ocaml |
409,829 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
221 |
bash |
12 |
no-host |
configure.ocaml |
391,219 |
0 |
0 |
0 |
5,112 |
0 |
1,871 |
127 |
dash |
20 |
no-host |
configure.ocaml |
640,630 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
201 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,696 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
182 |
osh-native |
5 |
no-host |
configure.tcc |
6,569 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,291 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,005 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,295 |
2 |
0 |
0 |
42,400 |
0 |
18,555 |
1,359 |
bash |
11 |
no-host |
configure.util-linux |
2,254,390 |
1 |
0 |
0 |
42,584 |
0 |
17,379 |
1,162 |
dash |
19 |
no-host |
configure.util-linux |
5,342,948 |
8 |
0 |
0 |
39,136 |
0 |
16,978 |
1,287 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,269 |
1 |
0 |
0 |
39,144 |
0 |
16,910 |
1,134 |
osh-native |
6 |
no-host |
configure.yash |
256,644 |
0 |
0 |
0 |
4,120 |
0 |
867 |
72 |
bash |
14 |
no-host |
configure.yash |
244,446 |
0 |
0 |
0 |
3,720 |
0 |
869 |
74 |
dash |
22 |
no-host |
configure.yash |
385,774 |
0 |
0 |
0 |
3,728 |
0 |
853 |
99 |
osh-cpython |
30 |
no-host |
configure.yash |
257,928 |
0 |
0 |
0 |
3,736 |
0 |
849 |
95 |
osh-native |
0 |
no-host |
hello-world |
151 |
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 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host