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 |
15 |
9 |
541 |
22 |
21 |
35.12 |
1.43 |
| bin-true |
no-host |
614 |
446 |
2,475 |
811 |
805 |
4.03 |
1.32 |
| configure.cpython |
no-host |
13,890 |
13,960 |
30,077 |
15,110 |
15,222 |
2.17 |
1.09 |
| configure.ocaml |
no-host |
3,593 |
3,682 |
4,790 |
3,820 |
3,858 |
1.33 |
1.06 |
| configure.tcc |
no-host |
46 |
42 |
229 |
49 |
50 |
5.02 |
1.08 |
| configure.util-linux |
no-host |
12,466 |
13,581 |
33,031 |
14,240 |
14,247 |
2.65 |
1.14 |
| configure.yash |
no-host |
1,652 |
1,693 |
2,510 |
1,752 |
1,803 |
1.52 |
1.06 |
| hello-world |
no-host |
1 |
1 |
66 |
3 |
3 |
56.17 |
2.46 |
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,412 |
1,150 |
24,899 |
3,490 |
3,336 |
10.32 |
1.45 |
| bin-true |
no-host |
101,871 |
49,386 |
831,718 |
134,245 |
134,276 |
8.16 |
1.32 |
| configure.cpython |
no-host |
1,624,045 |
1,637,362 |
6,004,872 |
1,807,960 |
1,795,637 |
3.70 |
1.11 |
| configure.ocaml |
no-host |
298,773 |
280,848 |
558,377 |
317,525 |
315,527 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,188 |
4,213 |
23,821 |
5,939 |
5,848 |
4.59 |
1.14 |
| configure.util-linux |
no-host |
1,538,404 |
1,692,799 |
5,011,240 |
1,724,412 |
1,715,104 |
3.26 |
1.12 |
| configure.yash |
no-host |
173,472 |
159,561 |
316,802 |
179,091 |
179,039 |
1.83 |
1.03 |
| hello-world |
no-host |
151 |
84 |
3,890 |
387 |
374 |
25.76 |
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 |
811 |
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 |
15,110 |
1 |
70 |
15.2 |
34.5 |
1,782,989 |
46,101 |
25,356 |
91,622 |
885,112 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,240 |
3 |
67 |
21.4 |
39.7 |
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,820 |
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 |
49 |
0 |
0 |
1.3 |
26.1 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,752 |
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 |
805 |
1 |
2 |
2.6 |
8.3 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,222 |
1 |
68 |
15.2 |
34.4 |
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,247 |
3 |
65 |
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,858 |
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 |
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,803 |
1 |
2 |
2.6 |
33.1 |
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.2 |
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 |
15 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
541 |
484 |
60 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
614 |
315 |
337 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
446 |
279 |
171 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,475 |
907 |
1,848 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
811 |
297 |
528 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
805 |
311 |
511 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,890 |
7,546 |
6,719 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,960 |
7,615 |
6,738 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
30,077 |
16,601 |
15,495 |
34.6 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,110 |
7,522 |
7,888 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,222 |
7,509 |
7,857 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,593 |
1,429 |
1,200 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,682 |
1,477 |
1,228 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,790 |
2,190 |
1,842 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,820 |
1,517 |
1,341 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,858 |
1,532 |
1,365 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
19 |
28 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
24 |
18 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
229 |
163 |
70 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
20 |
29 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
25 |
26 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,466 |
6,583 |
6,321 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,581 |
6,501 |
7,563 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
33,031 |
20,658 |
13,508 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,240 |
6,521 |
7,945 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,247 |
6,504 |
7,823 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,652 |
950 |
709 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,693 |
941 |
752 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,510 |
1,456 |
1,099 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,752 |
976 |
778 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,803 |
993 |
811 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
66 |
50 |
16 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
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,412 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,150 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,899 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,490 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,336 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,871 |
0 |
0 |
0 |
8 |
0 |
1,985 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,386 |
0 |
0 |
0 |
8 |
0 |
2,972 |
48 |
dash |
| 17 |
no-host |
bin-true |
831,718 |
0 |
0 |
0 |
8 |
0 |
1,991 |
135 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,245 |
0 |
0 |
0 |
16 |
0 |
1,958 |
109 |
osh-native |
| 33 |
no-host |
bin-true |
134,276 |
0 |
0 |
0 |
16 |
0 |
1,978 |
79 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,624,045 |
0 |
0 |
0 |
25,272 |
0 |
14,009 |
1,162 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,362 |
0 |
0 |
0 |
25,272 |
0 |
14,038 |
1,075 |
dash |
| 18 |
no-host |
configure.cpython |
6,004,872 |
0 |
0 |
0 |
25,272 |
0 |
12,872 |
917 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,807,960 |
0 |
0 |
0 |
25,280 |
0 |
12,802 |
1,096 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,795,637 |
0 |
0 |
0 |
25,280 |
0 |
12,823 |
1,021 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,773 |
0 |
0 |
0 |
4,432 |
0 |
2,012 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,848 |
0 |
0 |
0 |
4,432 |
0 |
2,090 |
201 |
dash |
| 20 |
no-host |
configure.ocaml |
558,377 |
0 |
0 |
0 |
4,432 |
0 |
1,916 |
175 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,525 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
202 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,527 |
0 |
0 |
0 |
4,440 |
0 |
1,990 |
209 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,188 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,821 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,939 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,848 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,538,404 |
0 |
0 |
0 |
35,944 |
0 |
18,957 |
1,032 |
bash |
| 11 |
no-host |
configure.util-linux |
1,692,799 |
0 |
0 |
0 |
35,936 |
0 |
17,133 |
1,221 |
dash |
| 19 |
no-host |
configure.util-linux |
5,011,240 |
2 |
0 |
0 |
35,960 |
0 |
17,532 |
844 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,724,412 |
0 |
0 |
0 |
35,952 |
0 |
17,503 |
1,116 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,715,104 |
1 |
0 |
0 |
35,952 |
0 |
17,384 |
1,045 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,472 |
0 |
0 |
0 |
3,616 |
0 |
873 |
87 |
bash |
| 14 |
no-host |
configure.yash |
159,561 |
0 |
0 |
0 |
3,616 |
0 |
998 |
101 |
dash |
| 22 |
no-host |
configure.yash |
316,802 |
0 |
0 |
0 |
3,616 |
0 |
860 |
108 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,091 |
0 |
0 |
0 |
3,624 |
0 |
858 |
105 |
osh-native |
| 38 |
no-host |
configure.yash |
179,039 |
0 |
0 |
0 |
3,624 |
0 |
858 |
100 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
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,890 |
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 |
374 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host