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 |
463 |
21 |
24.31 |
1.12 |
bin-true |
no-host |
682 |
546 |
2,255 |
806 |
3.31 |
1.18 |
configure.cpython |
no-host |
15,047 |
15,051 |
28,558 |
15,237 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,798 |
3,733 |
4,621 |
3,804 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
192 |
48 |
4.02 |
1.01 |
configure.util-linux |
no-host |
14,075 |
14,961 |
31,102 |
14,314 |
2.21 |
1.02 |
configure.yash |
no-host |
1,830 |
1,806 |
2,427 |
1,822 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
31.04 |
1.83 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,549 |
1,113 |
23,431 |
3,164 |
9.19 |
1.24 |
bin-true |
no-host |
107,322 |
66,426 |
750,660 |
126,263 |
6.99 |
1.18 |
configure.cpython |
no-host |
2,214,935 |
2,241,068 |
6,136,820 |
2,224,828 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,037 |
391,234 |
640,067 |
412,932 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,531 |
5,487 |
23,247 |
6,946 |
3.56 |
1.06 |
configure.util-linux |
no-host |
2,095,793 |
2,250,824 |
5,325,092 |
2,006,815 |
2.54 |
0.96 |
configure.yash |
no-host |
256,623 |
245,080 |
384,334 |
258,564 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,679 |
343 |
23.89 |
2.23 |
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 |
5.9 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
806 |
1 |
2 |
2.7 |
7.9 |
154,692 |
12,780 |
2,737 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,237 |
1 |
58 |
15.8 |
27.5 |
1,772,668 |
44,567 |
28,446 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,314 |
3 |
58 |
22.2 |
30.0 |
2,703,404 |
45,041 |
65,750 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,500 |
1 |
configure.ocaml |
no-host |
3,804 |
0 |
2 |
2.7 |
20.6 |
150,038 |
10,983 |
5,076 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,822 |
1 |
2 |
2.6 |
24.2 |
139,695 |
7,902 |
6,538 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,270 |
64,393 |
42,601 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,202 |
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 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
463 |
412 |
54 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
21 |
11 |
11 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
682 |
518 |
193 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
423 |
133 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,255 |
1,527 |
984 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
806 |
545 |
273 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,047 |
9,105 |
6,334 |
28.4 |
bash |
10 |
no-host |
configure.cpython |
15,051 |
9,156 |
6,304 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,558 |
17,367 |
13,022 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,237 |
8,906 |
6,583 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,798 |
1,676 |
1,158 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,733 |
1,564 |
1,185 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,621 |
2,285 |
1,537 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,804 |
1,592 |
1,249 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
23 |
25 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
192 |
127 |
68 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
23 |
26 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,075 |
8,785 |
5,734 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,961 |
9,173 |
6,280 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,102 |
20,894 |
11,272 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,314 |
8,525 |
5,973 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,830 |
979 |
842 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,806 |
1,085 |
723 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,427 |
1,468 |
1,001 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,822 |
1,077 |
750 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
47 |
32 |
15 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
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,549 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,113 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,431 |
0 |
0 |
0 |
8 |
0 |
47 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,164 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,322 |
0 |
0 |
0 |
8 |
0 |
1,991 |
96 |
bash |
9 |
no-host |
bin-true |
66,426 |
0 |
0 |
0 |
8 |
0 |
1,981 |
57 |
dash |
17 |
no-host |
bin-true |
750,660 |
0 |
0 |
0 |
8 |
0 |
1,995 |
506 |
osh-cpython |
25 |
no-host |
bin-true |
126,263 |
0 |
0 |
0 |
16 |
0 |
1,991 |
54 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,935 |
0 |
0 |
0 |
32,928 |
0 |
14,518 |
1,252 |
bash |
10 |
no-host |
configure.cpython |
2,241,068 |
0 |
0 |
0 |
32,992 |
0 |
14,652 |
1,201 |
dash |
18 |
no-host |
configure.cpython |
6,136,820 |
0 |
0 |
0 |
27,512 |
0 |
13,320 |
1,329 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,828 |
0 |
0 |
0 |
27,520 |
0 |
13,313 |
1,259 |
osh-native |
4 |
no-host |
configure.ocaml |
410,037 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
196 |
bash |
12 |
no-host |
configure.ocaml |
391,234 |
0 |
0 |
0 |
5,112 |
0 |
1,938 |
183 |
dash |
20 |
no-host |
configure.ocaml |
640,067 |
1 |
0 |
0 |
5,112 |
0 |
1,863 |
269 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,932 |
0 |
0 |
0 |
5,120 |
0 |
1,938 |
171 |
osh-native |
5 |
no-host |
configure.tcc |
6,531 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
46 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,247 |
0 |
0 |
0 |
96 |
0 |
52 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,946 |
0 |
0 |
0 |
104 |
0 |
47 |
7 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,793 |
3 |
0 |
0 |
42,400 |
0 |
18,595 |
1,193 |
bash |
11 |
no-host |
configure.util-linux |
2,250,824 |
1 |
0 |
0 |
42,592 |
0 |
17,353 |
1,134 |
dash |
19 |
no-host |
configure.util-linux |
5,325,092 |
8 |
0 |
0 |
39,112 |
0 |
17,061 |
1,157 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,006,815 |
2 |
0 |
0 |
39,120 |
0 |
17,065 |
950 |
osh-native |
6 |
no-host |
configure.yash |
256,623 |
0 |
0 |
0 |
4,120 |
0 |
881 |
91 |
bash |
14 |
no-host |
configure.yash |
245,080 |
0 |
0 |
0 |
3,720 |
0 |
870 |
82 |
dash |
22 |
no-host |
configure.yash |
384,334 |
0 |
0 |
0 |
3,728 |
0 |
856 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
258,564 |
0 |
0 |
0 |
3,736 |
0 |
851 |
93 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,679 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host