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 |
526 |
23 |
21 |
33.52 |
1.46 |
| bin-true |
no-host |
647 |
455 |
2,474 |
827 |
825 |
3.82 |
1.28 |
| configure.cpython |
no-host |
13,822 |
13,941 |
29,451 |
14,744 |
14,894 |
2.13 |
1.07 |
| configure.ocaml |
no-host |
3,702 |
3,648 |
4,725 |
3,741 |
3,727 |
1.28 |
1.01 |
| configure.tcc |
no-host |
48 |
43 |
226 |
52 |
48 |
4.74 |
1.10 |
| configure.util-linux |
no-host |
12,716 |
13,350 |
32,415 |
13,686 |
13,946 |
2.55 |
1.08 |
| configure.yash |
no-host |
1,692 |
1,661 |
2,423 |
1,735 |
1,722 |
1.43 |
1.03 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
47.73 |
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,385 |
1,164 |
24,721 |
3,490 |
3,359 |
10.37 |
1.46 |
| bin-true |
no-host |
99,906 |
49,462 |
829,619 |
135,296 |
135,314 |
8.30 |
1.35 |
| configure.cpython |
no-host |
1,623,282 |
1,642,817 |
5,946,020 |
1,807,695 |
1,799,428 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
298,369 |
280,819 |
555,104 |
317,670 |
316,502 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,211 |
4,209 |
23,699 |
6,004 |
5,849 |
4.55 |
1.15 |
| configure.util-linux |
no-host |
1,532,471 |
1,698,397 |
4,959,221 |
1,715,017 |
1,714,091 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,634 |
159,494 |
315,112 |
179,660 |
179,309 |
1.81 |
1.03 |
| hello-world |
no-host |
152 |
84 |
3,878 |
385 |
379 |
25.51 |
2.53 |
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.8 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
827 |
1 |
2 |
2.6 |
8.8 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,744 |
1 |
66 |
15.2 |
34.4 |
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,686 |
3 |
60 |
21.4 |
39.5 |
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,741 |
1 |
2 |
2.7 |
28.8 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
52 |
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,735 |
1 |
2 |
2.6 |
33.1 |
140,016 |
8,080 |
6,714 |
6,526 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
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 |
825 |
1 |
2 |
2.6 |
8.1 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,894 |
1 |
62 |
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,946 |
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,727 |
1 |
2 |
2.7 |
28.5 |
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,722 |
1 |
2 |
2.6 |
33.4 |
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 |
7 |
9 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
526 |
472 |
57 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
12 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
647 |
328 |
358 |
3.4 |
bash |
| 9 |
no-host |
bin-true |
455 |
290 |
170 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,474 |
889 |
1,847 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
827 |
316 |
528 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
825 |
320 |
522 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,822 |
7,510 |
6,687 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,941 |
7,427 |
6,912 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,451 |
16,018 |
15,384 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,744 |
7,265 |
7,784 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,894 |
7,251 |
7,682 |
34.6 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,702 |
1,445 |
1,297 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,648 |
1,438 |
1,231 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,725 |
2,089 |
1,860 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,741 |
1,482 |
1,302 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,727 |
1,434 |
1,334 |
28.5 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
21 |
28 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
20 |
23 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
226 |
159 |
70 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
52 |
25 |
28 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
26 |
22 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,716 |
6,347 |
6,848 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,350 |
6,343 |
7,498 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,415 |
20,162 |
13,314 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,686 |
6,218 |
7,708 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,946 |
6,216 |
7,816 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,692 |
929 |
772 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,661 |
953 |
710 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,423 |
1,446 |
1,020 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,735 |
910 |
829 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,722 |
954 |
771 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
40 |
20 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
1 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
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,385 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,164 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
24,721 |
0 |
0 |
0 |
8 |
0 |
45 |
4 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,490 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,359 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,906 |
0 |
0 |
0 |
8 |
0 |
1,969 |
171 |
bash |
| 9 |
no-host |
bin-true |
49,462 |
0 |
0 |
0 |
8 |
0 |
2,961 |
64 |
dash |
| 17 |
no-host |
bin-true |
829,619 |
0 |
0 |
0 |
8 |
0 |
1,968 |
204 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,296 |
0 |
0 |
0 |
16 |
0 |
1,976 |
256 |
osh-native |
| 33 |
no-host |
bin-true |
135,314 |
0 |
0 |
0 |
16 |
0 |
1,966 |
118 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,623,282 |
0 |
0 |
0 |
25,272 |
0 |
14,041 |
1,201 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,817 |
0 |
0 |
0 |
25,272 |
0 |
14,079 |
1,397 |
dash |
| 18 |
no-host |
configure.cpython |
5,946,020 |
0 |
0 |
0 |
25,272 |
0 |
12,881 |
1,244 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,807,695 |
0 |
0 |
0 |
25,280 |
0 |
12,865 |
1,330 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,799,428 |
0 |
0 |
0 |
25,288 |
0 |
12,871 |
1,201 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,369 |
0 |
0 |
0 |
4,432 |
0 |
2,011 |
210 |
bash |
| 12 |
no-host |
configure.ocaml |
280,819 |
1 |
0 |
0 |
4,432 |
0 |
2,093 |
216 |
dash |
| 20 |
no-host |
configure.ocaml |
555,104 |
0 |
0 |
0 |
4,432 |
0 |
1,911 |
183 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,670 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
219 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,502 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
204 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,211 |
0 |
0 |
0 |
80 |
0 |
49 |
5 |
bash |
| 13 |
no-host |
configure.tcc |
4,209 |
0 |
0 |
0 |
88 |
0 |
52 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
23,699 |
0 |
0 |
0 |
88 |
0 |
53 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,004 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,849 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,532,471 |
1 |
0 |
0 |
35,944 |
0 |
18,962 |
1,204 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,397 |
0 |
0 |
0 |
35,936 |
0 |
17,041 |
1,493 |
dash |
| 19 |
no-host |
configure.util-linux |
4,959,221 |
7 |
0 |
0 |
35,952 |
0 |
17,517 |
1,231 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,715,017 |
5 |
0 |
0 |
35,944 |
0 |
17,473 |
1,123 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,714,091 |
1 |
0 |
0 |
35,944 |
0 |
17,507 |
1,094 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,634 |
0 |
0 |
0 |
3,616 |
0 |
878 |
133 |
bash |
| 14 |
no-host |
configure.yash |
159,494 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
123 |
dash |
| 22 |
no-host |
configure.yash |
315,112 |
0 |
0 |
0 |
3,616 |
0 |
862 |
159 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,660 |
0 |
0 |
0 |
3,624 |
0 |
857 |
166 |
osh-native |
| 38 |
no-host |
configure.yash |
179,309 |
0 |
0 |
0 |
3,624 |
0 |
858 |
143 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,878 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
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