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 |
460 |
22 |
21 |
24.41 |
1.17 |
| bin-true |
no-host |
670 |
545 |
2,271 |
807 |
808 |
3.39 |
1.21 |
| configure.cpython |
no-host |
14,869 |
14,933 |
28,725 |
15,027 |
15,168 |
1.93 |
1.01 |
| configure.ocaml |
no-host |
3,760 |
3,710 |
4,609 |
3,782 |
3,787 |
1.23 |
1.01 |
| configure.tcc |
no-host |
47 |
41 |
202 |
48 |
48 |
4.29 |
1.03 |
| configure.util-linux |
no-host |
13,850 |
14,721 |
31,237 |
14,215 |
14,209 |
2.26 |
1.03 |
| configure.yash |
no-host |
1,796 |
1,751 |
2,435 |
1,807 |
1,802 |
1.36 |
1.01 |
| hello-world |
no-host |
1 |
1 |
63 |
3 |
3 |
41.95 |
1.91 |
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,560 |
1,133 |
23,804 |
3,184 |
3,100 |
9.30 |
1.24 |
| bin-true |
no-host |
104,311 |
66,439 |
772,538 |
126,195 |
125,317 |
7.41 |
1.21 |
| configure.cpython |
no-host |
2,224,447 |
2,243,859 |
6,256,146 |
2,211,769 |
2,207,595 |
2.81 |
0.99 |
| configure.ocaml |
no-host |
409,947 |
391,248 |
647,824 |
412,833 |
412,123 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,549 |
5,485 |
24,113 |
6,962 |
6,909 |
3.68 |
1.06 |
| configure.util-linux |
no-host |
2,092,614 |
2,264,411 |
5,400,265 |
1,992,035 |
1,985,441 |
2.58 |
0.95 |
| configure.yash |
no-host |
256,236 |
244,092 |
389,604 |
257,431 |
257,377 |
1.52 |
1.00 |
| hello-world |
no-host |
153 |
82 |
3,940 |
345 |
343 |
25.75 |
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 |
807 |
1 |
2 |
2.6 |
8.1 |
153,746 |
12,267 |
2,887 |
8,743 |
76,322 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,027 |
1 |
62 |
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,215 |
3 |
59 |
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,782 |
1 |
2 |
2.6 |
20.6 |
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.4 |
30,586 |
30,586 |
0 |
1,518 |
14,641 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,807 |
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 |
8.9 |
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.9 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
1 |
2 |
2.6 |
7.5 |
153,745 |
12,111 |
2,825 |
8,744 |
76,322 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,168 |
1 |
61 |
14.9 |
27.5 |
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,209 |
3 |
61 |
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,787 |
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.3 |
30,586 |
30,586 |
0 |
1,520 |
14,641 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,802 |
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 |
11 |
8 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
460 |
423 |
41 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
17 |
5 |
8.9 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
670 |
495 |
207 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
545 |
417 |
137 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,271 |
1,484 |
1,040 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
807 |
590 |
233 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
808 |
569 |
255 |
7.5 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,869 |
9,210 |
6,061 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,933 |
9,058 |
6,303 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
28,725 |
17,660 |
12,932 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,027 |
9,013 |
6,289 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,168 |
8,894 |
6,415 |
27.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,760 |
1,607 |
1,191 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,710 |
1,602 |
1,127 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,609 |
2,217 |
1,598 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,782 |
1,600 |
1,223 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,787 |
1,657 |
1,166 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
31 |
16 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
19 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
202 |
159 |
46 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
25 |
23 |
19.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
23 |
26 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,850 |
8,857 |
5,466 |
30.1 |
bash |
| 11 |
no-host |
configure.util-linux |
14,721 |
9,092 |
6,131 |
30.0 |
dash |
| 19 |
no-host |
configure.util-linux |
31,237 |
21,000 |
11,309 |
30.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,215 |
8,670 |
5,740 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,209 |
8,498 |
5,906 |
30.0 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,796 |
1,013 |
792 |
24.4 |
bash |
| 14 |
no-host |
configure.yash |
1,751 |
1,051 |
702 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,435 |
1,485 |
990 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,807 |
1,045 |
764 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,802 |
1,082 |
724 |
24.5 |
osh-native-souffle |
| 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 |
63 |
36 |
27 |
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.9 |
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,560 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,133 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,804 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,184 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,100 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
104,311 |
0 |
0 |
0 |
8 |
0 |
1,988 |
48 |
bash |
| 9 |
no-host |
bin-true |
66,439 |
0 |
0 |
0 |
8 |
0 |
1,990 |
40 |
dash |
| 17 |
no-host |
bin-true |
772,538 |
0 |
0 |
0 |
8 |
0 |
1,997 |
89 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,195 |
0 |
0 |
0 |
16 |
0 |
1,993 |
45 |
osh-native |
| 33 |
no-host |
bin-true |
125,317 |
0 |
0 |
0 |
16 |
0 |
1,996 |
49 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,224,447 |
0 |
0 |
0 |
32,952 |
0 |
14,530 |
981 |
bash |
| 10 |
no-host |
configure.cpython |
2,243,859 |
0 |
0 |
0 |
32,992 |
0 |
14,583 |
1,103 |
dash |
| 18 |
no-host |
configure.cpython |
6,256,146 |
0 |
0 |
0 |
27,512 |
0 |
13,269 |
1,123 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,211,769 |
0 |
0 |
0 |
27,520 |
0 |
13,278 |
850 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,207,595 |
0 |
0 |
0 |
27,520 |
0 |
13,212 |
990 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
409,947 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
142 |
bash |
| 12 |
no-host |
configure.ocaml |
391,248 |
0 |
0 |
0 |
5,112 |
0 |
1,927 |
161 |
dash |
| 20 |
no-host |
configure.ocaml |
647,824 |
0 |
0 |
0 |
5,112 |
0 |
1,849 |
168 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,833 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
151 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,123 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
167 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,549 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
5,485 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,113 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,962 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,909 |
0 |
0 |
0 |
104 |
0 |
47 |
9 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,092,614 |
0 |
0 |
0 |
42,400 |
0 |
18,574 |
956 |
bash |
| 11 |
no-host |
configure.util-linux |
2,264,411 |
0 |
0 |
0 |
42,584 |
0 |
17,360 |
1,031 |
dash |
| 19 |
no-host |
configure.util-linux |
5,400,265 |
5 |
0 |
0 |
39,112 |
0 |
16,962 |
1,268 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,992,035 |
0 |
0 |
0 |
39,120 |
0 |
17,089 |
1,005 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,985,441 |
1 |
0 |
0 |
39,136 |
0 |
16,991 |
1,014 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,236 |
0 |
0 |
0 |
4,120 |
0 |
870 |
87 |
bash |
| 14 |
no-host |
configure.yash |
244,092 |
0 |
0 |
0 |
3,720 |
0 |
870 |
87 |
dash |
| 22 |
no-host |
configure.yash |
389,604 |
0 |
0 |
0 |
3,728 |
0 |
853 |
123 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,431 |
0 |
0 |
0 |
3,736 |
0 |
852 |
89 |
osh-native |
| 38 |
no-host |
configure.yash |
257,377 |
0 |
0 |
0 |
3,736 |
0 |
849 |
77 |
osh-native-souffle |
| 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,940 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
| 24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host