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 |
542 |
21 |
22 |
34.63 |
1.37 |
| bin-true |
no-host |
610 |
439 |
2,451 |
797 |
801 |
4.02 |
1.31 |
| configure.cpython |
no-host |
14,070 |
14,147 |
29,996 |
14,867 |
14,940 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,705 |
3,672 |
4,713 |
3,730 |
3,822 |
1.27 |
1.01 |
| configure.tcc |
no-host |
48 |
41 |
224 |
49 |
51 |
4.68 |
1.02 |
| configure.util-linux |
no-host |
12,736 |
13,588 |
32,446 |
13,742 |
14,100 |
2.55 |
1.08 |
| configure.yash |
no-host |
1,723 |
1,661 |
2,491 |
1,721 |
1,783 |
1.45 |
1.00 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
50.27 |
2.44 |
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,407 |
1,178 |
24,672 |
3,440 |
3,339 |
10.25 |
1.43 |
| bin-true |
no-host |
100,982 |
49,390 |
828,049 |
135,257 |
134,266 |
8.20 |
1.34 |
| configure.cpython |
no-host |
1,615,181 |
1,643,048 |
5,985,796 |
1,794,942 |
1,776,606 |
3.71 |
1.11 |
| configure.ocaml |
no-host |
298,863 |
280,912 |
555,722 |
316,528 |
316,087 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,249 |
4,193 |
23,812 |
5,925 |
5,875 |
4.54 |
1.13 |
| configure.util-linux |
no-host |
1,529,405 |
1,694,440 |
4,977,613 |
1,724,340 |
1,711,281 |
3.25 |
1.13 |
| configure.yash |
no-host |
173,459 |
159,547 |
315,815 |
179,546 |
178,799 |
1.82 |
1.04 |
| hello-world |
no-host |
150 |
86 |
3,895 |
386 |
378 |
25.97 |
2.57 |
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 |
797 |
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,867 |
1 |
68 |
15.2 |
34.8 |
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,742 |
3 |
61 |
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,730 |
1 |
2 |
2.7 |
28.6 |
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,721 |
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 |
21 |
1 |
2 |
2.8 |
9.8 |
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.4 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
1 |
2 |
2.6 |
8.5 |
156,797 |
15,423 |
2,910 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,940 |
1 |
66 |
15.2 |
34.5 |
1,782,988 |
46,087 |
25,352 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,100 |
3 |
63 |
21.4 |
39.6 |
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,822 |
1 |
2 |
2.7 |
28.8 |
149,873 |
12,470 |
6,513 |
7,820 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,583 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,783 |
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 |
22 |
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 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
542 |
485 |
61 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
22 |
12 |
10 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
610 |
305 |
342 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
439 |
280 |
163 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,451 |
909 |
1,820 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
797 |
319 |
494 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
801 |
292 |
524 |
8.5 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,070 |
7,601 |
6,842 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,147 |
7,620 |
6,919 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,996 |
16,435 |
15,558 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,867 |
7,615 |
7,535 |
34.8 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,940 |
7,490 |
7,600 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,705 |
1,449 |
1,295 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,672 |
1,456 |
1,239 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,713 |
2,127 |
1,811 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,730 |
1,470 |
1,300 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,822 |
1,518 |
1,332 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
24 |
24 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
224 |
161 |
66 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
20 |
29 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
51 |
26 |
25 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,736 |
6,619 |
6,572 |
39.8 |
bash |
| 11 |
no-host |
configure.util-linux |
13,588 |
6,505 |
7,568 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
32,446 |
20,379 |
13,150 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,742 |
6,336 |
7,637 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,100 |
6,379 |
7,799 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,723 |
921 |
810 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,661 |
931 |
732 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,491 |
1,476 |
1,058 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,721 |
928 |
796 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,783 |
972 |
812 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
60 |
43 |
16 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
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,407 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,178 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,672 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,440 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,339 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,982 |
0 |
0 |
0 |
8 |
0 |
1,986 |
56 |
bash |
| 9 |
no-host |
bin-true |
49,390 |
0 |
0 |
0 |
8 |
0 |
2,975 |
57 |
dash |
| 17 |
no-host |
bin-true |
828,049 |
0 |
0 |
0 |
8 |
0 |
1,993 |
135 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,257 |
0 |
0 |
0 |
16 |
0 |
1,982 |
86 |
osh-native |
| 33 |
no-host |
bin-true |
134,266 |
0 |
0 |
0 |
16 |
0 |
1,990 |
113 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,615,181 |
0 |
0 |
0 |
25,272 |
0 |
14,045 |
1,058 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,048 |
0 |
0 |
0 |
25,272 |
0 |
14,096 |
1,065 |
dash |
| 18 |
no-host |
configure.cpython |
5,985,796 |
0 |
0 |
0 |
25,272 |
0 |
12,878 |
861 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,794,942 |
0 |
0 |
0 |
25,280 |
0 |
12,827 |
1,076 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,776,606 |
0 |
0 |
0 |
25,280 |
0 |
12,848 |
1,056 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,863 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
280,912 |
0 |
0 |
0 |
4,432 |
0 |
2,096 |
190 |
dash |
| 20 |
no-host |
configure.ocaml |
555,722 |
0 |
0 |
0 |
4,432 |
0 |
1,918 |
182 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,528 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
198 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,087 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
192 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,249 |
0 |
0 |
0 |
80 |
0 |
48 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,193 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,812 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,925 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,875 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,529,405 |
1 |
0 |
0 |
35,944 |
0 |
18,906 |
1,219 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,440 |
2 |
0 |
0 |
35,936 |
0 |
17,087 |
1,251 |
dash |
| 19 |
no-host |
configure.util-linux |
4,977,613 |
1 |
0 |
0 |
35,952 |
0 |
17,512 |
860 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,724,340 |
1 |
0 |
0 |
35,944 |
0 |
17,548 |
1,042 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,711,281 |
4 |
0 |
0 |
35,944 |
0 |
17,446 |
1,084 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,459 |
0 |
0 |
0 |
3,616 |
0 |
876 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,547 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
89 |
dash |
| 22 |
no-host |
configure.yash |
315,815 |
0 |
0 |
0 |
3,616 |
0 |
864 |
101 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,546 |
0 |
0 |
0 |
3,624 |
0 |
856 |
93 |
osh-native |
| 38 |
no-host |
configure.yash |
178,799 |
0 |
0 |
0 |
3,624 |
0 |
856 |
109 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,895 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
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