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 |
537 |
22 |
21 |
34.65 |
1.40 |
| bin-true |
no-host |
614 |
434 |
2,462 |
805 |
795 |
4.01 |
1.31 |
| configure.cpython |
no-host |
13,770 |
13,755 |
29,330 |
14,908 |
15,062 |
2.13 |
1.08 |
| configure.ocaml |
no-host |
3,633 |
3,599 |
4,693 |
3,784 |
3,768 |
1.29 |
1.04 |
| configure.tcc |
no-host |
45 |
41 |
222 |
50 |
49 |
4.88 |
1.09 |
| configure.util-linux |
no-host |
12,358 |
13,186 |
32,573 |
13,936 |
13,941 |
2.64 |
1.13 |
| configure.yash |
no-host |
1,683 |
1,649 |
2,447 |
1,755 |
1,743 |
1.45 |
1.04 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
49.85 |
2.47 |
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,421 |
1,147 |
24,827 |
3,464 |
3,379 |
10.25 |
1.43 |
| bin-true |
no-host |
100,942 |
49,391 |
833,002 |
137,287 |
133,249 |
8.25 |
1.36 |
| configure.cpython |
no-host |
1,627,777 |
1,634,850 |
5,960,351 |
1,809,891 |
1,797,618 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
298,912 |
281,173 |
556,587 |
317,726 |
315,951 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,224 |
4,210 |
23,792 |
5,928 |
5,908 |
4.55 |
1.13 |
| configure.util-linux |
no-host |
1,532,311 |
1,696,510 |
4,964,363 |
1,714,268 |
1,706,234 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,388 |
159,549 |
315,418 |
178,985 |
178,627 |
1.82 |
1.03 |
| hello-world |
no-host |
153 |
85 |
3,871 |
385 |
378 |
25.30 |
2.52 |
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 |
7.1 |
3,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
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,908 |
1 |
67 |
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 |
13,936 |
3 |
65 |
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,784 |
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 |
50 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,755 |
1 |
2 |
2.6 |
33.3 |
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.6 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
795 |
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,062 |
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,941 |
3 |
62 |
21.4 |
39.9 |
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,768 |
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 |
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,743 |
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 |
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 |
10 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
537 |
472 |
69 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
614 |
313 |
338 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
434 |
269 |
170 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,462 |
910 |
1,827 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
805 |
308 |
515 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
795 |
312 |
496 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,770 |
7,545 |
6,602 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,755 |
7,479 |
6,661 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
29,330 |
15,945 |
15,347 |
34.6 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,908 |
7,525 |
7,688 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,062 |
7,475 |
7,680 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,633 |
1,433 |
1,237 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,599 |
1,451 |
1,172 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,693 |
2,135 |
1,782 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,784 |
1,475 |
1,350 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,768 |
1,509 |
1,298 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
29 |
17 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
19 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
154 |
72 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
29 |
21 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,358 |
6,450 |
6,360 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,186 |
6,283 |
7,384 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
32,573 |
20,355 |
13,317 |
40.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,936 |
6,546 |
7,623 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,941 |
6,408 |
7,609 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,683 |
924 |
767 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,649 |
969 |
682 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,447 |
1,443 |
1,047 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,755 |
949 |
808 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,743 |
966 |
780 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
46 |
15 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
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,421 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,147 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,827 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,464 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,379 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,942 |
0 |
0 |
0 |
8 |
0 |
1,987 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,391 |
0 |
0 |
0 |
8 |
0 |
2,976 |
47 |
dash |
| 17 |
no-host |
bin-true |
833,002 |
0 |
0 |
0 |
8 |
0 |
1,990 |
118 |
osh-cpython |
| 25 |
no-host |
bin-true |
137,287 |
0 |
0 |
0 |
16 |
0 |
1,987 |
69 |
osh-native |
| 33 |
no-host |
bin-true |
133,249 |
0 |
0 |
0 |
16 |
0 |
1,972 |
92 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,627,777 |
0 |
0 |
0 |
25,272 |
0 |
14,019 |
1,035 |
bash |
| 10 |
no-host |
configure.cpython |
1,634,850 |
0 |
0 |
0 |
25,272 |
0 |
14,073 |
1,171 |
dash |
| 18 |
no-host |
configure.cpython |
5,960,351 |
0 |
0 |
0 |
25,272 |
0 |
12,884 |
877 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,809,891 |
0 |
0 |
0 |
25,280 |
0 |
12,860 |
996 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,797,618 |
0 |
0 |
0 |
25,280 |
0 |
12,815 |
1,053 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,912 |
0 |
0 |
0 |
4,432 |
0 |
2,022 |
204 |
bash |
| 12 |
no-host |
configure.ocaml |
281,173 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
207 |
dash |
| 20 |
no-host |
configure.ocaml |
556,587 |
0 |
0 |
0 |
4,432 |
0 |
1,915 |
179 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,726 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
208 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,951 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
218 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,224 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,210 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,792 |
0 |
0 |
0 |
88 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,928 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,908 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,532,311 |
0 |
0 |
0 |
35,944 |
0 |
18,811 |
1,117 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,510 |
0 |
0 |
0 |
35,936 |
0 |
17,056 |
1,237 |
dash |
| 19 |
no-host |
configure.util-linux |
4,964,363 |
0 |
0 |
0 |
35,952 |
0 |
17,529 |
926 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,714,268 |
0 |
0 |
0 |
35,944 |
0 |
17,507 |
1,195 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,706,234 |
0 |
0 |
0 |
35,944 |
0 |
17,485 |
1,124 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,388 |
0 |
0 |
0 |
3,616 |
0 |
871 |
88 |
bash |
| 14 |
no-host |
configure.yash |
159,549 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
99 |
dash |
| 22 |
no-host |
configure.yash |
315,418 |
0 |
0 |
0 |
3,616 |
0 |
862 |
104 |
osh-cpython |
| 30 |
no-host |
configure.yash |
178,985 |
0 |
0 |
0 |
3,624 |
0 |
857 |
112 |
osh-native |
| 38 |
no-host |
configure.yash |
178,627 |
0 |
0 |
0 |
3,624 |
0 |
852 |
97 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,871 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
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