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 |
33.71 |
1.40 |
| bin-true |
no-host |
615 |
435 |
2,460 |
819 |
818 |
4.00 |
1.33 |
| configure.cpython |
no-host |
13,772 |
13,772 |
29,511 |
14,603 |
14,674 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,640 |
3,594 |
4,637 |
3,717 |
3,702 |
1.27 |
1.02 |
| configure.tcc |
no-host |
46 |
42 |
222 |
49 |
49 |
4.82 |
1.06 |
| configure.util-linux |
no-host |
12,462 |
13,259 |
31,978 |
13,592 |
13,671 |
2.57 |
1.09 |
| configure.yash |
no-host |
1,687 |
1,628 |
2,405 |
1,717 |
1,715 |
1.43 |
1.02 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
50.59 |
2.49 |
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,380 |
1,157 |
24,943 |
3,458 |
3,318 |
10.48 |
1.45 |
| bin-true |
no-host |
101,919 |
49,400 |
833,709 |
139,287 |
137,262 |
8.18 |
1.37 |
| configure.cpython |
no-host |
1,620,583 |
1,637,621 |
5,999,688 |
1,803,203 |
1,785,643 |
3.70 |
1.11 |
| configure.ocaml |
no-host |
299,067 |
280,621 |
558,702 |
315,971 |
315,446 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,206 |
4,202 |
23,881 |
5,905 |
5,854 |
4.59 |
1.13 |
| configure.util-linux |
no-host |
1,533,440 |
1,695,675 |
5,005,485 |
1,714,247 |
1,716,412 |
3.26 |
1.12 |
| configure.yash |
no-host |
173,562 |
159,546 |
316,472 |
179,718 |
179,498 |
1.82 |
1.04 |
| hello-world |
no-host |
152 |
82 |
3,888 |
389 |
374 |
25.58 |
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 |
819 |
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,603 |
1 |
68 |
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,592 |
3 |
62 |
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,717 |
1 |
2 |
2.7 |
28.8 |
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.2 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,717 |
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 |
818 |
1 |
2 |
2.6 |
8.1 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,674 |
1 |
67 |
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 |
13,671 |
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,702 |
1 |
2 |
2.7 |
28.9 |
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.2 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,715 |
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.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 |
9 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
533 |
474 |
62 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
615 |
311 |
343 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
435 |
271 |
170 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,460 |
902 |
1,830 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
819 |
312 |
523 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
818 |
318 |
518 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,772 |
7,525 |
6,627 |
34.8 |
bash |
| 10 |
no-host |
configure.cpython |
13,772 |
7,450 |
6,723 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,511 |
16,129 |
15,360 |
34.6 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,603 |
7,365 |
7,547 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,674 |
7,463 |
7,364 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,640 |
1,459 |
1,220 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,594 |
1,441 |
1,177 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,637 |
2,109 |
1,753 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,717 |
1,458 |
1,303 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,702 |
1,436 |
1,306 |
28.9 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
20 |
22 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
162 |
64 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
26 |
23 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
26 |
24 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,462 |
6,474 |
6,451 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,259 |
6,310 |
7,440 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
31,978 |
19,874 |
13,193 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,592 |
6,299 |
7,526 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,671 |
6,246 |
7,499 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,687 |
940 |
755 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,628 |
920 |
711 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,405 |
1,435 |
1,013 |
33.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,717 |
914 |
806 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,715 |
935 |
783 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
61 |
37 |
24 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,380 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,157 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,943 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,458 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,318 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,919 |
0 |
0 |
0 |
8 |
0 |
1,988 |
72 |
bash |
| 9 |
no-host |
bin-true |
49,400 |
0 |
0 |
0 |
8 |
0 |
2,982 |
57 |
dash |
| 17 |
no-host |
bin-true |
833,709 |
0 |
0 |
0 |
8 |
0 |
1,987 |
187 |
osh-cpython |
| 25 |
no-host |
bin-true |
139,287 |
0 |
0 |
0 |
16 |
0 |
1,987 |
91 |
osh-native |
| 33 |
no-host |
bin-true |
137,262 |
0 |
0 |
0 |
16 |
0 |
1,985 |
88 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,620,583 |
0 |
0 |
0 |
25,272 |
0 |
14,053 |
1,075 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,621 |
0 |
0 |
0 |
25,272 |
0 |
14,070 |
1,013 |
dash |
| 18 |
no-host |
configure.cpython |
5,999,688 |
0 |
0 |
0 |
25,272 |
0 |
12,878 |
898 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,803,203 |
0 |
0 |
0 |
25,280 |
0 |
12,940 |
1,056 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,785,643 |
0 |
0 |
0 |
25,280 |
0 |
12,894 |
1,079 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,067 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
210 |
bash |
| 12 |
no-host |
configure.ocaml |
280,621 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
196 |
dash |
| 20 |
no-host |
configure.ocaml |
558,702 |
0 |
0 |
0 |
4,432 |
0 |
1,919 |
197 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
315,971 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
202 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,446 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
204 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,206 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,202 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,881 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,905 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,854 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,533,440 |
2 |
0 |
0 |
35,944 |
0 |
18,874 |
1,016 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,675 |
0 |
0 |
0 |
35,936 |
0 |
17,095 |
1,265 |
dash |
| 19 |
no-host |
configure.util-linux |
5,005,485 |
3 |
0 |
0 |
35,944 |
0 |
17,539 |
948 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,714,247 |
0 |
0 |
0 |
35,944 |
0 |
17,437 |
1,046 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,716,412 |
0 |
0 |
0 |
35,952 |
0 |
17,463 |
1,086 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,562 |
0 |
0 |
0 |
3,616 |
0 |
876 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,546 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
105 |
dash |
| 22 |
no-host |
configure.yash |
316,472 |
0 |
0 |
0 |
3,616 |
0 |
862 |
100 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,718 |
0 |
0 |
0 |
3,624 |
0 |
858 |
111 |
osh-native |
| 38 |
no-host |
configure.yash |
179,498 |
0 |
0 |
0 |
3,624 |
0 |
858 |
107 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
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,888 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
389 |
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