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 |
20 |
10 |
452 |
23 |
22 |
23.13 |
1.15 |
bin-true |
no-host |
678 |
549 |
2,280 |
811 |
804 |
3.37 |
1.20 |
configure.cpython |
no-host |
15,053 |
15,136 |
28,814 |
15,434 |
15,347 |
1.91 |
1.03 |
configure.ocaml |
no-host |
3,812 |
3,760 |
4,625 |
3,856 |
3,854 |
1.21 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
195 |
49 |
49 |
4.13 |
1.04 |
configure.util-linux |
no-host |
14,076 |
14,935 |
31,260 |
14,416 |
14,436 |
2.22 |
1.02 |
configure.yash |
no-host |
1,823 |
1,790 |
2,436 |
1,849 |
1,852 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
52 |
3 |
3 |
34.92 |
1.88 |
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,537 |
1,118 |
23,590 |
3,169 |
3,126 |
9.30 |
1.25 |
bin-true |
no-host |
105,253 |
67,442 |
779,399 |
126,856 |
124,880 |
7.41 |
1.21 |
configure.cpython |
no-host |
2,224,676 |
2,253,605 |
6,262,455 |
2,230,247 |
2,218,489 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,366 |
391,143 |
645,917 |
413,157 |
412,515 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,530 |
5,473 |
23,775 |
6,965 |
6,905 |
3.64 |
1.07 |
configure.util-linux |
no-host |
2,102,658 |
2,263,592 |
5,374,173 |
1,997,454 |
1,990,659 |
2.56 |
0.95 |
configure.yash |
no-host |
256,578 |
245,165 |
388,041 |
258,126 |
257,306 |
1.51 |
1.01 |
hello-world |
no-host |
150 |
79 |
3,747 |
353 |
343 |
24.98 |
2.35 |
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,782 |
3,782 |
0 |
695 |
1,857 |
1,230 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.6 |
7.9 |
154,747 |
13,284 |
2,886 |
9,745 |
78,326 |
66,676 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,434 |
2 |
66 |
15.0 |
27.3 |
1,772,729 |
49,954 |
28,595 |
86,398 |
908,078 |
778,253 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,416 |
3 |
62 |
21.3 |
30.0 |
2,703,497 |
29,659 |
65,899 |
109,676 |
1,320,584 |
1,273,237 |
32,239 |
41 |
131,798 |
1 |
configure.ocaml |
no-host |
3,856 |
1 |
2 |
2.6 |
20.6 |
150,103 |
11,131 |
5,225 |
7,532 |
71,611 |
70,960 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,588 |
30,588 |
0 |
1,521 |
14,781 |
14,286 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,849 |
1 |
2 |
2.6 |
24.4 |
139,756 |
8,029 |
6,688 |
6,337 |
70,286 |
63,133 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.2 |
116,331 |
64,539 |
42,749 |
4,572 |
54,526 |
57,233 |
277 |
3 |
85,498 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,781 |
3,781 |
0 |
696 |
1,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
804 |
1 |
2 |
2.6 |
7.6 |
154,746 |
13,072 |
2,824 |
9,746 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,347 |
2 |
65 |
15.0 |
27.4 |
1,772,728 |
49,114 |
28,533 |
86,399 |
908,078 |
778,251 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,436 |
3 |
64 |
21.3 |
30.3 |
2,703,497 |
42,750 |
65,837 |
109,678 |
1,320,584 |
1,273,235 |
32,239 |
41 |
131,674 |
1 |
configure.ocaml |
no-host |
3,854 |
1 |
2 |
2.6 |
20.3 |
150,103 |
11,069 |
5,163 |
7,534 |
71,611 |
70,958 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,588 |
30,588 |
0 |
1,523 |
14,781 |
14,284 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,852 |
1 |
2 |
2.6 |
24.4 |
139,756 |
7,967 |
6,626 |
6,339 |
70,286 |
63,131 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,330 |
64,477 |
42,687 |
4,573 |
54,526 |
57,231 |
277 |
3 |
85,374 |
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 |
20 |
11 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
398 |
56 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
20 |
3 |
9.2 |
osh-native |
39 |
no-host |
abuild-print-help |
22 |
11 |
12 |
8.8 |
osh-native-souffle |
1 |
no-host |
bin-true |
678 |
514 |
194 |
2.9 |
bash |
9 |
no-host |
bin-true |
549 |
414 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,280 |
1,515 |
1,016 |
17.5 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
581 |
245 |
7.9 |
osh-native |
33 |
no-host |
bin-true |
804 |
566 |
254 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,053 |
9,062 |
6,396 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,136 |
9,079 |
6,483 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,814 |
17,588 |
13,063 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,434 |
9,076 |
6,629 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,347 |
8,975 |
6,554 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,812 |
1,536 |
1,316 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,760 |
1,576 |
1,203 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,625 |
2,123 |
1,709 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,856 |
1,617 |
1,277 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,854 |
1,647 |
1,244 |
20.3 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
40 |
8 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
27 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
141 |
57 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
21 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,076 |
8,812 |
5,745 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,935 |
9,199 |
6,235 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,260 |
20,594 |
11,735 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,416 |
8,858 |
5,755 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,436 |
8,757 |
5,875 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,823 |
1,070 |
760 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,790 |
1,081 |
713 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,436 |
1,556 |
920 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,849 |
1,017 |
836 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,852 |
1,067 |
789 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
52 |
36 |
16 |
17.8 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
5.8 |
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,537 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,590 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,169 |
0 |
0 |
0 |
16 |
0 |
40 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,126 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,253 |
0 |
0 |
0 |
8 |
0 |
1,990 |
66 |
bash |
9 |
no-host |
bin-true |
67,442 |
0 |
0 |
0 |
8 |
0 |
1,994 |
45 |
dash |
17 |
no-host |
bin-true |
779,399 |
0 |
0 |
0 |
8 |
0 |
1,998 |
236 |
osh-cpython |
25 |
no-host |
bin-true |
126,856 |
0 |
0 |
0 |
16 |
0 |
1,992 |
44 |
osh-native |
33 |
no-host |
bin-true |
124,880 |
0 |
0 |
0 |
16 |
0 |
1,995 |
142 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,224,676 |
0 |
0 |
0 |
32,928 |
0 |
14,475 |
1,007 |
bash |
10 |
no-host |
configure.cpython |
2,253,605 |
0 |
0 |
0 |
32,992 |
0 |
14,603 |
1,047 |
dash |
18 |
no-host |
configure.cpython |
6,262,455 |
0 |
0 |
0 |
27,512 |
0 |
13,267 |
1,100 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,230,247 |
0 |
0 |
0 |
27,520 |
0 |
13,185 |
1,033 |
osh-native |
34 |
no-host |
configure.cpython |
2,218,489 |
0 |
0 |
0 |
27,520 |
0 |
13,287 |
1,109 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,366 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
162 |
bash |
12 |
no-host |
configure.ocaml |
391,143 |
0 |
0 |
0 |
5,112 |
0 |
1,915 |
147 |
dash |
20 |
no-host |
configure.ocaml |
645,917 |
1 |
0 |
0 |
5,112 |
0 |
1,872 |
187 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,157 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
163 |
osh-native |
36 |
no-host |
configure.ocaml |
412,515 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
142 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,530 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,775 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,965 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,905 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,658 |
1 |
0 |
0 |
42,400 |
0 |
18,493 |
982 |
bash |
11 |
no-host |
configure.util-linux |
2,263,592 |
3 |
0 |
0 |
42,584 |
0 |
17,368 |
1,139 |
dash |
19 |
no-host |
configure.util-linux |
5,374,173 |
5 |
0 |
0 |
39,120 |
0 |
16,997 |
1,247 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,454 |
0 |
0 |
0 |
39,120 |
0 |
16,982 |
898 |
osh-native |
35 |
no-host |
configure.util-linux |
1,990,659 |
2 |
0 |
0 |
39,128 |
0 |
17,080 |
1,023 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,578 |
0 |
0 |
0 |
4,120 |
0 |
867 |
91 |
bash |
14 |
no-host |
configure.yash |
245,165 |
0 |
0 |
0 |
3,720 |
0 |
867 |
68 |
dash |
22 |
no-host |
configure.yash |
388,041 |
0 |
0 |
0 |
3,728 |
0 |
855 |
100 |
osh-cpython |
30 |
no-host |
configure.yash |
258,126 |
0 |
0 |
0 |
3,736 |
0 |
848 |
83 |
osh-native |
38 |
no-host |
configure.yash |
257,306 |
0 |
0 |
0 |
3,736 |
0 |
850 |
71 |
osh-native-souffle |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,747 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
353 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host