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 |
535 |
22 |
21 |
34.40 |
1.43 |
| bin-true |
no-host |
613 |
446 |
2,454 |
810 |
803 |
4.00 |
1.32 |
| configure.cpython |
no-host |
13,527 |
13,626 |
29,282 |
14,736 |
14,820 |
2.16 |
1.09 |
| configure.ocaml |
no-host |
3,612 |
3,577 |
4,648 |
3,765 |
3,684 |
1.29 |
1.04 |
| configure.tcc |
no-host |
45 |
41 |
222 |
49 |
48 |
4.90 |
1.09 |
| configure.util-linux |
no-host |
12,293 |
13,326 |
32,098 |
13,605 |
13,706 |
2.61 |
1.11 |
| configure.yash |
no-host |
1,659 |
1,621 |
2,421 |
1,718 |
1,707 |
1.46 |
1.04 |
| hello-world |
no-host |
1 |
1 |
59 |
3 |
3 |
51.18 |
2.51 |
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,391 |
1,158 |
24,717 |
3,444 |
3,367 |
10.34 |
1.44 |
| bin-true |
no-host |
101,937 |
49,361 |
840,545 |
140,278 |
138,263 |
8.25 |
1.38 |
| configure.cpython |
no-host |
1,623,269 |
1,649,805 |
5,977,249 |
1,799,743 |
1,788,478 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
298,933 |
280,552 |
558,065 |
316,291 |
316,267 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,231 |
4,224 |
23,948 |
5,910 |
5,921 |
4.58 |
1.13 |
| configure.util-linux |
no-host |
1,533,094 |
1,700,014 |
4,974,908 |
1,723,293 |
1,713,364 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,639 |
159,518 |
315,629 |
179,240 |
178,927 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
86 |
3,873 |
389 |
378 |
25.48 |
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,827 |
3,827 |
0 |
704 |
1,881 |
1,242 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
810 |
1 |
2 |
2.6 |
9.0 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,736 |
1 |
67 |
15.2 |
34.5 |
1,782,990 |
46,102 |
25,357 |
91,622 |
885,112 |
806,256 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,605 |
3 |
60 |
21.4 |
39.6 |
2,707,123 |
126,355 |
66,587 |
113,463 |
1,294,568 |
1,299,092 |
32,539 |
41 |
133,174 |
1 |
| configure.ocaml |
no-host |
3,765 |
1 |
2 |
2.7 |
28.6 |
149,874 |
12,477 |
6,520 |
7,819 |
70,840 |
71,215 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.0 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,718 |
1 |
2 |
2.6 |
33.3 |
140,018 |
8,081 |
6,715 |
6,526 |
68,348 |
65,144 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,369 |
64,439 |
42,640 |
4,562 |
54,472 |
57,335 |
277 |
3 |
85,280 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,826 |
3,826 |
0 |
705 |
1,881 |
1,240 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
1 |
2 |
2.6 |
8.3 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,820 |
1 |
65 |
15.2 |
34.5 |
1,782,989 |
46,088 |
25,353 |
91,623 |
885,112 |
806,254 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,706 |
3 |
61 |
21.4 |
39.7 |
2,707,123 |
126,348 |
66,580 |
113,465 |
1,294,568 |
1,299,090 |
32,539 |
41 |
133,160 |
1 |
| configure.ocaml |
no-host |
3,684 |
1 |
2 |
2.7 |
28.6 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.3 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,707 |
1 |
2 |
2.6 |
33.3 |
140,018 |
8,070 |
6,704 |
6,528 |
68,348 |
65,142 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,368 |
64,434 |
42,635 |
4,563 |
54,472 |
57,333 |
277 |
3 |
85,270 |
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 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
535 |
482 |
57 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
13 |
8 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
613 |
320 |
330 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
446 |
268 |
184 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,454 |
885 |
1,831 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
810 |
316 |
510 |
9.0 |
osh-native |
| 33 |
no-host |
bin-true |
803 |
316 |
503 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,527 |
7,306 |
6,581 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,626 |
7,331 |
6,683 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,282 |
16,004 |
15,238 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,736 |
7,361 |
7,672 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,820 |
7,372 |
7,495 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,612 |
1,435 |
1,217 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,577 |
1,420 |
1,179 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,648 |
2,132 |
1,738 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,765 |
1,489 |
1,316 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,684 |
1,436 |
1,288 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
24 |
22 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
18 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
162 |
64 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
28 |
22 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
19 |
30 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,293 |
6,420 |
6,321 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,326 |
6,435 |
7,367 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,098 |
20,132 |
13,021 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,605 |
6,403 |
7,430 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,706 |
6,146 |
7,633 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,659 |
896 |
770 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,621 |
898 |
724 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,421 |
1,424 |
1,039 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,718 |
946 |
775 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,707 |
950 |
759 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
59 |
40 |
20 |
17.9 |
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,391 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,158 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,717 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,444 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,367 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,937 |
0 |
0 |
0 |
8 |
0 |
1,988 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,361 |
0 |
0 |
0 |
8 |
0 |
2,976 |
46 |
dash |
| 17 |
no-host |
bin-true |
840,545 |
0 |
0 |
0 |
8 |
0 |
1,992 |
130 |
osh-cpython |
| 25 |
no-host |
bin-true |
140,278 |
0 |
0 |
0 |
16 |
0 |
1,985 |
79 |
osh-native |
| 33 |
no-host |
bin-true |
138,263 |
0 |
0 |
0 |
16 |
0 |
1,982 |
95 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,623,269 |
0 |
0 |
0 |
25,272 |
0 |
14,036 |
1,133 |
bash |
| 10 |
no-host |
configure.cpython |
1,649,805 |
0 |
0 |
0 |
25,272 |
0 |
14,105 |
1,049 |
dash |
| 18 |
no-host |
configure.cpython |
5,977,249 |
0 |
0 |
0 |
25,272 |
0 |
12,870 |
879 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,799,743 |
0 |
0 |
0 |
25,280 |
0 |
12,861 |
996 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,788,478 |
0 |
0 |
0 |
25,280 |
0 |
12,847 |
1,040 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,933 |
0 |
0 |
0 |
4,432 |
0 |
2,011 |
206 |
bash |
| 12 |
no-host |
configure.ocaml |
280,552 |
0 |
0 |
0 |
4,432 |
0 |
2,092 |
206 |
dash |
| 20 |
no-host |
configure.ocaml |
558,065 |
0 |
0 |
0 |
4,432 |
0 |
1,914 |
210 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,291 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
303 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,267 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
192 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,231 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,224 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,948 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,910 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,921 |
0 |
0 |
0 |
96 |
0 |
46 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,533,094 |
0 |
0 |
0 |
35,944 |
0 |
18,896 |
1,057 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,014 |
0 |
0 |
0 |
35,936 |
0 |
17,091 |
1,243 |
dash |
| 19 |
no-host |
configure.util-linux |
4,974,908 |
2 |
0 |
0 |
35,944 |
0 |
17,541 |
910 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,723,293 |
0 |
0 |
0 |
35,944 |
0 |
17,492 |
1,137 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,713,364 |
0 |
0 |
0 |
35,944 |
0 |
17,452 |
1,049 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,639 |
0 |
0 |
0 |
3,616 |
0 |
871 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,518 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
112 |
dash |
| 22 |
no-host |
configure.yash |
315,629 |
0 |
0 |
0 |
3,616 |
0 |
861 |
108 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,240 |
0 |
0 |
0 |
3,624 |
0 |
858 |
101 |
osh-native |
| 38 |
no-host |
configure.yash |
178,927 |
0 |
0 |
0 |
3,624 |
0 |
857 |
93 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
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 |
389 |
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