oilshell.org
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 |
19 |
10 |
465 |
22 |
21 |
24.08 |
1.15 |
bin-true |
no-host |
684 |
553 |
2,281 |
818 |
818 |
3.34 |
1.20 |
configure.cpython |
no-host |
15,496 |
15,584 |
29,380 |
15,724 |
15,671 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,889 |
3,815 |
4,751 |
3,909 |
3,919 |
1.22 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
198 |
49 |
50 |
4.06 |
1.01 |
configure.util-linux |
no-host |
14,382 |
15,297 |
32,094 |
14,723 |
14,753 |
2.23 |
1.02 |
configure.yash |
no-host |
1,878 |
1,812 |
2,525 |
1,862 |
1,869 |
1.34 |
0.99 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
3 |
32.22 |
1.82 |
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,538 |
1,101 |
23,313 |
3,150 |
3,121 |
9.19 |
1.24 |
bin-true |
no-host |
107,301 |
66,482 |
764,770 |
125,814 |
124,777 |
7.13 |
1.17 |
configure.cpython |
no-host |
2,227,805 |
2,238,851 |
6,206,329 |
2,229,499 |
2,218,200 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,649 |
391,472 |
645,579 |
413,139 |
412,461 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,548 |
5,475 |
23,703 |
6,943 |
6,905 |
3.62 |
1.06 |
configure.util-linux |
no-host |
2,100,943 |
2,259,350 |
5,347,329 |
2,002,528 |
1,992,096 |
2.55 |
0.95 |
configure.yash |
no-host |
255,963 |
244,454 |
387,438 |
257,578 |
257,829 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
84 |
3,738 |
349 |
342 |
24.59 |
2.30 |
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.2 |
6.2 |
3,773 |
3,773 |
0 |
695 |
1,850 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.6 |
8.1 |
154,738 |
13,220 |
2,877 |
9,745 |
78,319 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,724 |
2 |
66 |
15.0 |
27.4 |
1,772,720 |
49,854 |
28,587 |
86,398 |
908,071 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,723 |
3 |
63 |
21.3 |
30.1 |
2,703,488 |
29,745 |
65,870 |
109,676 |
1,320,577 |
1,273,235 |
27,391 |
41 |
131,740 |
1 |
configure.ocaml |
no-host |
3,909 |
1 |
2 |
2.6 |
20.6 |
150,094 |
11,051 |
5,221 |
7,532 |
71,604 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,579 |
30,579 |
0 |
1,521 |
14,774 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,862 |
1 |
2 |
2.6 |
24.4 |
139,747 |
8,020 |
6,679 |
6,337 |
70,279 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,322 |
64,530 |
42,740 |
4,572 |
54,519 |
57,231 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,772 |
3,772 |
0 |
696 |
1,850 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.6 |
7.6 |
154,737 |
13,063 |
2,815 |
9,746 |
78,319 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,671 |
1 |
62 |
14.9 |
27.4 |
1,772,719 |
49,105 |
28,525 |
86,399 |
908,071 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,753 |
3 |
63 |
21.3 |
30.3 |
2,703,488 |
42,741 |
65,808 |
109,678 |
1,320,577 |
1,273,233 |
27,391 |
41 |
131,616 |
1 |
configure.ocaml |
no-host |
3,919 |
1 |
2 |
2.6 |
20.6 |
150,094 |
10,989 |
5,159 |
7,534 |
71,604 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,579 |
30,579 |
0 |
1,523 |
14,774 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,869 |
1 |
2 |
2.6 |
24.4 |
139,747 |
7,958 |
6,617 |
6,339 |
70,279 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,321 |
64,468 |
42,678 |
4,573 |
54,519 |
57,229 |
270 |
3 |
85,356 |
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 |
19 |
5 |
14 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
465 |
427 |
42 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
684 |
507 |
208 |
3.0 |
bash |
9 |
no-host |
bin-true |
553 |
416 |
143 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,281 |
1,488 |
1,065 |
17.8 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
590 |
242 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
818 |
566 |
267 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,496 |
9,409 |
6,493 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,584 |
9,441 |
6,567 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,380 |
17,986 |
13,327 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,724 |
9,290 |
6,702 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,671 |
9,336 |
6,510 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,889 |
1,669 |
1,253 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,815 |
1,594 |
1,238 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,751 |
2,292 |
1,673 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,909 |
1,702 |
1,248 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,919 |
1,683 |
1,272 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
20 |
29 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
29 |
13 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
150 |
52 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
32 |
18 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,382 |
9,183 |
5,673 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,297 |
9,339 |
6,459 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,094 |
21,176 |
12,051 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,723 |
9,014 |
5,916 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,753 |
8,873 |
6,065 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,878 |
1,096 |
791 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,812 |
1,036 |
779 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,525 |
1,565 |
1,006 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,862 |
1,064 |
802 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,869 |
1,035 |
838 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
51 |
38 |
12 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
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,538 |
0 |
0 |
0 |
16 |
0 |
41 |
4 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,313 |
0 |
0 |
0 |
8 |
0 |
45 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,150 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,121 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,301 |
0 |
0 |
0 |
8 |
0 |
1,989 |
54 |
bash |
9 |
no-host |
bin-true |
66,482 |
0 |
0 |
0 |
8 |
0 |
1,987 |
107 |
dash |
17 |
no-host |
bin-true |
764,770 |
0 |
0 |
0 |
8 |
0 |
1,990 |
257 |
osh-cpython |
25 |
no-host |
bin-true |
125,814 |
0 |
0 |
0 |
16 |
0 |
1,988 |
116 |
osh-native |
33 |
no-host |
bin-true |
124,777 |
0 |
0 |
0 |
16 |
0 |
1,993 |
82 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,227,805 |
0 |
0 |
0 |
32,928 |
0 |
14,481 |
1,006 |
bash |
10 |
no-host |
configure.cpython |
2,238,851 |
0 |
0 |
0 |
32,992 |
0 |
14,597 |
1,341 |
dash |
18 |
no-host |
configure.cpython |
6,206,329 |
0 |
0 |
0 |
27,512 |
0 |
13,211 |
1,339 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,499 |
1 |
0 |
0 |
27,520 |
0 |
13,260 |
1,203 |
osh-native |
34 |
no-host |
configure.cpython |
2,218,200 |
0 |
0 |
0 |
27,520 |
0 |
13,223 |
1,017 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,649 |
0 |
0 |
0 |
5,120 |
0 |
1,966 |
147 |
bash |
12 |
no-host |
configure.ocaml |
391,472 |
0 |
0 |
0 |
5,112 |
0 |
1,869 |
170 |
dash |
20 |
no-host |
configure.ocaml |
645,579 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
161 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,139 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
164 |
osh-native |
36 |
no-host |
configure.ocaml |
412,461 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
196 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,548 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,703 |
0 |
0 |
0 |
96 |
0 |
52 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,943 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,905 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,100,943 |
0 |
0 |
0 |
42,400 |
0 |
18,596 |
1,095 |
bash |
11 |
no-host |
configure.util-linux |
2,259,350 |
1 |
0 |
0 |
42,584 |
0 |
17,461 |
1,148 |
dash |
19 |
no-host |
configure.util-linux |
5,347,329 |
11 |
0 |
0 |
39,144 |
0 |
16,981 |
1,228 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,528 |
1 |
0 |
0 |
39,128 |
0 |
17,009 |
1,029 |
osh-native |
35 |
no-host |
configure.util-linux |
1,992,096 |
0 |
0 |
0 |
39,136 |
0 |
16,983 |
1,089 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,963 |
0 |
0 |
0 |
4,120 |
0 |
871 |
89 |
bash |
14 |
no-host |
configure.yash |
244,454 |
0 |
0 |
0 |
3,720 |
0 |
870 |
70 |
dash |
22 |
no-host |
configure.yash |
387,438 |
0 |
0 |
0 |
3,728 |
0 |
852 |
114 |
osh-cpython |
30 |
no-host |
configure.yash |
257,578 |
0 |
0 |
0 |
3,736 |
0 |
850 |
76 |
osh-native |
38 |
no-host |
configure.yash |
257,829 |
0 |
0 |
0 |
3,736 |
0 |
848 |
104 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
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,738 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host