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 |
547 |
23 |
21 |
34.87 |
1.48 |
| bin-true |
no-host |
642 |
463 |
2,478 |
847 |
839 |
3.86 |
1.32 |
| configure.cpython |
no-host |
14,384 |
14,410 |
29,928 |
15,048 |
15,663 |
2.08 |
1.05 |
| configure.ocaml |
no-host |
3,692 |
3,627 |
4,898 |
3,752 |
3,847 |
1.33 |
1.02 |
| configure.tcc |
no-host |
47 |
42 |
219 |
49 |
50 |
4.68 |
1.05 |
| configure.util-linux |
no-host |
12,741 |
13,453 |
33,058 |
14,578 |
14,610 |
2.59 |
1.14 |
| configure.yash |
no-host |
1,709 |
1,659 |
2,628 |
1,728 |
1,747 |
1.54 |
1.01 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
46.92 |
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,369 |
1,150 |
24,711 |
3,477 |
3,322 |
10.43 |
1.47 |
| bin-true |
no-host |
100,943 |
49,389 |
829,569 |
134,297 |
131,256 |
8.22 |
1.33 |
| configure.cpython |
no-host |
1,616,649 |
1,645,780 |
5,946,507 |
1,799,288 |
1,805,453 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
298,964 |
281,224 |
555,190 |
317,628 |
315,883 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,233 |
4,223 |
23,721 |
5,947 |
5,881 |
4.53 |
1.14 |
| configure.util-linux |
no-host |
1,532,359 |
1,694,849 |
4,958,164 |
1,714,926 |
1,712,076 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,528 |
159,569 |
315,144 |
179,368 |
179,412 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
84 |
3,876 |
382 |
378 |
25.50 |
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.8 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
847 |
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 |
15,048 |
2 |
72 |
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 |
14,578 |
3 |
68 |
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,752 |
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 |
49 |
0 |
0 |
1.3 |
26.0 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,728 |
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 |
23 |
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 |
839 |
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 |
15,663 |
2 |
70 |
15.2 |
34.4 |
1,782,987 |
46,087 |
25,352 |
91,623 |
885,111 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,610 |
3 |
64 |
21.4 |
39.5 |
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,847 |
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 |
50 |
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,747 |
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.2 |
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 |
3 |
7 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
547 |
485 |
66 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
11 |
13 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
642 |
317 |
367 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
463 |
280 |
188 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,478 |
880 |
1,861 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
847 |
303 |
565 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
839 |
318 |
541 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,384 |
7,672 |
7,111 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,410 |
7,673 |
7,159 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,928 |
16,197 |
15,736 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,048 |
7,431 |
7,939 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,663 |
7,668 |
8,166 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,692 |
1,431 |
1,297 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,627 |
1,453 |
1,198 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,898 |
2,178 |
1,952 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,752 |
1,448 |
1,348 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,847 |
1,523 |
1,366 |
28.5 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
26 |
22 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
24 |
18 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
219 |
156 |
67 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
33 |
17 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
25 |
25 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,741 |
6,487 |
6,730 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,453 |
6,467 |
7,485 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
33,058 |
20,378 |
13,772 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,578 |
6,532 |
8,300 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,610 |
6,525 |
8,181 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,709 |
928 |
790 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,659 |
923 |
739 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,628 |
1,513 |
1,159 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,728 |
955 |
776 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,747 |
928 |
821 |
33.4 |
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 |
37 |
23 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.8 |
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,369 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,150 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,711 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,477 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,322 |
0 |
0 |
0 |
16 |
0 |
39 |
5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,943 |
0 |
0 |
0 |
8 |
0 |
1,970 |
117 |
bash |
| 9 |
no-host |
bin-true |
49,389 |
0 |
0 |
0 |
8 |
0 |
2,967 |
68 |
dash |
| 17 |
no-host |
bin-true |
829,569 |
0 |
0 |
0 |
8 |
0 |
1,982 |
251 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,297 |
0 |
0 |
0 |
16 |
0 |
1,981 |
128 |
osh-native |
| 33 |
no-host |
bin-true |
131,256 |
0 |
0 |
0 |
16 |
0 |
1,982 |
88 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,616,649 |
2 |
0 |
0 |
25,272 |
0 |
14,017 |
1,210 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,780 |
1 |
0 |
0 |
25,272 |
0 |
14,086 |
1,158 |
dash |
| 18 |
no-host |
configure.cpython |
5,946,507 |
0 |
0 |
0 |
25,272 |
0 |
12,881 |
1,207 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,799,288 |
0 |
0 |
0 |
25,280 |
0 |
12,868 |
1,184 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,805,453 |
0 |
0 |
0 |
25,280 |
0 |
12,867 |
1,001 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,964 |
0 |
0 |
0 |
4,432 |
0 |
2,012 |
183 |
bash |
| 12 |
no-host |
configure.ocaml |
281,224 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
209 |
dash |
| 20 |
no-host |
configure.ocaml |
555,190 |
0 |
0 |
0 |
4,432 |
0 |
1,913 |
220 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,628 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
197 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,883 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
207 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,233 |
0 |
0 |
0 |
80 |
0 |
49 |
11 |
bash |
| 13 |
no-host |
configure.tcc |
4,223 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,721 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,947 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,881 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,532,359 |
0 |
0 |
0 |
35,944 |
0 |
18,909 |
1,397 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,849 |
0 |
0 |
0 |
35,936 |
0 |
17,012 |
1,383 |
dash |
| 19 |
no-host |
configure.util-linux |
4,958,164 |
5 |
0 |
0 |
35,944 |
0 |
17,518 |
1,196 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,714,926 |
3 |
0 |
0 |
35,952 |
0 |
17,489 |
1,047 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,076 |
3 |
0 |
0 |
35,952 |
0 |
17,520 |
1,059 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,528 |
0 |
0 |
0 |
3,616 |
0 |
873 |
142 |
bash |
| 14 |
no-host |
configure.yash |
159,569 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
124 |
dash |
| 22 |
no-host |
configure.yash |
315,144 |
0 |
0 |
0 |
3,616 |
0 |
859 |
131 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,368 |
0 |
0 |
0 |
3,624 |
0 |
856 |
139 |
osh-native |
| 38 |
no-host |
configure.yash |
179,412 |
0 |
0 |
0 |
3,624 |
0 |
860 |
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,876 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
382 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host