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 |
528 |
22 |
20 |
33.15 |
1.41 |
| bin-true |
no-host |
637 |
477 |
2,490 |
823 |
826 |
3.91 |
1.29 |
| configure.cpython |
no-host |
13,863 |
13,926 |
29,551 |
14,833 |
14,763 |
2.13 |
1.07 |
| configure.ocaml |
no-host |
3,683 |
3,632 |
4,655 |
3,794 |
3,716 |
1.26 |
1.03 |
| configure.tcc |
no-host |
47 |
42 |
220 |
51 |
48 |
4.70 |
1.10 |
| configure.util-linux |
no-host |
12,665 |
13,466 |
32,120 |
13,746 |
13,820 |
2.54 |
1.09 |
| configure.yash |
no-host |
1,717 |
1,655 |
2,441 |
1,797 |
1,715 |
1.42 |
1.05 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
50.08 |
2.37 |
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,423 |
1,179 |
24,744 |
3,503 |
3,346 |
10.21 |
1.45 |
| bin-true |
no-host |
100,990 |
49,401 |
828,564 |
136,250 |
135,285 |
8.20 |
1.35 |
| configure.cpython |
no-host |
1,619,019 |
1,639,601 |
5,953,113 |
1,798,558 |
1,797,854 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
299,016 |
281,217 |
555,206 |
316,341 |
315,935 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,206 |
4,199 |
23,732 |
5,981 |
5,873 |
4.56 |
1.15 |
| configure.util-linux |
no-host |
1,525,871 |
1,690,029 |
4,961,285 |
1,727,553 |
1,701,535 |
3.25 |
1.13 |
| configure.yash |
no-host |
173,407 |
159,483 |
315,063 |
179,402 |
179,102 |
1.82 |
1.03 |
| hello-world |
no-host |
150 |
86 |
3,882 |
385 |
376 |
25.88 |
2.57 |
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,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
823 |
1 |
2 |
2.6 |
8.9 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,833 |
1 |
68 |
15.2 |
34.5 |
1,782,988 |
46,101 |
25,356 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,746 |
3 |
62 |
21.4 |
39.7 |
2,707,121 |
126,354 |
66,586 |
113,463 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,794 |
1 |
2 |
2.7 |
28.5 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
26.1 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,797 |
1 |
2 |
2.6 |
33.3 |
140,016 |
8,080 |
6,714 |
6,526 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.7 |
116,367 |
64,438 |
42,639 |
4,562 |
54,471 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
826 |
1 |
2 |
2.6 |
8.3 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,763 |
1 |
64 |
15.2 |
34.6 |
1,782,987 |
46,087 |
25,352 |
91,623 |
885,111 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,820 |
3 |
58 |
21.4 |
39.6 |
2,707,121 |
126,347 |
66,579 |
113,465 |
1,294,567 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,716 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.3 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,715 |
1 |
2 |
2.6 |
33.5 |
140,016 |
8,069 |
6,703 |
6,528 |
68,347 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
9.3 |
116,366 |
64,433 |
42,634 |
4,563 |
54,471 |
57,332 |
277 |
3 |
85,268 |
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 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
528 |
474 |
58 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
11 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
9 |
12 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
637 |
317 |
358 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
477 |
284 |
200 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,490 |
937 |
1,815 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
823 |
310 |
530 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
826 |
288 |
555 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,863 |
7,414 |
6,841 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,926 |
7,497 |
6,839 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,551 |
16,077 |
15,418 |
34.7 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,833 |
7,425 |
7,720 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,763 |
7,239 |
7,706 |
34.6 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,683 |
1,438 |
1,286 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,632 |
1,430 |
1,225 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,655 |
2,042 |
1,834 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,794 |
1,497 |
1,339 |
28.5 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,716 |
1,436 |
1,320 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
27 |
21 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
26 |
16 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
155 |
69 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
26 |
26 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
26 |
23 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,665 |
6,468 |
6,675 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,466 |
6,422 |
7,541 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,120 |
20,012 |
13,172 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,746 |
6,165 |
7,823 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,820 |
6,316 |
7,591 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,717 |
924 |
799 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,655 |
920 |
737 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,441 |
1,457 |
1,028 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,797 |
976 |
824 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,715 |
952 |
766 |
33.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
41 |
20 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
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,423 |
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,744 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,503 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,346 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,990 |
0 |
0 |
0 |
8 |
0 |
1,975 |
84 |
bash |
| 9 |
no-host |
bin-true |
49,401 |
0 |
0 |
0 |
8 |
0 |
2,958 |
76 |
dash |
| 17 |
no-host |
bin-true |
828,564 |
0 |
0 |
0 |
8 |
0 |
1,975 |
359 |
osh-cpython |
| 25 |
no-host |
bin-true |
136,250 |
0 |
0 |
0 |
16 |
0 |
1,975 |
150 |
osh-native |
| 33 |
no-host |
bin-true |
135,285 |
0 |
0 |
0 |
16 |
0 |
1,962 |
134 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,619,019 |
1 |
0 |
0 |
25,272 |
0 |
14,038 |
1,204 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,601 |
0 |
0 |
0 |
25,272 |
0 |
14,095 |
1,214 |
dash |
| 18 |
no-host |
configure.cpython |
5,953,113 |
1 |
0 |
0 |
25,272 |
0 |
12,857 |
1,200 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,798,558 |
0 |
0 |
0 |
25,280 |
0 |
12,858 |
1,171 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,797,854 |
0 |
0 |
0 |
25,280 |
0 |
12,883 |
1,173 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,016 |
0 |
0 |
0 |
4,432 |
0 |
2,006 |
190 |
bash |
| 12 |
no-host |
configure.ocaml |
281,217 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
232 |
dash |
| 20 |
no-host |
configure.ocaml |
555,206 |
0 |
0 |
0 |
4,432 |
0 |
1,910 |
199 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,341 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
199 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,935 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
219 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,206 |
0 |
0 |
0 |
80 |
0 |
49 |
0 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
52 |
8 |
dash |
| 21 |
no-host |
configure.tcc |
23,732 |
0 |
0 |
0 |
88 |
0 |
53 |
2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,981 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,873 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,525,871 |
0 |
0 |
0 |
35,944 |
0 |
18,957 |
1,299 |
bash |
| 11 |
no-host |
configure.util-linux |
1,690,029 |
0 |
0 |
0 |
35,936 |
0 |
17,024 |
1,456 |
dash |
| 19 |
no-host |
configure.util-linux |
4,961,285 |
4 |
0 |
0 |
35,944 |
0 |
17,579 |
1,229 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,727,553 |
2 |
0 |
0 |
35,944 |
0 |
17,528 |
1,080 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,701,535 |
5 |
0 |
0 |
35,944 |
0 |
17,493 |
1,115 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,407 |
0 |
0 |
0 |
3,616 |
0 |
874 |
145 |
bash |
| 14 |
no-host |
configure.yash |
159,483 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
142 |
dash |
| 22 |
no-host |
configure.yash |
315,063 |
0 |
0 |
0 |
3,616 |
0 |
862 |
134 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,402 |
0 |
0 |
0 |
3,624 |
0 |
857 |
138 |
osh-native |
| 38 |
no-host |
configure.yash |
179,102 |
0 |
0 |
0 |
3,624 |
0 |
855 |
121 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
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,882 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
376 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host