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 |
564 |
22 |
21 |
35.36 |
1.39 |
| bin-true |
no-host |
616 |
442 |
2,497 |
827 |
804 |
4.05 |
1.34 |
| configure.cpython |
no-host |
14,023 |
14,305 |
30,489 |
15,218 |
15,278 |
2.17 |
1.09 |
| configure.ocaml |
no-host |
3,778 |
3,721 |
4,738 |
3,839 |
3,851 |
1.25 |
1.02 |
| configure.tcc |
no-host |
47 |
42 |
230 |
50 |
50 |
4.93 |
1.07 |
| configure.util-linux |
no-host |
12,976 |
13,822 |
33,320 |
14,101 |
14,237 |
2.57 |
1.09 |
| configure.yash |
no-host |
1,760 |
1,703 |
2,491 |
1,791 |
1,795 |
1.42 |
1.02 |
| hello-world |
no-host |
1 |
1 |
62 |
3 |
3 |
51.53 |
2.44 |
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,196 |
24,644 |
3,478 |
3,340 |
10.29 |
1.45 |
| bin-true |
no-host |
100,950 |
49,426 |
836,825 |
139,219 |
134,250 |
8.29 |
1.38 |
| configure.cpython |
no-host |
1,623,641 |
1,643,214 |
5,954,925 |
1,811,783 |
1,791,012 |
3.67 |
1.12 |
| configure.ocaml |
no-host |
299,001 |
280,887 |
558,265 |
315,998 |
316,069 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,214 |
4,202 |
23,925 |
5,963 |
5,902 |
4.59 |
1.14 |
| configure.util-linux |
no-host |
1,538,664 |
1,700,557 |
4,983,219 |
1,724,161 |
1,712,571 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,772 |
159,597 |
315,844 |
179,560 |
178,716 |
1.82 |
1.03 |
| hello-world |
no-host |
153 |
85 |
3,874 |
385 |
377 |
25.32 |
2.52 |
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 |
827 |
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 |
15,218 |
2 |
69 |
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 |
14,101 |
3 |
64 |
21.4 |
39.5 |
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,839 |
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 |
50 |
0 |
0 |
1.3 |
26.2 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,791 |
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 |
10.0 |
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 |
804 |
1 |
2 |
2.6 |
8.4 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,278 |
1 |
69 |
15.2 |
34.4 |
1,782,989 |
46,088 |
25,353 |
91,623 |
885,112 |
806,254 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,237 |
3 |
62 |
21.4 |
39.4 |
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,851 |
1 |
2 |
2.7 |
28.8 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.2 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,795 |
1 |
2 |
2.6 |
33.4 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
564 |
510 |
58 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
10.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
616 |
325 |
331 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
442 |
276 |
170 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,497 |
889 |
1,885 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
827 |
327 |
518 |
9.0 |
osh-native |
| 33 |
no-host |
bin-true |
804 |
324 |
495 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,023 |
7,550 |
6,856 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,305 |
7,667 |
7,046 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
30,489 |
16,856 |
15,693 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,218 |
7,579 |
7,924 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,278 |
7,590 |
7,834 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,778 |
1,516 |
1,302 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,721 |
1,500 |
1,245 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,738 |
2,135 |
1,833 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,839 |
1,522 |
1,358 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,851 |
1,492 |
1,400 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
25 |
22 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
19 |
23 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
230 |
167 |
67 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
21 |
29 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
25 |
26 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,976 |
6,592 |
6,856 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,822 |
6,603 |
7,720 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
33,320 |
20,887 |
13,547 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,101 |
6,405 |
7,934 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,237 |
6,467 |
7,860 |
39.4 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,760 |
982 |
786 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,703 |
961 |
743 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,491 |
1,489 |
1,046 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,791 |
949 |
845 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,795 |
940 |
858 |
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 |
62 |
44 |
18 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
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,394 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,196 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
24,644 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,478 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,340 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,950 |
0 |
0 |
0 |
8 |
0 |
1,990 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,426 |
0 |
0 |
0 |
8 |
0 |
2,965 |
58 |
dash |
| 17 |
no-host |
bin-true |
836,825 |
0 |
0 |
0 |
8 |
0 |
1,990 |
136 |
osh-cpython |
| 25 |
no-host |
bin-true |
139,219 |
0 |
0 |
0 |
16 |
0 |
1,971 |
82 |
osh-native |
| 33 |
no-host |
bin-true |
134,250 |
0 |
0 |
0 |
16 |
0 |
1,959 |
94 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,623,641 |
1 |
0 |
0 |
25,272 |
0 |
14,047 |
1,031 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,214 |
0 |
0 |
0 |
25,272 |
0 |
14,094 |
1,089 |
dash |
| 18 |
no-host |
configure.cpython |
5,954,925 |
1 |
0 |
0 |
25,272 |
0 |
12,872 |
856 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,811,783 |
0 |
0 |
0 |
25,280 |
0 |
12,830 |
1,053 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,791,012 |
0 |
0 |
0 |
25,280 |
0 |
12,810 |
1,051 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,001 |
0 |
0 |
0 |
4,432 |
0 |
2,009 |
253 |
bash |
| 12 |
no-host |
configure.ocaml |
280,887 |
0 |
0 |
0 |
4,432 |
0 |
2,091 |
178 |
dash |
| 20 |
no-host |
configure.ocaml |
558,265 |
1 |
0 |
0 |
4,432 |
0 |
1,907 |
188 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
315,998 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
201 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,069 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
194 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,214 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,202 |
0 |
0 |
0 |
88 |
0 |
53 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,925 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,963 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,902 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,538,664 |
1 |
0 |
0 |
35,944 |
0 |
18,950 |
1,107 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,557 |
0 |
0 |
0 |
35,936 |
0 |
17,032 |
1,260 |
dash |
| 19 |
no-host |
configure.util-linux |
4,983,219 |
4 |
0 |
0 |
35,952 |
0 |
17,526 |
877 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,724,161 |
0 |
0 |
0 |
35,944 |
0 |
17,435 |
1,124 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,571 |
0 |
0 |
0 |
35,944 |
0 |
17,453 |
1,104 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,772 |
0 |
0 |
0 |
3,616 |
0 |
875 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,597 |
0 |
0 |
0 |
3,616 |
0 |
994 |
101 |
dash |
| 22 |
no-host |
configure.yash |
315,844 |
0 |
0 |
0 |
3,616 |
0 |
859 |
102 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,560 |
0 |
0 |
0 |
3,624 |
0 |
852 |
102 |
osh-native |
| 38 |
no-host |
configure.yash |
178,716 |
0 |
0 |
0 |
3,624 |
0 |
851 |
97 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,874 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
377 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host