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 |
527 |
22 |
21 |
33.41 |
1.39 |
| bin-true |
no-host |
630 |
459 |
2,465 |
818 |
807 |
3.91 |
1.30 |
| configure.cpython |
no-host |
13,778 |
13,799 |
29,439 |
14,569 |
14,819 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,645 |
3,610 |
4,635 |
3,725 |
3,784 |
1.27 |
1.02 |
| configure.tcc |
no-host |
46 |
42 |
220 |
49 |
49 |
4.74 |
1.06 |
| configure.util-linux |
no-host |
12,528 |
13,325 |
32,011 |
13,595 |
13,995 |
2.56 |
1.09 |
| configure.yash |
no-host |
1,723 |
1,647 |
2,414 |
1,723 |
1,763 |
1.40 |
1.00 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
41.51 |
2.02 |
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,401 |
1,152 |
24,715 |
3,440 |
3,407 |
10.29 |
1.43 |
| bin-true |
no-host |
100,000 |
49,410 |
826,585 |
136,297 |
133,289 |
8.27 |
1.36 |
| configure.cpython |
no-host |
1,627,620 |
1,638,912 |
5,952,066 |
1,812,027 |
1,788,883 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
298,597 |
280,960 |
554,375 |
317,257 |
314,951 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,226 |
4,208 |
23,763 |
5,935 |
5,877 |
4.55 |
1.14 |
| configure.util-linux |
no-host |
1,532,115 |
1,700,943 |
4,959,621 |
1,728,047 |
1,712,969 |
3.24 |
1.13 |
| configure.yash |
no-host |
173,608 |
159,514 |
314,990 |
179,052 |
178,594 |
1.81 |
1.03 |
| hello-world |
no-host |
150 |
87 |
3,875 |
385 |
376 |
25.83 |
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 |
818 |
1 |
2 |
2.6 |
9.0 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,569 |
2 |
66 |
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,595 |
3 |
59 |
21.4 |
39.3 |
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,725 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,723 |
1 |
2 |
2.6 |
33.4 |
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.8 |
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 |
807 |
1 |
2 |
2.6 |
8.4 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,819 |
1 |
64 |
15.2 |
34.5 |
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,995 |
3 |
60 |
21.4 |
39.7 |
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,784 |
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 |
49 |
0 |
0 |
1.3 |
26.2 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,763 |
1 |
2 |
2.6 |
33.1 |
140,016 |
8,069 |
6,703 |
6,528 |
68,347 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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 |
6 |
10 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
527 |
477 |
53 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
630 |
307 |
360 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
459 |
286 |
180 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,465 |
879 |
1,848 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
818 |
304 |
531 |
9.0 |
osh-native |
| 33 |
no-host |
bin-true |
807 |
304 |
520 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,778 |
7,472 |
6,690 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,799 |
7,407 |
6,780 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,439 |
16,126 |
15,269 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,569 |
7,202 |
7,673 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,819 |
7,192 |
7,744 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,645 |
1,459 |
1,226 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,610 |
1,407 |
1,226 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,635 |
2,087 |
1,768 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,725 |
1,480 |
1,288 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,784 |
1,500 |
1,323 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
21 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
156 |
68 |
26.0 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
26 |
23 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
23 |
27 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,528 |
6,416 |
6,577 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,325 |
6,299 |
7,515 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,011 |
19,924 |
13,149 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,595 |
6,205 |
7,623 |
39.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,995 |
6,315 |
7,748 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,723 |
908 |
805 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,647 |
946 |
703 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
2,414 |
1,389 |
1,067 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,723 |
961 |
766 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,763 |
922 |
843 |
33.1 |
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 |
41 |
19 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
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,401 |
0 |
0 |
0 |
8 |
0 |
41 |
3 |
bash |
| 15 |
no-host |
abuild-print-help |
1,152 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
24,715 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,440 |
0 |
0 |
0 |
16 |
0 |
39 |
5 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,407 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,000 |
0 |
0 |
0 |
8 |
0 |
1,961 |
102 |
bash |
| 9 |
no-host |
bin-true |
49,410 |
0 |
0 |
0 |
8 |
0 |
2,965 |
81 |
dash |
| 17 |
no-host |
bin-true |
826,585 |
0 |
0 |
0 |
8 |
0 |
1,970 |
227 |
osh-cpython |
| 25 |
no-host |
bin-true |
136,297 |
0 |
0 |
0 |
16 |
0 |
1,963 |
97 |
osh-native |
| 33 |
no-host |
bin-true |
133,289 |
0 |
0 |
0 |
16 |
0 |
1,968 |
140 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,627,620 |
0 |
0 |
0 |
25,272 |
0 |
14,038 |
1,202 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,912 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
1,232 |
dash |
| 18 |
no-host |
configure.cpython |
5,952,066 |
0 |
0 |
0 |
25,272 |
0 |
12,877 |
1,198 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,812,027 |
0 |
0 |
0 |
25,280 |
0 |
12,877 |
1,237 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,788,883 |
2 |
0 |
0 |
25,280 |
0 |
12,867 |
1,189 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,597 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
280,960 |
1 |
0 |
0 |
4,432 |
0 |
2,102 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
554,375 |
0 |
0 |
0 |
4,432 |
0 |
1,914 |
186 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,257 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
204 |
osh-native |
| 36 |
no-host |
configure.ocaml |
314,951 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
218 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,226 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,208 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,763 |
0 |
0 |
0 |
88 |
0 |
52 |
13 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,935 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,877 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,532,115 |
0 |
0 |
0 |
35,944 |
0 |
18,950 |
1,214 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,943 |
1 |
0 |
0 |
35,936 |
0 |
17,042 |
1,277 |
dash |
| 19 |
no-host |
configure.util-linux |
4,959,621 |
4 |
0 |
0 |
35,960 |
0 |
17,543 |
1,135 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,728,047 |
3 |
0 |
0 |
35,944 |
0 |
17,555 |
1,047 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,969 |
4 |
0 |
0 |
35,944 |
0 |
17,515 |
1,057 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,608 |
0 |
0 |
0 |
3,616 |
0 |
882 |
157 |
bash |
| 14 |
no-host |
configure.yash |
159,514 |
0 |
0 |
0 |
3,616 |
0 |
999 |
106 |
dash |
| 22 |
no-host |
configure.yash |
314,990 |
0 |
0 |
0 |
3,616 |
0 |
862 |
137 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,052 |
0 |
0 |
0 |
3,624 |
0 |
860 |
118 |
osh-native |
| 38 |
no-host |
configure.yash |
178,594 |
0 |
0 |
0 |
3,624 |
0 |
858 |
162 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,875 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
376 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host