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 |
18 |
10 |
532 |
23 |
21 |
29.14 |
1.25 |
| bin-true |
no-host |
655 |
477 |
2,530 |
841 |
860 |
3.86 |
1.28 |
| configure.cpython |
no-host |
14,414 |
14,526 |
30,724 |
15,319 |
15,482 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,810 |
3,748 |
4,840 |
3,878 |
3,898 |
1.27 |
1.02 |
| configure.tcc |
no-host |
47 |
43 |
228 |
51 |
51 |
4.85 |
1.09 |
| configure.util-linux |
no-host |
13,273 |
14,051 |
33,243 |
14,353 |
14,607 |
2.50 |
1.08 |
| configure.yash |
no-host |
1,784 |
1,726 |
2,549 |
1,817 |
1,812 |
1.43 |
1.02 |
| hello-world |
no-host |
1 |
1 |
64 |
3 |
3 |
48.80 |
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,394 |
1,171 |
24,664 |
3,435 |
3,300 |
10.30 |
1.43 |
| bin-true |
no-host |
98,927 |
49,411 |
827,532 |
134,270 |
136,201 |
8.37 |
1.36 |
| configure.cpython |
no-host |
1,618,600 |
1,644,000 |
5,945,366 |
1,793,195 |
1,783,399 |
3.67 |
1.11 |
| configure.ocaml |
no-host |
299,084 |
280,597 |
554,897 |
317,570 |
316,953 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,256 |
4,208 |
23,753 |
5,969 |
5,898 |
4.52 |
1.14 |
| configure.util-linux |
no-host |
1,534,465 |
1,699,874 |
4,961,494 |
1,725,373 |
1,708,111 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,525 |
159,482 |
314,952 |
179,319 |
179,269 |
1.82 |
1.03 |
| hello-world |
no-host |
154 |
83 |
3,873 |
383 |
378 |
25.15 |
2.49 |
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 |
841 |
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,319 |
1 |
71 |
15.2 |
34.6 |
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,353 |
3 |
65 |
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,878 |
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 |
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,817 |
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 |
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.6 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
860 |
1 |
2 |
2.6 |
8.7 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,482 |
1 |
67 |
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,607 |
3 |
63 |
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,898 |
1 |
2 |
2.7 |
28.6 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
51 |
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,812 |
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 |
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 |
18 |
4 |
15 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
2 |
8 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
532 |
472 |
64 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
13 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
655 |
312 |
373 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
477 |
279 |
199 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,530 |
918 |
1,874 |
18.0 |
osh-cpython |
| 25 |
no-host |
bin-true |
841 |
298 |
553 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
860 |
316 |
553 |
8.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,414 |
7,725 |
7,041 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,526 |
7,682 |
7,214 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
30,724 |
16,749 |
15,959 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,319 |
7,597 |
7,980 |
34.6 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,482 |
7,548 |
8,028 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,810 |
1,537 |
1,301 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,748 |
1,507 |
1,257 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,840 |
2,169 |
1,891 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,878 |
1,508 |
1,405 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,898 |
1,545 |
1,390 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
19 |
29 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
25 |
18 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
228 |
161 |
70 |
26.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
18 |
34 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
51 |
22 |
30 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,273 |
6,630 |
7,048 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
14,051 |
6,604 |
7,892 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
33,243 |
20,484 |
13,810 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,353 |
6,422 |
8,109 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,607 |
6,438 |
8,164 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,784 |
967 |
822 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,726 |
950 |
774 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
2,549 |
1,479 |
1,110 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,817 |
976 |
840 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,812 |
964 |
846 |
33.5 |
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 |
64 |
41 |
23 |
17.9 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
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,394 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,171 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,664 |
0 |
0 |
0 |
8 |
0 |
44 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,435 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,300 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
98,927 |
0 |
0 |
0 |
8 |
0 |
1,976 |
134 |
bash |
| 9 |
no-host |
bin-true |
49,411 |
0 |
0 |
0 |
8 |
0 |
2,966 |
64 |
dash |
| 17 |
no-host |
bin-true |
827,532 |
0 |
0 |
0 |
8 |
0 |
1,981 |
177 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,270 |
0 |
0 |
0 |
16 |
0 |
1,975 |
123 |
osh-native |
| 33 |
no-host |
bin-true |
136,201 |
0 |
0 |
0 |
16 |
0 |
1,984 |
131 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,618,600 |
0 |
0 |
0 |
25,272 |
0 |
14,035 |
1,036 |
bash |
| 10 |
no-host |
configure.cpython |
1,644,000 |
0 |
0 |
0 |
25,272 |
0 |
14,065 |
1,127 |
dash |
| 18 |
no-host |
configure.cpython |
5,945,366 |
0 |
0 |
0 |
25,272 |
0 |
12,886 |
1,239 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,793,195 |
0 |
0 |
0 |
25,280 |
0 |
12,869 |
1,056 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,783,399 |
0 |
0 |
0 |
25,280 |
0 |
12,851 |
1,077 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,084 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
208 |
bash |
| 12 |
no-host |
configure.ocaml |
280,597 |
0 |
0 |
0 |
4,432 |
0 |
2,100 |
201 |
dash |
| 20 |
no-host |
configure.ocaml |
554,897 |
0 |
0 |
0 |
4,432 |
0 |
1,909 |
198 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,570 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
221 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,953 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
225 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,256 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,208 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,753 |
0 |
0 |
0 |
88 |
0 |
53 |
12 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,969 |
0 |
0 |
0 |
96 |
0 |
47 |
14 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,898 |
0 |
0 |
0 |
96 |
0 |
47 |
12 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,534,465 |
1 |
0 |
0 |
35,944 |
0 |
18,896 |
1,234 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,874 |
0 |
0 |
0 |
35,936 |
0 |
17,078 |
1,275 |
dash |
| 19 |
no-host |
configure.util-linux |
4,961,494 |
1 |
0 |
0 |
35,952 |
0 |
17,593 |
1,121 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,725,373 |
1 |
0 |
0 |
35,952 |
0 |
17,492 |
975 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,708,111 |
1 |
0 |
0 |
35,952 |
0 |
17,316 |
1,056 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,525 |
0 |
0 |
0 |
3,616 |
0 |
875 |
139 |
bash |
| 14 |
no-host |
configure.yash |
159,482 |
0 |
0 |
0 |
3,616 |
0 |
997 |
135 |
dash |
| 22 |
no-host |
configure.yash |
314,952 |
0 |
0 |
0 |
3,616 |
0 |
864 |
123 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,319 |
0 |
0 |
0 |
3,624 |
0 |
853 |
122 |
osh-native |
| 38 |
no-host |
configure.yash |
179,269 |
0 |
0 |
0 |
3,624 |
0 |
858 |
136 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,873 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
383 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host