oils.pub
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 |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
453 |
22 |
21 |
24.11 |
1.18 |
bin-true |
no-host |
667 |
539 |
2,294 |
799 |
812 |
3.44 |
1.20 |
configure.cpython |
no-host |
14,984 |
14,865 |
28,484 |
15,047 |
15,174 |
1.90 |
1.00 |
configure.ocaml |
no-host |
3,789 |
3,694 |
4,611 |
3,790 |
3,795 |
1.22 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
202 |
48 |
48 |
4.26 |
1.02 |
configure.util-linux |
no-host |
13,921 |
14,722 |
31,025 |
14,170 |
14,107 |
2.23 |
1.02 |
configure.yash |
no-host |
1,804 |
1,746 |
2,430 |
1,800 |
1,809 |
1.35 |
1.00 |
hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
38.02 |
1.98 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,545 |
1,094 |
23,737 |
3,187 |
3,099 |
9.33 |
1.25 |
bin-true |
no-host |
104,380 |
65,451 |
773,082 |
124,287 |
127,192 |
7.41 |
1.19 |
configure.cpython |
no-host |
2,221,009 |
2,237,981 |
6,236,306 |
2,211,355 |
2,202,096 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,062 |
390,680 |
647,095 |
412,699 |
412,876 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,557 |
5,470 |
24,013 |
6,986 |
6,911 |
3.66 |
1.07 |
configure.util-linux |
no-host |
2,102,958 |
2,260,054 |
5,385,354 |
2,001,057 |
1,989,853 |
2.56 |
0.95 |
configure.yash |
no-host |
256,743 |
245,092 |
389,014 |
257,811 |
258,431 |
1.52 |
1.00 |
hello-world |
no-host |
152 |
80 |
3,943 |
342 |
334 |
25.94 |
2.25 |
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.2 |
6.3 |
3,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
799 |
1 |
2 |
2.6 |
8.0 |
153,746 |
12,267 |
2,887 |
8,743 |
76,322 |
68,681 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,047 |
1 |
59 |
14.9 |
27.4 |
1,771,747 |
49,125 |
28,512 |
85,415 |
878,115 |
808,217 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,170 |
2 |
57 |
21.2 |
30.1 |
2,702,513 |
45,898 |
65,711 |
108,691 |
1,290,640 |
1,303,182 |
32,239 |
41 |
131,422 |
1 |
configure.ocaml |
no-host |
3,790 |
1 |
2 |
2.6 |
20.4 |
150,080 |
11,112 |
5,207 |
7,508 |
70,969 |
71,603 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,518 |
14,641 |
14,427 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,800 |
1 |
2 |
2.5 |
24.4 |
139,412 |
8,024 |
6,686 |
5,989 |
67,942 |
65,481 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,292 |
64,403 |
42,613 |
4,532 |
54,436 |
57,324 |
277 |
3 |
85,226 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
812 |
1 |
2 |
2.6 |
7.6 |
153,745 |
12,111 |
2,825 |
8,744 |
76,322 |
68,679 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,174 |
1 |
58 |
14.9 |
27.3 |
1,771,746 |
44,577 |
28,450 |
85,416 |
878,115 |
808,215 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,107 |
2 |
57 |
21.2 |
30.0 |
2,702,513 |
53,693 |
65,649 |
108,693 |
1,290,640 |
1,303,180 |
32,239 |
41 |
131,298 |
1 |
configure.ocaml |
no-host |
3,795 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,050 |
5,145 |
7,510 |
70,969 |
71,601 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,520 |
14,641 |
14,425 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,809 |
1 |
2 |
2.5 |
24.5 |
139,412 |
7,962 |
6,624 |
5,991 |
67,942 |
65,479 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,291 |
64,341 |
42,551 |
4,533 |
54,436 |
57,322 |
277 |
3 |
85,102 |
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 |
19 |
0 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
453 |
417 |
39 |
22.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
5 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
667 |
494 |
203 |
3.0 |
bash |
9 |
no-host |
bin-true |
539 |
409 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,294 |
1,508 |
1,043 |
18.4 |
osh-cpython |
25 |
no-host |
bin-true |
799 |
553 |
261 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
812 |
566 |
261 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,984 |
9,061 |
6,318 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,865 |
8,947 |
6,333 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,484 |
17,352 |
12,957 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,047 |
8,958 |
6,342 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,174 |
8,971 |
6,290 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,789 |
1,634 |
1,193 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,694 |
1,597 |
1,116 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,611 |
2,252 |
1,566 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,790 |
1,643 |
1,188 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,795 |
1,656 |
1,176 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
35 |
13 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
202 |
137 |
68 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
38 |
11 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,921 |
8,911 |
5,474 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,722 |
9,224 |
5,994 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,025 |
20,773 |
11,300 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,170 |
8,724 |
5,647 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,107 |
8,577 |
5,725 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,804 |
1,079 |
729 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,746 |
1,050 |
699 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,430 |
1,480 |
990 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,800 |
1,088 |
715 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,809 |
1,107 |
706 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
56 |
32 |
23 |
18.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
5.8 |
osh-native-souffle |
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 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,737 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,187 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,099 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,380 |
0 |
0 |
0 |
8 |
0 |
1,990 |
62 |
bash |
9 |
no-host |
bin-true |
65,451 |
0 |
0 |
0 |
8 |
0 |
1,991 |
119 |
dash |
17 |
no-host |
bin-true |
773,082 |
0 |
0 |
0 |
8 |
0 |
1,995 |
122 |
osh-cpython |
25 |
no-host |
bin-true |
124,287 |
0 |
0 |
0 |
16 |
0 |
1,990 |
46 |
osh-native |
33 |
no-host |
bin-true |
127,192 |
0 |
0 |
0 |
16 |
0 |
1,994 |
103 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,221,009 |
1 |
0 |
0 |
32,928 |
0 |
14,375 |
1,067 |
bash |
10 |
no-host |
configure.cpython |
2,237,981 |
0 |
0 |
0 |
32,992 |
0 |
14,616 |
1,042 |
dash |
18 |
no-host |
configure.cpython |
6,236,306 |
1 |
0 |
0 |
27,512 |
0 |
13,322 |
1,206 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,211,355 |
0 |
0 |
0 |
27,520 |
0 |
13,268 |
1,129 |
osh-native |
34 |
no-host |
configure.cpython |
2,202,096 |
0 |
0 |
0 |
27,520 |
0 |
13,162 |
1,103 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,062 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
181 |
bash |
12 |
no-host |
configure.ocaml |
390,680 |
0 |
0 |
0 |
5,112 |
0 |
1,873 |
152 |
dash |
20 |
no-host |
configure.ocaml |
647,095 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
172 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,699 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
155 |
osh-native |
36 |
no-host |
configure.ocaml |
412,876 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
168 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
24,013 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,986 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,911 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,958 |
0 |
0 |
0 |
42,400 |
0 |
18,575 |
1,117 |
bash |
11 |
no-host |
configure.util-linux |
2,260,054 |
0 |
0 |
0 |
42,584 |
0 |
17,443 |
1,088 |
dash |
19 |
no-host |
configure.util-linux |
5,385,354 |
11 |
0 |
0 |
39,120 |
0 |
16,952 |
1,331 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,001,057 |
0 |
0 |
0 |
39,120 |
0 |
17,112 |
923 |
osh-native |
35 |
no-host |
configure.util-linux |
1,989,853 |
0 |
0 |
0 |
39,128 |
0 |
17,000 |
912 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,743 |
0 |
0 |
0 |
4,120 |
0 |
870 |
101 |
bash |
14 |
no-host |
configure.yash |
245,092 |
0 |
0 |
0 |
3,720 |
0 |
870 |
75 |
dash |
22 |
no-host |
configure.yash |
389,014 |
0 |
0 |
0 |
3,728 |
0 |
856 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
257,811 |
0 |
0 |
0 |
3,736 |
0 |
849 |
79 |
osh-native |
38 |
no-host |
configure.yash |
258,431 |
0 |
0 |
0 |
3,736 |
0 |
850 |
66 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,943 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
334 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host