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 |
536 |
22 |
20 |
34.19 |
1.38 |
| bin-true |
no-host |
609 |
436 |
2,435 |
818 |
796 |
4.00 |
1.34 |
| configure.cpython |
no-host |
13,964 |
13,952 |
29,447 |
14,736 |
14,764 |
2.11 |
1.06 |
| configure.ocaml |
no-host |
3,700 |
3,629 |
4,679 |
3,744 |
3,750 |
1.26 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
220 |
51 |
48 |
4.76 |
1.11 |
| configure.util-linux |
no-host |
12,588 |
13,349 |
32,260 |
13,890 |
13,772 |
2.56 |
1.10 |
| configure.yash |
no-host |
1,714 |
1,664 |
2,431 |
1,734 |
1,727 |
1.42 |
1.01 |
| hello-world |
no-host |
1 |
1 |
62 |
3 |
3 |
50.38 |
2.35 |
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,190 |
24,890 |
3,467 |
3,332 |
10.41 |
1.45 |
| bin-true |
no-host |
101,944 |
49,370 |
833,725 |
139,340 |
136,271 |
8.18 |
1.37 |
| configure.cpython |
no-host |
1,627,356 |
1,643,229 |
6,005,465 |
1,794,800 |
1,785,075 |
3.69 |
1.10 |
| configure.ocaml |
no-host |
298,994 |
280,868 |
557,392 |
316,979 |
315,714 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,209 |
4,228 |
23,853 |
5,938 |
5,856 |
4.58 |
1.14 |
| configure.util-linux |
no-host |
1,527,638 |
1,696,938 |
5,008,696 |
1,714,623 |
1,702,467 |
3.28 |
1.12 |
| configure.yash |
no-host |
173,710 |
159,457 |
316,349 |
179,215 |
178,699 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
85 |
3,883 |
389 |
375 |
25.55 |
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,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
818 |
1 |
2 |
2.6 |
8.9 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,736 |
1 |
65 |
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,890 |
3 |
62 |
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,744 |
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 |
51 |
0 |
0 |
1.3 |
26.4 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,734 |
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.4 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
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 |
14,764 |
1 |
64 |
15.2 |
34.7 |
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,772 |
3 |
61 |
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,750 |
1 |
2 |
2.7 |
28.6 |
149,873 |
12,470 |
6,513 |
7,821 |
70,840 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,727 |
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 |
20 |
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 |
8 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
536 |
477 |
63 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
12 |
9 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
609 |
304 |
343 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
436 |
271 |
171 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,435 |
866 |
1,835 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
818 |
302 |
523 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
796 |
300 |
512 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,964 |
7,558 |
6,750 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,952 |
7,600 |
6,737 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,447 |
16,034 |
15,393 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,736 |
7,458 |
7,543 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,764 |
7,478 |
7,391 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,700 |
1,473 |
1,262 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,629 |
1,447 |
1,201 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,679 |
2,095 |
1,806 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,744 |
1,502 |
1,277 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,750 |
1,449 |
1,337 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
21 |
26 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
17 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
154 |
70 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
22 |
29 |
26.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
23 |
26 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,588 |
6,554 |
6,484 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,349 |
6,478 |
7,331 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,260 |
20,292 |
13,004 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,890 |
6,384 |
7,676 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,772 |
6,284 |
7,537 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,714 |
952 |
767 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,664 |
941 |
723 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
2,431 |
1,438 |
1,036 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,734 |
942 |
793 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,727 |
922 |
808 |
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.6 |
dash |
| 16 |
no-host |
hello-world |
62 |
43 |
19 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
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 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,190 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,890 |
0 |
0 |
0 |
8 |
0 |
45 |
3 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,467 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,332 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,944 |
0 |
0 |
0 |
8 |
0 |
1,987 |
69 |
bash |
| 9 |
no-host |
bin-true |
49,370 |
0 |
0 |
0 |
8 |
0 |
2,976 |
41 |
dash |
| 17 |
no-host |
bin-true |
833,725 |
0 |
0 |
0 |
8 |
0 |
1,993 |
117 |
osh-cpython |
| 25 |
no-host |
bin-true |
139,340 |
0 |
0 |
0 |
16 |
0 |
1,970 |
91 |
osh-native |
| 33 |
no-host |
bin-true |
136,271 |
0 |
0 |
0 |
16 |
0 |
1,975 |
78 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,627,356 |
0 |
0 |
0 |
25,296 |
0 |
14,050 |
1,028 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,229 |
0 |
0 |
0 |
25,272 |
0 |
14,063 |
1,106 |
dash |
| 18 |
no-host |
configure.cpython |
6,005,465 |
0 |
0 |
0 |
25,272 |
0 |
12,869 |
893 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,794,800 |
0 |
0 |
0 |
25,280 |
0 |
12,789 |
1,123 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,785,075 |
0 |
0 |
0 |
25,280 |
0 |
12,837 |
1,047 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,994 |
0 |
0 |
0 |
4,432 |
0 |
2,007 |
190 |
bash |
| 12 |
no-host |
configure.ocaml |
280,868 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
190 |
dash |
| 20 |
no-host |
configure.ocaml |
557,392 |
0 |
0 |
0 |
4,432 |
0 |
1,911 |
183 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,979 |
0 |
0 |
0 |
4,440 |
0 |
1,993 |
215 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,714 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
207 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,209 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,228 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,853 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,938 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,856 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,527,638 |
1 |
0 |
0 |
35,944 |
0 |
18,782 |
1,178 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,938 |
0 |
0 |
0 |
35,944 |
0 |
17,002 |
1,234 |
dash |
| 19 |
no-host |
configure.util-linux |
5,008,696 |
3 |
0 |
0 |
35,952 |
0 |
17,520 |
926 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,714,623 |
0 |
0 |
0 |
35,952 |
0 |
17,495 |
1,122 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,702,467 |
0 |
0 |
0 |
35,952 |
0 |
17,540 |
1,064 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,710 |
0 |
0 |
0 |
3,616 |
0 |
872 |
103 |
bash |
| 14 |
no-host |
configure.yash |
159,457 |
0 |
0 |
0 |
3,616 |
0 |
993 |
96 |
dash |
| 22 |
no-host |
configure.yash |
316,349 |
0 |
0 |
0 |
3,616 |
0 |
863 |
104 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,215 |
0 |
0 |
0 |
3,624 |
0 |
856 |
101 |
osh-native |
| 38 |
no-host |
configure.yash |
178,699 |
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 |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,883 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
389 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
375 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host