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 |
16 |
9 |
541 |
22 |
21 |
33.95 |
1.35 |
| bin-true |
no-host |
614 |
439 |
2,447 |
814 |
795 |
3.98 |
1.32 |
| configure.cpython |
no-host |
14,108 |
13,946 |
29,442 |
14,740 |
14,698 |
2.09 |
1.04 |
| configure.ocaml |
no-host |
3,712 |
3,651 |
4,696 |
3,720 |
3,712 |
1.27 |
1.00 |
| configure.tcc |
no-host |
46 |
42 |
226 |
49 |
49 |
4.87 |
1.06 |
| configure.util-linux |
no-host |
12,790 |
13,197 |
32,328 |
13,677 |
13,655 |
2.53 |
1.07 |
| configure.yash |
no-host |
1,726 |
1,661 |
2,451 |
1,713 |
1,721 |
1.42 |
0.99 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
47.89 |
2.32 |
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,411 |
1,179 |
24,706 |
3,473 |
3,361 |
10.25 |
1.44 |
| bin-true |
no-host |
100,829 |
49,382 |
835,628 |
138,295 |
136,226 |
8.29 |
1.37 |
| configure.cpython |
no-host |
1,625,805 |
1,641,082 |
5,990,064 |
1,800,841 |
1,787,529 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
298,558 |
281,167 |
556,553 |
316,247 |
315,973 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,220 |
4,222 |
23,955 |
5,944 |
5,860 |
4.59 |
1.14 |
| configure.util-linux |
no-host |
1,535,309 |
1,700,973 |
4,978,596 |
1,723,826 |
1,703,230 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,593 |
159,616 |
315,878 |
179,200 |
178,560 |
1.82 |
1.03 |
| hello-world |
no-host |
154 |
86 |
3,872 |
387 |
379 |
25.14 |
2.51 |
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.9 |
3,827 |
3,827 |
0 |
704 |
1,881 |
1,242 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
1 |
2 |
2.6 |
8.7 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,740 |
1 |
66 |
15.2 |
34.5 |
1,782,990 |
46,102 |
25,357 |
91,622 |
885,112 |
806,256 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,677 |
3 |
60 |
21.4 |
39.7 |
2,707,123 |
126,355 |
66,587 |
113,463 |
1,294,568 |
1,299,092 |
32,539 |
41 |
133,174 |
1 |
| configure.ocaml |
no-host |
3,720 |
1 |
2 |
2.7 |
28.8 |
149,874 |
12,477 |
6,520 |
7,819 |
70,840 |
71,215 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.0 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,713 |
1 |
2 |
2.6 |
33.4 |
140,018 |
8,081 |
6,715 |
6,526 |
68,348 |
65,144 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,369 |
64,439 |
42,640 |
4,562 |
54,472 |
57,335 |
277 |
3 |
85,280 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.7 |
3,826 |
3,826 |
0 |
705 |
1,881 |
1,240 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
795 |
1 |
2 |
2.6 |
8.4 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,698 |
1 |
64 |
15.2 |
34.7 |
1,782,989 |
46,088 |
25,353 |
91,623 |
885,112 |
806,254 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,655 |
3 |
59 |
21.4 |
39.9 |
2,707,123 |
126,348 |
66,580 |
113,465 |
1,294,568 |
1,299,090 |
32,539 |
41 |
133,160 |
1 |
| configure.ocaml |
no-host |
3,712 |
1 |
2 |
2.7 |
28.6 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.1 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,721 |
1 |
2 |
2.6 |
33.5 |
140,018 |
8,070 |
6,704 |
6,528 |
68,348 |
65,142 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,368 |
64,434 |
42,635 |
4,563 |
54,472 |
57,333 |
277 |
3 |
85,270 |
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 |
16 |
10 |
7 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
541 |
490 |
54 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
614 |
304 |
348 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
439 |
274 |
171 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,447 |
887 |
1,837 |
18.0 |
osh-cpython |
| 25 |
no-host |
bin-true |
814 |
315 |
516 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
795 |
294 |
517 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,108 |
7,556 |
6,930 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,946 |
7,608 |
6,720 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
29,442 |
16,145 |
15,265 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,740 |
7,453 |
7,582 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,698 |
7,321 |
7,492 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,712 |
1,473 |
1,277 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,651 |
1,466 |
1,208 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,696 |
2,125 |
1,792 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,720 |
1,458 |
1,302 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,712 |
1,493 |
1,257 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
32 |
15 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
226 |
153 |
77 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
31 |
18 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
23 |
26 |
26.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,790 |
6,630 |
6,620 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,197 |
6,321 |
7,357 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,328 |
20,368 |
13,015 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,677 |
6,303 |
7,604 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,655 |
6,247 |
7,481 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,726 |
956 |
777 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,661 |
944 |
718 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,451 |
1,452 |
1,041 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,713 |
922 |
794 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,721 |
885 |
838 |
33.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
36 |
25 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
6.7 |
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,411 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,179 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,706 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,473 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,361 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,829 |
0 |
0 |
0 |
8 |
0 |
1,981 |
56 |
bash |
| 9 |
no-host |
bin-true |
49,382 |
0 |
0 |
0 |
8 |
0 |
2,986 |
40 |
dash |
| 17 |
no-host |
bin-true |
835,628 |
0 |
0 |
0 |
8 |
0 |
1,993 |
169 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,295 |
0 |
0 |
0 |
16 |
0 |
1,976 |
108 |
osh-native |
| 33 |
no-host |
bin-true |
136,226 |
0 |
0 |
0 |
16 |
0 |
1,973 |
86 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,625,805 |
0 |
0 |
0 |
25,272 |
0 |
14,012 |
1,062 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,082 |
0 |
0 |
0 |
25,272 |
0 |
14,077 |
1,049 |
dash |
| 18 |
no-host |
configure.cpython |
5,990,064 |
0 |
0 |
0 |
25,272 |
0 |
12,882 |
858 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,800,841 |
0 |
0 |
0 |
25,280 |
0 |
12,827 |
1,068 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,787,529 |
0 |
0 |
0 |
25,280 |
0 |
12,826 |
1,028 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,558 |
0 |
0 |
0 |
4,432 |
0 |
2,010 |
208 |
bash |
| 12 |
no-host |
configure.ocaml |
281,167 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
556,553 |
0 |
0 |
0 |
4,432 |
0 |
1,918 |
192 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,247 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
218 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,973 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
202 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,220 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,222 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,955 |
0 |
0 |
0 |
88 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,944 |
0 |
0 |
0 |
96 |
0 |
46 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,860 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,535,309 |
1 |
0 |
0 |
35,944 |
0 |
18,944 |
1,158 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,973 |
1 |
0 |
0 |
35,936 |
0 |
17,075 |
1,230 |
dash |
| 19 |
no-host |
configure.util-linux |
4,978,596 |
3 |
0 |
0 |
35,944 |
0 |
17,519 |
849 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,723,826 |
2 |
0 |
0 |
35,944 |
0 |
17,504 |
1,096 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,703,230 |
2 |
0 |
0 |
35,944 |
0 |
17,501 |
1,101 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,593 |
0 |
0 |
0 |
3,616 |
0 |
875 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,616 |
0 |
0 |
0 |
3,616 |
0 |
990 |
102 |
dash |
| 22 |
no-host |
configure.yash |
315,878 |
0 |
0 |
0 |
3,616 |
0 |
864 |
97 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,200 |
0 |
0 |
0 |
3,624 |
0 |
858 |
108 |
osh-native |
| 38 |
no-host |
configure.yash |
178,560 |
0 |
0 |
0 |
3,624 |
0 |
858 |
99 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,872 |
0 |
0 |
0 |
8 |
0 |
6 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
387 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
379 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host