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 |
23 |
21 |
33.72 |
1.48 |
| bin-true |
no-host |
615 |
449 |
2,447 |
797 |
806 |
3.98 |
1.30 |
| configure.cpython |
no-host |
13,698 |
13,740 |
29,346 |
14,568 |
14,600 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,649 |
3,593 |
4,617 |
3,708 |
3,715 |
1.27 |
1.02 |
| configure.tcc |
no-host |
45 |
41 |
218 |
49 |
49 |
4.80 |
1.08 |
| configure.util-linux |
no-host |
12,446 |
13,327 |
32,026 |
13,682 |
13,669 |
2.57 |
1.10 |
| configure.yash |
no-host |
1,685 |
1,631 |
2,403 |
1,704 |
1,704 |
1.43 |
1.01 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
50.84 |
2.45 |
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,389 |
1,156 |
24,633 |
3,486 |
3,343 |
10.31 |
1.46 |
| bin-true |
no-host |
101,893 |
49,400 |
833,012 |
135,320 |
137,205 |
8.18 |
1.33 |
| configure.cpython |
no-host |
1,624,420 |
1,639,217 |
5,998,430 |
1,804,073 |
1,792,901 |
3.69 |
1.11 |
| configure.ocaml |
no-host |
298,638 |
280,819 |
557,417 |
316,264 |
316,463 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,216 |
4,208 |
23,873 |
5,961 |
5,922 |
4.58 |
1.14 |
| configure.util-linux |
no-host |
1,531,278 |
1,699,534 |
4,981,750 |
1,717,040 |
1,707,589 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,328 |
159,540 |
316,219 |
178,947 |
179,199 |
1.82 |
1.03 |
| hello-world |
no-host |
153 |
87 |
3,892 |
388 |
379 |
25.44 |
2.54 |
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,826 |
3,826 |
0 |
703 |
1,880 |
1,243 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
797 |
1 |
2 |
2.6 |
8.9 |
156,798 |
15,428 |
2,915 |
8,760 |
77,347 |
70,691 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,568 |
1 |
65 |
15.2 |
34.5 |
1,782,989 |
46,101 |
25,356 |
91,621 |
885,111 |
806,257 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,682 |
3 |
60 |
21.4 |
39.7 |
2,707,122 |
126,354 |
66,586 |
113,462 |
1,294,567 |
1,299,093 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,708 |
1 |
2 |
2.7 |
28.8 |
149,873 |
12,476 |
6,519 |
7,818 |
70,839 |
71,216 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,581 |
14,645 |
14,402 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,704 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,080 |
6,714 |
6,525 |
68,347 |
65,145 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
10.0 |
116,368 |
64,438 |
42,639 |
4,561 |
54,471 |
57,336 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
1 |
2 |
2.6 |
8.3 |
156,797 |
15,423 |
2,910 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,600 |
1 |
64 |
15.2 |
34.8 |
1,782,988 |
46,087 |
25,352 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,669 |
3 |
61 |
21.4 |
39.7 |
2,707,122 |
126,347 |
66,579 |
113,464 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,715 |
1 |
2 |
2.7 |
28.6 |
149,873 |
12,470 |
6,513 |
7,820 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,583 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,704 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,069 |
6,703 |
6,527 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,367 |
64,433 |
42,634 |
4,562 |
54,471 |
57,334 |
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 |
10 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
528 |
467 |
66 |
22.5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
10 |
14 |
10.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
615 |
313 |
338 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
449 |
286 |
166 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,447 |
902 |
1,819 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
797 |
313 |
500 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
806 |
312 |
511 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,698 |
7,487 |
6,584 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,740 |
7,507 |
6,627 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,346 |
16,111 |
15,211 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,568 |
7,319 |
7,545 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,600 |
7,235 |
7,545 |
34.8 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,649 |
1,435 |
1,251 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,593 |
1,420 |
1,197 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,617 |
2,072 |
1,768 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,708 |
1,469 |
1,280 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,715 |
1,464 |
1,291 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
24 |
22 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
218 |
156 |
66 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
15 |
34 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
25 |
24 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,446 |
6,452 |
6,451 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,327 |
6,466 |
7,347 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,026 |
20,147 |
12,960 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,682 |
6,318 |
7,597 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,669 |
6,150 |
7,598 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,685 |
939 |
755 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,631 |
938 |
694 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,403 |
1,463 |
982 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,704 |
976 |
730 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,704 |
959 |
748 |
33.4 |
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 |
60 |
40 |
20 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
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,389 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,633 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,486 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,343 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,893 |
0 |
0 |
0 |
8 |
0 |
1,981 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,400 |
0 |
0 |
0 |
8 |
0 |
2,964 |
54 |
dash |
| 17 |
no-host |
bin-true |
833,012 |
0 |
0 |
0 |
8 |
0 |
1,983 |
114 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,320 |
0 |
0 |
0 |
16 |
0 |
1,973 |
75 |
osh-native |
| 33 |
no-host |
bin-true |
137,205 |
0 |
0 |
0 |
16 |
0 |
1,966 |
79 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,624,420 |
0 |
0 |
0 |
25,272 |
0 |
14,017 |
1,066 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,217 |
0 |
0 |
0 |
25,272 |
0 |
14,058 |
1,031 |
dash |
| 18 |
no-host |
configure.cpython |
5,998,430 |
0 |
0 |
0 |
25,272 |
0 |
12,864 |
856 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,804,073 |
0 |
0 |
0 |
25,280 |
0 |
12,807 |
1,042 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,792,901 |
0 |
0 |
0 |
25,280 |
0 |
12,842 |
1,076 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,638 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
202 |
bash |
| 12 |
no-host |
configure.ocaml |
280,819 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
178 |
dash |
| 20 |
no-host |
configure.ocaml |
557,417 |
0 |
0 |
0 |
4,432 |
0 |
1,920 |
199 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,264 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
205 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,463 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
222 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,216 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,208 |
0 |
0 |
0 |
88 |
0 |
52 |
0 |
dash |
| 21 |
no-host |
configure.tcc |
23,873 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,961 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,922 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,531,278 |
2 |
0 |
0 |
35,944 |
0 |
18,831 |
1,070 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,534 |
1 |
0 |
0 |
35,936 |
0 |
16,887 |
1,207 |
dash |
| 19 |
no-host |
configure.util-linux |
4,981,750 |
0 |
0 |
0 |
35,944 |
0 |
17,502 |
921 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,717,040 |
0 |
0 |
0 |
35,944 |
0 |
17,427 |
1,116 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,707,589 |
1 |
0 |
0 |
35,952 |
0 |
17,323 |
1,114 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,328 |
0 |
0 |
0 |
3,616 |
0 |
875 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,540 |
0 |
0 |
0 |
3,616 |
0 |
997 |
104 |
dash |
| 22 |
no-host |
configure.yash |
316,219 |
0 |
0 |
0 |
3,616 |
0 |
858 |
107 |
osh-cpython |
| 30 |
no-host |
configure.yash |
178,947 |
0 |
0 |
0 |
3,624 |
0 |
857 |
106 |
osh-native |
| 38 |
no-host |
configure.yash |
179,199 |
0 |
0 |
0 |
3,624 |
0 |
857 |
93 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,892 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
388 |
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