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 |
533 |
22 |
21 |
34.33 |
1.40 |
| bin-true |
no-host |
604 |
432 |
2,426 |
795 |
788 |
4.02 |
1.32 |
| configure.cpython |
no-host |
13,792 |
13,807 |
29,351 |
14,641 |
14,765 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,667 |
3,619 |
4,676 |
3,733 |
3,721 |
1.28 |
1.02 |
| configure.tcc |
no-host |
45 |
41 |
223 |
49 |
48 |
4.95 |
1.08 |
| configure.util-linux |
no-host |
12,557 |
13,332 |
32,417 |
13,635 |
13,724 |
2.58 |
1.09 |
| configure.yash |
no-host |
1,706 |
1,651 |
2,439 |
1,725 |
1,727 |
1.43 |
1.01 |
| hello-world |
no-host |
1 |
1 |
62 |
3 |
3 |
51.87 |
2.50 |
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,392 |
1,184 |
24,592 |
3,424 |
3,337 |
10.28 |
1.43 |
| bin-true |
no-host |
99,873 |
49,382 |
829,665 |
138,301 |
133,294 |
8.31 |
1.38 |
| configure.cpython |
no-host |
1,624,595 |
1,640,909 |
5,988,448 |
1,804,856 |
1,772,138 |
3.69 |
1.11 |
| configure.ocaml |
no-host |
298,673 |
280,613 |
556,580 |
316,866 |
315,042 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,225 |
4,212 |
23,845 |
5,988 |
5,862 |
4.56 |
1.15 |
| configure.util-linux |
no-host |
1,538,234 |
1,699,583 |
4,986,593 |
1,722,292 |
1,707,265 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,561 |
159,617 |
316,742 |
179,058 |
178,927 |
1.82 |
1.03 |
| hello-world |
no-host |
150 |
82 |
3,900 |
387 |
378 |
26.00 |
2.58 |
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 |
703 |
1,880 |
1,243 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
795 |
1 |
2 |
2.6 |
8.8 |
156,798 |
15,428 |
2,915 |
8,760 |
77,347 |
70,691 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,641 |
1 |
64 |
15.2 |
34.5 |
1,782,989 |
46,101 |
25,356 |
91,621 |
885,111 |
806,257 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,635 |
2 |
59 |
21.4 |
39.6 |
2,707,122 |
126,354 |
66,586 |
113,462 |
1,294,567 |
1,299,093 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,733 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,476 |
6,519 |
7,818 |
70,839 |
71,216 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,581 |
14,645 |
14,402 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,725 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,080 |
6,714 |
6,525 |
68,347 |
65,145 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.7 |
116,368 |
64,438 |
42,639 |
4,561 |
54,471 |
57,336 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.6 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
788 |
1 |
2 |
2.6 |
8.1 |
156,797 |
15,423 |
2,910 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,765 |
1 |
66 |
15.2 |
34.7 |
1,782,988 |
46,087 |
25,352 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,724 |
3 |
61 |
21.4 |
39.7 |
2,707,122 |
126,347 |
66,579 |
113,464 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,721 |
1 |
2 |
2.7 |
28.6 |
149,873 |
12,470 |
6,513 |
7,820 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,583 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,727 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,069 |
6,703 |
6,527 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.2 |
116,367 |
64,433 |
42,634 |
4,562 |
54,471 |
57,334 |
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 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
533 |
473 |
64 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
13 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
604 |
305 |
337 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
432 |
278 |
159 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,426 |
890 |
1,806 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
795 |
306 |
507 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
788 |
308 |
495 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,792 |
7,535 |
6,624 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,807 |
7,594 |
6,591 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,351 |
15,995 |
15,325 |
34.8 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,641 |
7,435 |
7,492 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,765 |
7,403 |
7,404 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,667 |
1,462 |
1,242 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,619 |
1,491 |
1,151 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,676 |
2,091 |
1,809 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,733 |
1,531 |
1,243 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,721 |
1,463 |
1,296 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
26 |
20 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
20 |
21 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
223 |
161 |
66 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
25 |
24 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,557 |
6,642 |
6,361 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,332 |
6,484 |
7,331 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
32,417 |
20,386 |
13,126 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,635 |
6,322 |
7,542 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,724 |
6,276 |
7,515 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,706 |
931 |
783 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,651 |
953 |
699 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,439 |
1,437 |
1,044 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,725 |
936 |
792 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,727 |
937 |
793 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
62 |
43 |
19 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
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,392 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,184 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,592 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,424 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
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,873 |
0 |
0 |
0 |
8 |
0 |
1,983 |
75 |
bash |
| 9 |
no-host |
bin-true |
49,382 |
0 |
0 |
0 |
8 |
0 |
2,980 |
44 |
dash |
| 17 |
no-host |
bin-true |
829,665 |
0 |
0 |
0 |
8 |
0 |
1,997 |
108 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,301 |
0 |
0 |
0 |
16 |
0 |
1,973 |
81 |
osh-native |
| 33 |
no-host |
bin-true |
133,294 |
0 |
0 |
0 |
16 |
0 |
1,966 |
75 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,624,595 |
0 |
0 |
0 |
25,272 |
0 |
14,014 |
1,026 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,909 |
0 |
0 |
0 |
25,272 |
0 |
14,064 |
1,040 |
dash |
| 18 |
no-host |
configure.cpython |
5,988,448 |
0 |
0 |
0 |
25,272 |
0 |
12,879 |
941 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,804,856 |
0 |
0 |
0 |
25,280 |
0 |
12,845 |
1,080 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,772,138 |
0 |
0 |
0 |
25,280 |
0 |
12,818 |
1,061 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,673 |
0 |
0 |
0 |
4,432 |
0 |
2,012 |
207 |
bash |
| 12 |
no-host |
configure.ocaml |
280,613 |
0 |
0 |
0 |
4,432 |
0 |
2,097 |
203 |
dash |
| 20 |
no-host |
configure.ocaml |
556,580 |
0 |
0 |
0 |
4,432 |
0 |
1,909 |
185 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,866 |
0 |
0 |
0 |
4,440 |
0 |
1,989 |
209 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,042 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
168 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,225 |
0 |
0 |
0 |
80 |
0 |
47 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,212 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,845 |
0 |
0 |
0 |
88 |
0 |
52 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,988 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,862 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,538,234 |
1 |
0 |
0 |
35,944 |
0 |
18,938 |
1,066 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,583 |
0 |
0 |
0 |
35,936 |
0 |
17,037 |
1,281 |
dash |
| 19 |
no-host |
configure.util-linux |
4,986,593 |
3 |
0 |
0 |
35,952 |
0 |
17,533 |
891 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,722,292 |
0 |
0 |
0 |
35,952 |
0 |
17,525 |
1,140 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,707,265 |
0 |
0 |
0 |
35,952 |
0 |
17,479 |
1,070 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,561 |
0 |
0 |
0 |
3,616 |
0 |
878 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,617 |
0 |
0 |
0 |
3,616 |
0 |
995 |
103 |
dash |
| 22 |
no-host |
configure.yash |
316,742 |
0 |
0 |
0 |
3,616 |
0 |
860 |
101 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,058 |
0 |
0 |
0 |
3,624 |
0 |
858 |
98 |
osh-native |
| 38 |
no-host |
configure.yash |
178,927 |
0 |
0 |
0 |
3,624 |
0 |
855 |
102 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,900 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
387 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host