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 |
15 |
9 |
524 |
22 |
21 |
33.88 |
1.40 |
| bin-true |
no-host |
611 |
435 |
2,454 |
798 |
801 |
4.02 |
1.31 |
| configure.cpython |
no-host |
13,588 |
13,656 |
29,366 |
14,377 |
14,590 |
2.16 |
1.06 |
| configure.ocaml |
no-host |
3,624 |
3,581 |
4,661 |
3,677 |
3,685 |
1.29 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
219 |
49 |
49 |
4.75 |
1.06 |
| configure.util-linux |
no-host |
12,373 |
13,104 |
31,783 |
13,500 |
13,605 |
2.57 |
1.09 |
| configure.yash |
no-host |
1,687 |
1,627 |
2,401 |
1,688 |
1,681 |
1.42 |
1.00 |
| hello-world |
no-host |
1 |
1 |
59 |
3 |
3 |
50.08 |
2.42 |
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,378 |
1,155 |
24,853 |
3,502 |
3,354 |
10.45 |
1.47 |
| bin-true |
no-host |
100,875 |
49,355 |
836,115 |
135,321 |
135,244 |
8.29 |
1.34 |
| configure.cpython |
no-host |
1,625,915 |
1,640,970 |
5,960,963 |
1,803,340 |
1,802,776 |
3.67 |
1.11 |
| configure.ocaml |
no-host |
299,282 |
280,562 |
556,118 |
317,348 |
316,001 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,185 |
4,197 |
23,792 |
5,962 |
5,860 |
4.59 |
1.15 |
| configure.util-linux |
no-host |
1,534,824 |
1,695,541 |
4,964,449 |
1,725,165 |
1,712,405 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,571 |
159,604 |
315,518 |
179,459 |
178,423 |
1.82 |
1.03 |
| hello-world |
no-host |
151 |
85 |
3,873 |
386 |
379 |
25.65 |
2.56 |
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 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
798 |
1 |
2 |
2.6 |
8.7 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,377 |
1 |
66 |
15.2 |
34.5 |
1,782,989 |
46,101 |
25,356 |
91,622 |
885,112 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,500 |
3 |
60 |
21.4 |
39.6 |
2,707,122 |
126,354 |
66,586 |
113,463 |
1,294,568 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,677 |
1 |
2 |
2.7 |
28.6 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.0 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,688 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,080 |
6,714 |
6,526 |
68,348 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
10.0 |
116,368 |
64,438 |
42,639 |
4,562 |
54,472 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.6 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
1 |
2 |
2.6 |
8.3 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,590 |
1 |
63 |
15.2 |
34.2 |
1,782,988 |
46,087 |
25,352 |
91,623 |
885,112 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,605 |
3 |
61 |
21.4 |
39.7 |
2,707,122 |
126,347 |
66,579 |
113,465 |
1,294,568 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,685 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,470 |
6,513 |
7,821 |
70,840 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,681 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,069 |
6,703 |
6,528 |
68,348 |
65,141 |
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,563 |
54,472 |
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 |
15 |
9 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
7 |
2 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
524 |
470 |
57 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
10.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
611 |
309 |
337 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
435 |
271 |
167 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,454 |
869 |
1,853 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
798 |
305 |
511 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
801 |
303 |
513 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,588 |
7,459 |
6,508 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,656 |
7,383 |
6,667 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,366 |
16,250 |
15,097 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,377 |
7,233 |
7,451 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,590 |
7,174 |
7,570 |
34.2 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,624 |
1,466 |
1,196 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,581 |
1,454 |
1,150 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,661 |
2,133 |
1,749 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,677 |
1,483 |
1,235 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,685 |
1,426 |
1,299 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
19 |
22 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
219 |
152 |
71 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
19 |
30 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
24 |
25 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,373 |
6,530 |
6,306 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,104 |
6,324 |
7,269 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
31,783 |
19,870 |
12,964 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,500 |
6,170 |
7,569 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,605 |
6,211 |
7,470 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,687 |
955 |
740 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,627 |
935 |
694 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
2,401 |
1,407 |
1,036 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,688 |
931 |
760 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,681 |
906 |
778 |
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 |
59 |
38 |
21 |
17.9 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,378 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,155 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,853 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,502 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,354 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,875 |
0 |
0 |
0 |
8 |
0 |
1,976 |
78 |
bash |
| 9 |
no-host |
bin-true |
49,355 |
0 |
0 |
0 |
8 |
0 |
2,965 |
61 |
dash |
| 17 |
no-host |
bin-true |
836,115 |
0 |
0 |
0 |
8 |
0 |
1,991 |
179 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,321 |
0 |
0 |
0 |
16 |
0 |
1,945 |
102 |
osh-native |
| 33 |
no-host |
bin-true |
135,244 |
0 |
0 |
0 |
16 |
0 |
1,967 |
97 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,625,915 |
0 |
0 |
0 |
25,272 |
0 |
14,027 |
1,023 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,970 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
1,001 |
dash |
| 18 |
no-host |
configure.cpython |
5,960,963 |
0 |
0 |
0 |
25,272 |
0 |
12,868 |
867 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,803,340 |
0 |
0 |
0 |
25,280 |
0 |
12,873 |
1,035 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,802,776 |
0 |
0 |
0 |
25,280 |
0 |
12,895 |
1,070 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,282 |
0 |
0 |
0 |
4,432 |
0 |
2,005 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,562 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
191 |
dash |
| 20 |
no-host |
configure.ocaml |
556,118 |
0 |
0 |
0 |
4,432 |
0 |
1,919 |
171 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,348 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
211 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,001 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
206 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,185 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,197 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,792 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,962 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,860 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,534,824 |
0 |
0 |
0 |
35,944 |
0 |
18,897 |
1,062 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,541 |
1 |
0 |
0 |
35,936 |
0 |
17,018 |
1,160 |
dash |
| 19 |
no-host |
configure.util-linux |
4,964,449 |
1 |
0 |
0 |
35,944 |
0 |
17,539 |
846 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,725,165 |
1 |
0 |
0 |
35,944 |
0 |
17,523 |
1,074 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,405 |
1 |
0 |
0 |
35,952 |
0 |
17,451 |
1,104 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,571 |
0 |
0 |
0 |
3,616 |
0 |
878 |
93 |
bash |
| 14 |
no-host |
configure.yash |
159,604 |
0 |
0 |
0 |
3,616 |
0 |
998 |
105 |
dash |
| 22 |
no-host |
configure.yash |
315,518 |
0 |
0 |
0 |
3,616 |
0 |
860 |
115 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,459 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-native |
| 38 |
no-host |
configure.yash |
178,423 |
0 |
0 |
0 |
3,624 |
0 |
858 |
91 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,873 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
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