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 |
9 |
458 |
23 |
23.48 |
1.17 |
bin-true |
no-host |
676 |
550 |
2,252 |
828 |
3.33 |
1.22 |
configure.cpython |
no-host |
15,437 |
15,492 |
28,782 |
15,629 |
1.86 |
1.01 |
configure.ocaml |
no-host |
3,874 |
3,803 |
4,741 |
3,874 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
195 |
49 |
4.04 |
1.02 |
configure.util-linux |
no-host |
14,284 |
15,111 |
31,782 |
14,679 |
2.22 |
1.03 |
configure.yash |
no-host |
1,865 |
1,824 |
2,525 |
1,860 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.70 |
1.93 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,531 |
1,109 |
23,219 |
3,183 |
9.17 |
1.26 |
bin-true |
no-host |
105,379 |
65,431 |
751,040 |
128,211 |
7.13 |
1.22 |
configure.cpython |
no-host |
2,225,138 |
2,240,940 |
6,124,984 |
2,239,241 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,905 |
391,003 |
638,659 |
413,856 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,555 |
5,488 |
23,208 |
6,971 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,103,782 |
2,261,510 |
5,323,215 |
2,003,922 |
2.53 |
0.95 |
configure.yash |
no-host |
256,109 |
245,231 |
385,548 |
258,248 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,650 |
348 |
23.86 |
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.2 |
3,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
828 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,629 |
1 |
67 |
15.8 |
27.5 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,679 |
3 |
64 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,874 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,860 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,265 |
64,454 |
42,662 |
4,609 |
54,543 |
57,113 |
478 |
3 |
85,324 |
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 |
8 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
458 |
414 |
47 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
13 |
11 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
676 |
505 |
204 |
2.9 |
bash |
9 |
no-host |
bin-true |
550 |
432 |
126 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,252 |
1,505 |
1,006 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
828 |
570 |
273 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,437 |
9,420 |
6,430 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,492 |
9,179 |
6,750 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,782 |
17,819 |
12,819 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,629 |
9,262 |
6,647 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,874 |
1,555 |
1,360 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,803 |
1,645 |
1,177 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,741 |
2,280 |
1,669 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,874 |
1,679 |
1,233 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
33 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
148 |
49 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,284 |
8,993 |
5,778 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,111 |
9,211 |
6,407 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,782 |
21,262 |
11,616 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,679 |
8,730 |
6,151 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,865 |
1,073 |
800 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,824 |
995 |
833 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,525 |
1,515 |
1,055 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,860 |
1,112 |
752 |
24.4 |
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 |
24 |
25 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
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,531 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,109 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,219 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,183 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
105,379 |
0 |
0 |
0 |
8 |
0 |
1,988 |
60 |
bash |
9 |
no-host |
bin-true |
65,431 |
0 |
0 |
0 |
8 |
0 |
1,994 |
46 |
dash |
17 |
no-host |
bin-true |
751,040 |
0 |
0 |
0 |
8 |
0 |
1,995 |
256 |
osh-cpython |
25 |
no-host |
bin-true |
128,211 |
0 |
0 |
0 |
16 |
0 |
1,988 |
97 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,138 |
0 |
0 |
0 |
32,928 |
0 |
14,498 |
1,168 |
bash |
10 |
no-host |
configure.cpython |
2,240,940 |
1 |
0 |
0 |
32,992 |
0 |
14,584 |
1,076 |
dash |
18 |
no-host |
configure.cpython |
6,124,984 |
1 |
0 |
0 |
27,512 |
0 |
13,221 |
1,234 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,239,241 |
0 |
0 |
0 |
27,520 |
0 |
13,237 |
1,014 |
osh-native |
4 |
no-host |
configure.ocaml |
410,905 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
146 |
bash |
12 |
no-host |
configure.ocaml |
391,003 |
0 |
0 |
0 |
5,112 |
0 |
1,905 |
149 |
dash |
20 |
no-host |
configure.ocaml |
638,659 |
1 |
0 |
0 |
5,112 |
0 |
1,858 |
163 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,856 |
0 |
0 |
0 |
5,120 |
0 |
1,939 |
159 |
osh-native |
5 |
no-host |
configure.tcc |
6,555 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,488 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,208 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,971 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,782 |
1 |
0 |
0 |
42,400 |
0 |
18,596 |
1,043 |
bash |
11 |
no-host |
configure.util-linux |
2,261,510 |
1 |
0 |
0 |
42,592 |
0 |
17,386 |
1,114 |
dash |
19 |
no-host |
configure.util-linux |
5,323,215 |
11 |
0 |
0 |
39,112 |
0 |
17,185 |
1,428 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,003,922 |
2 |
0 |
0 |
39,120 |
0 |
17,062 |
987 |
osh-native |
6 |
no-host |
configure.yash |
256,109 |
0 |
0 |
0 |
4,120 |
0 |
868 |
92 |
bash |
14 |
no-host |
configure.yash |
245,231 |
0 |
0 |
0 |
3,720 |
0 |
869 |
90 |
dash |
22 |
no-host |
configure.yash |
385,548 |
0 |
0 |
0 |
3,728 |
0 |
858 |
100 |
osh-cpython |
30 |
no-host |
configure.yash |
258,248 |
0 |
0 |
0 |
3,736 |
0 |
856 |
78 |
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,650 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host