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 |
531 |
22 |
21 |
33.47 |
1.36 |
| bin-true |
no-host |
631 |
460 |
2,469 |
823 |
825 |
3.91 |
1.30 |
| configure.cpython |
no-host |
13,909 |
14,050 |
29,697 |
14,768 |
14,815 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,698 |
3,696 |
4,763 |
3,740 |
3,742 |
1.29 |
1.01 |
| configure.tcc |
no-host |
47 |
43 |
223 |
50 |
49 |
4.75 |
1.06 |
| configure.util-linux |
no-host |
12,605 |
13,522 |
32,429 |
13,691 |
13,798 |
2.57 |
1.09 |
| configure.yash |
no-host |
1,771 |
1,682 |
2,493 |
1,731 |
1,728 |
1.41 |
0.98 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
48.08 |
2.40 |
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,376 |
1,151 |
24,812 |
3,451 |
3,337 |
10.44 |
1.45 |
| bin-true |
no-host |
99,914 |
49,410 |
836,022 |
135,246 |
137,281 |
8.37 |
1.35 |
| configure.cpython |
no-host |
1,630,091 |
1,636,655 |
5,958,749 |
1,793,390 |
1,800,328 |
3.66 |
1.10 |
| configure.ocaml |
no-host |
299,245 |
281,183 |
556,935 |
316,872 |
316,628 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,211 |
4,217 |
23,766 |
5,982 |
5,866 |
4.56 |
1.15 |
| configure.util-linux |
no-host |
1,532,814 |
1,690,252 |
4,970,374 |
1,722,489 |
1,712,650 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,603 |
159,605 |
315,178 |
179,632 |
178,988 |
1.82 |
1.03 |
| hello-world |
no-host |
154 |
84 |
3,870 |
384 |
376 |
25.13 |
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,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
823 |
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,768 |
1 |
66 |
15.2 |
34.4 |
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,691 |
3 |
58 |
21.4 |
39.5 |
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,740 |
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 |
50 |
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,731 |
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.6 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
825 |
1 |
2 |
2.6 |
8.5 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,815 |
1 |
63 |
15.2 |
34.8 |
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,798 |
3 |
58 |
21.4 |
39.5 |
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,742 |
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.0 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,728 |
1 |
2 |
2.6 |
33.3 |
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 |
6 |
10 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
531 |
474 |
61 |
22.5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
8 |
15 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
631 |
313 |
356 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
460 |
280 |
184 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,469 |
900 |
1,835 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
823 |
318 |
522 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
825 |
299 |
544 |
8.5 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,909 |
7,447 |
6,852 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,050 |
7,487 |
6,959 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,697 |
15,944 |
15,729 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,768 |
7,467 |
7,614 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,815 |
7,236 |
7,706 |
34.8 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,698 |
1,436 |
1,303 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,696 |
1,444 |
1,278 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,763 |
2,141 |
1,851 |
28.5 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,740 |
1,493 |
1,290 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,742 |
1,456 |
1,325 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
21 |
27 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
23 |
20 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
223 |
151 |
75 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
20 |
30 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
22 |
28 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,605 |
6,453 |
6,623 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,522 |
6,432 |
7,583 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
32,429 |
20,274 |
13,241 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,691 |
6,208 |
7,732 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,798 |
6,199 |
7,686 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,771 |
952 |
798 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,682 |
940 |
745 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,493 |
1,460 |
1,076 |
33.5 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,731 |
932 |
802 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,728 |
914 |
817 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
41 |
19 |
18.1 |
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,376 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,151 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,812 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,451 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,337 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,914 |
0 |
0 |
0 |
8 |
0 |
1,984 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,410 |
0 |
0 |
0 |
8 |
0 |
2,973 |
56 |
dash |
| 17 |
no-host |
bin-true |
836,022 |
0 |
0 |
0 |
8 |
0 |
1,972 |
164 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,246 |
0 |
0 |
0 |
16 |
0 |
1,979 |
134 |
osh-native |
| 33 |
no-host |
bin-true |
137,281 |
0 |
0 |
0 |
16 |
0 |
1,974 |
96 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,630,091 |
0 |
0 |
0 |
25,272 |
0 |
14,023 |
1,044 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,655 |
0 |
0 |
0 |
25,272 |
0 |
14,082 |
1,293 |
dash |
| 18 |
no-host |
configure.cpython |
5,958,749 |
1 |
0 |
0 |
25,272 |
0 |
12,867 |
1,035 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,793,390 |
0 |
0 |
0 |
25,280 |
0 |
12,831 |
1,058 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,800,328 |
0 |
0 |
0 |
25,280 |
0 |
12,878 |
1,102 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,245 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
204 |
bash |
| 12 |
no-host |
configure.ocaml |
281,183 |
0 |
0 |
0 |
4,432 |
0 |
2,100 |
192 |
dash |
| 20 |
no-host |
configure.ocaml |
556,935 |
0 |
0 |
0 |
4,432 |
0 |
1,919 |
177 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,872 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
225 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,628 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
228 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,211 |
0 |
0 |
0 |
80 |
0 |
48 |
7 |
bash |
| 13 |
no-host |
configure.tcc |
4,217 |
0 |
0 |
0 |
88 |
0 |
52 |
7 |
dash |
| 21 |
no-host |
configure.tcc |
23,766 |
0 |
0 |
0 |
88 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,982 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,866 |
0 |
0 |
0 |
96 |
0 |
47 |
13 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,532,814 |
4 |
0 |
0 |
35,944 |
0 |
18,804 |
1,153 |
bash |
| 11 |
no-host |
configure.util-linux |
1,690,252 |
1 |
0 |
0 |
35,936 |
0 |
16,992 |
1,296 |
dash |
| 19 |
no-host |
configure.util-linux |
4,970,374 |
4 |
0 |
0 |
35,952 |
0 |
17,531 |
1,097 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,722,489 |
3 |
0 |
0 |
35,944 |
0 |
17,273 |
1,020 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,650 |
3 |
0 |
0 |
35,944 |
0 |
17,372 |
1,038 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,603 |
0 |
0 |
0 |
3,616 |
0 |
883 |
146 |
bash |
| 14 |
no-host |
configure.yash |
159,605 |
0 |
0 |
0 |
3,616 |
0 |
998 |
129 |
dash |
| 22 |
no-host |
configure.yash |
315,178 |
0 |
0 |
0 |
3,616 |
0 |
861 |
142 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,632 |
0 |
0 |
0 |
3,624 |
0 |
855 |
133 |
osh-native |
| 38 |
no-host |
configure.yash |
178,988 |
0 |
0 |
0 |
3,624 |
0 |
857 |
136 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,870 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
384 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
376 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host