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 |
524 |
22 |
20 |
33.51 |
1.40 |
| bin-true |
no-host |
610 |
433 |
2,416 |
799 |
804 |
3.96 |
1.31 |
| configure.cpython |
no-host |
13,743 |
13,673 |
29,081 |
14,419 |
14,848 |
2.12 |
1.05 |
| configure.ocaml |
no-host |
3,631 |
3,571 |
4,608 |
3,686 |
3,686 |
1.27 |
1.02 |
| configure.tcc |
no-host |
45 |
41 |
218 |
49 |
48 |
4.79 |
1.07 |
| configure.util-linux |
no-host |
12,398 |
13,137 |
31,746 |
13,608 |
13,536 |
2.56 |
1.10 |
| configure.yash |
no-host |
1,666 |
1,621 |
2,406 |
1,714 |
1,687 |
1.44 |
1.03 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
51.30 |
2.43 |
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,410 |
1,155 |
24,952 |
3,456 |
3,373 |
10.35 |
1.43 |
| bin-true |
no-host |
100,938 |
49,386 |
834,731 |
137,254 |
137,303 |
8.27 |
1.36 |
| configure.cpython |
no-host |
1,625,272 |
1,641,055 |
6,007,417 |
1,797,263 |
1,796,248 |
3.70 |
1.11 |
| configure.ocaml |
no-host |
299,153 |
280,928 |
557,893 |
317,146 |
315,475 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,235 |
4,204 |
23,886 |
5,978 |
5,888 |
4.56 |
1.14 |
| configure.util-linux |
no-host |
1,530,934 |
1,700,754 |
5,016,381 |
1,723,312 |
1,704,918 |
3.28 |
1.13 |
| configure.yash |
no-host |
173,391 |
159,535 |
315,955 |
179,297 |
178,489 |
1.82 |
1.03 |
| hello-world |
no-host |
154 |
87 |
3,893 |
383 |
378 |
25.28 |
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.8 |
3,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
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,419 |
1 |
64 |
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,608 |
3 |
60 |
21.4 |
39.6 |
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,686 |
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 |
49 |
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,714 |
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.7 |
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 |
804 |
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,848 |
1 |
64 |
15.2 |
34.6 |
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,536 |
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,686 |
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 |
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,687 |
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 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
524 |
464 |
64 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
7 |
14 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
610 |
312 |
334 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
433 |
278 |
161 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,416 |
871 |
1,813 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
799 |
316 |
499 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
804 |
326 |
494 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,743 |
7,487 |
6,518 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,673 |
7,446 |
6,616 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,081 |
15,885 |
15,163 |
34.7 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,419 |
7,249 |
7,460 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,848 |
7,247 |
7,584 |
34.6 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,631 |
1,440 |
1,230 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,571 |
1,407 |
1,186 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,608 |
2,123 |
1,706 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,686 |
1,470 |
1,257 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,686 |
1,462 |
1,262 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
31 |
15 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
20 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
218 |
156 |
65 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
26 |
23 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
23 |
26 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,398 |
6,455 |
6,379 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,137 |
6,318 |
7,302 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
31,746 |
19,789 |
13,026 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,608 |
6,416 |
7,422 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,536 |
6,240 |
7,364 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,666 |
914 |
760 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,621 |
903 |
720 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
2,406 |
1,418 |
1,032 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,714 |
936 |
780 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,687 |
913 |
778 |
33.4 |
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 |
61 |
40 |
20 |
18.0 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
1 |
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,410 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,155 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,952 |
0 |
0 |
0 |
8 |
0 |
45 |
3 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,456 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,373 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,938 |
0 |
0 |
0 |
8 |
0 |
1,981 |
63 |
bash |
| 9 |
no-host |
bin-true |
49,386 |
0 |
0 |
0 |
8 |
0 |
2,981 |
47 |
dash |
| 17 |
no-host |
bin-true |
834,731 |
0 |
0 |
0 |
8 |
0 |
1,992 |
101 |
osh-cpython |
| 25 |
no-host |
bin-true |
137,254 |
0 |
0 |
0 |
16 |
0 |
1,966 |
96 |
osh-native |
| 33 |
no-host |
bin-true |
137,303 |
0 |
0 |
0 |
16 |
0 |
1,976 |
94 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,625,272 |
0 |
0 |
0 |
25,272 |
0 |
14,024 |
1,024 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,055 |
0 |
0 |
0 |
25,272 |
0 |
14,078 |
1,111 |
dash |
| 18 |
no-host |
configure.cpython |
6,007,417 |
0 |
0 |
0 |
25,272 |
0 |
12,875 |
881 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,797,263 |
0 |
0 |
0 |
25,280 |
0 |
12,824 |
1,081 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,796,248 |
0 |
0 |
0 |
25,280 |
0 |
12,784 |
1,148 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,153 |
0 |
0 |
0 |
4,432 |
0 |
2,008 |
191 |
bash |
| 12 |
no-host |
configure.ocaml |
280,928 |
0 |
0 |
0 |
4,432 |
0 |
2,096 |
187 |
dash |
| 20 |
no-host |
configure.ocaml |
557,893 |
1 |
0 |
0 |
4,432 |
0 |
1,922 |
196 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,146 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
196 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,475 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
175 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,235 |
0 |
0 |
0 |
80 |
0 |
48 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,204 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,886 |
0 |
0 |
0 |
88 |
0 |
52 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,978 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,888 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,530,934 |
0 |
0 |
0 |
35,944 |
0 |
18,984 |
1,045 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,754 |
0 |
0 |
0 |
35,936 |
0 |
17,101 |
1,218 |
dash |
| 19 |
no-host |
configure.util-linux |
5,016,381 |
1 |
0 |
0 |
35,952 |
0 |
17,547 |
870 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,723,312 |
0 |
0 |
0 |
35,952 |
0 |
17,433 |
1,146 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,704,918 |
0 |
0 |
0 |
35,952 |
0 |
17,441 |
1,114 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,391 |
0 |
0 |
0 |
3,616 |
0 |
872 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,535 |
0 |
0 |
0 |
3,616 |
0 |
997 |
106 |
dash |
| 22 |
no-host |
configure.yash |
315,955 |
0 |
0 |
0 |
3,616 |
0 |
861 |
94 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,297 |
0 |
0 |
0 |
3,624 |
0 |
855 |
102 |
osh-native |
| 38 |
no-host |
configure.yash |
178,489 |
0 |
0 |
0 |
3,624 |
0 |
857 |
105 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,893 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
383 |
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