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 |
538 |
22 |
21 |
34.09 |
1.40 |
| bin-true |
no-host |
638 |
463 |
2,484 |
836 |
829 |
3.89 |
1.31 |
| configure.cpython |
no-host |
14,182 |
14,189 |
29,915 |
14,974 |
15,039 |
2.11 |
1.06 |
| configure.ocaml |
no-host |
3,720 |
3,670 |
4,798 |
3,789 |
3,792 |
1.29 |
1.02 |
| configure.tcc |
no-host |
48 |
42 |
226 |
50 |
50 |
4.74 |
1.06 |
| configure.util-linux |
no-host |
12,847 |
13,752 |
32,706 |
13,903 |
14,051 |
2.55 |
1.08 |
| configure.yash |
no-host |
1,757 |
1,684 |
2,478 |
1,754 |
1,767 |
1.41 |
1.00 |
| hello-world |
no-host |
1 |
1 |
62 |
3 |
3 |
48.20 |
2.29 |
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,427 |
1,156 |
24,898 |
3,463 |
3,375 |
10.26 |
1.43 |
| bin-true |
no-host |
101,946 |
49,371 |
835,031 |
138,317 |
136,235 |
8.19 |
1.36 |
| configure.cpython |
no-host |
1,628,156 |
1,638,213 |
5,961,984 |
1,803,486 |
1,775,547 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
298,932 |
280,739 |
555,832 |
316,527 |
315,721 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,243 |
4,208 |
23,734 |
5,945 |
5,922 |
4.53 |
1.13 |
| configure.util-linux |
no-host |
1,530,909 |
1,697,691 |
4,961,308 |
1,712,294 |
1,702,881 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,428 |
159,525 |
315,357 |
179,016 |
178,683 |
1.82 |
1.03 |
| hello-world |
no-host |
150 |
87 |
3,875 |
382 |
374 |
25.83 |
2.55 |
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,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
836 |
1 |
2 |
2.6 |
8.8 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,974 |
1 |
67 |
15.2 |
34.3 |
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,903 |
3 |
62 |
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,789 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,754 |
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 |
9.8 |
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.3 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
829 |
1 |
2 |
2.6 |
8.4 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,039 |
1 |
67 |
15.2 |
34.3 |
1,782,988 |
46,087 |
25,352 |
91,623 |
885,112 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,051 |
3 |
62 |
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,792 |
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 |
50 |
0 |
0 |
1.3 |
26.0 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,767 |
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 |
16 |
5 |
11 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
538 |
477 |
65 |
22.5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
638 |
304 |
372 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
463 |
290 |
179 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,484 |
879 |
1,879 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
836 |
308 |
545 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
829 |
317 |
531 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,182 |
7,621 |
6,944 |
34.3 |
bash |
| 10 |
no-host |
configure.cpython |
14,189 |
7,653 |
6,938 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,915 |
16,262 |
15,645 |
34.7 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,974 |
7,431 |
7,855 |
34.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,039 |
7,436 |
7,754 |
34.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,720 |
1,464 |
1,296 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,670 |
1,466 |
1,228 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,798 |
2,148 |
1,878 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,789 |
1,477 |
1,353 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,792 |
1,524 |
1,308 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
33 |
15 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
22 |
20 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
226 |
166 |
64 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
27 |
24 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
33 |
18 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,847 |
6,610 |
6,712 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,752 |
6,472 |
7,758 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,706 |
20,410 |
13,385 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,903 |
6,355 |
7,784 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,051 |
6,292 |
7,843 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,757 |
953 |
804 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,684 |
921 |
765 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,478 |
1,453 |
1,068 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,754 |
957 |
800 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,767 |
982 |
788 |
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.6 |
dash |
| 16 |
no-host |
hello-world |
62 |
41 |
21 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.3 |
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,427 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,898 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,463 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,375 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,946 |
0 |
0 |
0 |
8 |
0 |
1,982 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,371 |
0 |
0 |
0 |
8 |
0 |
2,968 |
71 |
dash |
| 17 |
no-host |
bin-true |
835,031 |
0 |
0 |
0 |
8 |
0 |
1,972 |
136 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,317 |
0 |
0 |
0 |
16 |
0 |
1,971 |
102 |
osh-native |
| 33 |
no-host |
bin-true |
136,235 |
0 |
0 |
0 |
16 |
0 |
1,984 |
105 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,628,156 |
0 |
0 |
0 |
25,272 |
0 |
14,019 |
1,178 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,213 |
0 |
0 |
0 |
25,272 |
0 |
14,072 |
1,181 |
dash |
| 18 |
no-host |
configure.cpython |
5,961,984 |
1 |
0 |
0 |
25,272 |
0 |
12,874 |
1,143 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,803,486 |
0 |
0 |
0 |
25,280 |
0 |
12,851 |
1,252 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,775,547 |
0 |
0 |
0 |
25,280 |
0 |
12,861 |
1,083 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,932 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
192 |
bash |
| 12 |
no-host |
configure.ocaml |
280,739 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
207 |
dash |
| 20 |
no-host |
configure.ocaml |
555,832 |
0 |
0 |
0 |
4,432 |
0 |
1,909 |
209 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,527 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
224 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,721 |
0 |
0 |
0 |
4,440 |
0 |
1,991 |
208 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,243 |
0 |
0 |
0 |
80 |
0 |
49 |
5 |
bash |
| 13 |
no-host |
configure.tcc |
4,208 |
0 |
0 |
0 |
88 |
0 |
51 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,734 |
0 |
0 |
0 |
88 |
0 |
53 |
10 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,945 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,922 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,530,909 |
0 |
0 |
0 |
35,944 |
0 |
18,895 |
1,166 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,691 |
0 |
0 |
0 |
35,936 |
0 |
17,044 |
1,389 |
dash |
| 19 |
no-host |
configure.util-linux |
4,961,308 |
5 |
0 |
0 |
35,944 |
0 |
17,556 |
1,083 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,712,294 |
2 |
0 |
0 |
35,952 |
0 |
17,535 |
1,009 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,702,881 |
4 |
0 |
0 |
35,952 |
0 |
17,553 |
1,068 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,428 |
0 |
0 |
0 |
3,616 |
0 |
886 |
136 |
bash |
| 14 |
no-host |
configure.yash |
159,525 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
127 |
dash |
| 22 |
no-host |
configure.yash |
315,357 |
0 |
0 |
0 |
3,616 |
0 |
864 |
153 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,016 |
0 |
0 |
0 |
3,624 |
0 |
857 |
125 |
osh-native |
| 38 |
no-host |
configure.yash |
178,683 |
0 |
0 |
0 |
3,624 |
0 |
860 |
120 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,875 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
382 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
374 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host