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 |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
452 |
22 |
23.84 |
1.19 |
bin-true |
no-host |
664 |
540 |
2,208 |
811 |
3.33 |
1.22 |
configure.cpython |
no-host |
14,840 |
14,944 |
28,489 |
15,030 |
1.92 |
1.01 |
configure.ocaml |
no-host |
3,804 |
3,704 |
4,565 |
3,793 |
1.20 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
190 |
49 |
4.03 |
1.04 |
configure.util-linux |
no-host |
13,971 |
14,755 |
31,037 |
14,252 |
2.22 |
1.02 |
configure.yash |
no-host |
1,813 |
1,749 |
2,410 |
1,805 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
29.66 |
1.78 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,524 |
1,136 |
23,351 |
3,219 |
9.25 |
1.28 |
bin-true |
no-host |
102,316 |
65,442 |
751,042 |
127,200 |
7.34 |
1.24 |
configure.cpython |
no-host |
2,221,480 |
2,248,306 |
6,094,657 |
2,241,792 |
2.74 |
1.01 |
configure.ocaml |
no-host |
410,768 |
391,455 |
637,161 |
413,680 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,546 |
5,482 |
23,113 |
6,976 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,093,441 |
2,263,168 |
5,320,188 |
2,010,760 |
2.54 |
0.96 |
configure.yash |
no-host |
255,114 |
244,126 |
385,293 |
256,762 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,662 |
349 |
24.09 |
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.3 |
6.2 |
3,724 |
3,724 |
0 |
684 |
1,876 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.7 |
8.0 |
154,689 |
12,992 |
2,799 |
11,737 |
78,345 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,030 |
1 |
58 |
15.8 |
27.4 |
1,772,605 |
49,197 |
28,508 |
101,770 |
908,052 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,252 |
3 |
58 |
22.2 |
30.1 |
2,703,269 |
44,766 |
65,812 |
126,121 |
1,320,496 |
1,256,652 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,793 |
1 |
2 |
2.7 |
20.6 |
150,031 |
11,045 |
5,138 |
8,602 |
71,630 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,524 |
30,524 |
0 |
1,599 |
14,800 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,805 |
1 |
2 |
2.6 |
24.2 |
139,688 |
7,964 |
6,600 |
7,554 |
70,302 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,267 |
64,455 |
42,663 |
4,610 |
54,545 |
57,112 |
478 |
3 |
85,326 |
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 |
13 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
410 |
44 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
664 |
490 |
202 |
2.9 |
bash |
9 |
no-host |
bin-true |
540 |
416 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,208 |
1,442 |
1,018 |
17.1 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
593 |
234 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,840 |
8,732 |
6,503 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,944 |
9,065 |
6,296 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,489 |
17,617 |
12,686 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,030 |
9,005 |
6,296 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,804 |
1,637 |
1,203 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,704 |
1,541 |
1,182 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,565 |
2,211 |
1,552 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,793 |
1,597 |
1,236 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
34 |
14 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
32 |
9 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
190 |
115 |
78 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
31 |
18 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,971 |
8,908 |
5,532 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,755 |
9,143 |
6,104 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,037 |
20,870 |
11,230 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,252 |
8,618 |
5,831 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,813 |
1,045 |
774 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,749 |
1,070 |
679 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,410 |
1,494 |
958 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,805 |
1,044 |
765 |
24.2 |
osh-native |
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 |
47 |
28 |
19 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
osh-native |
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,524 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,136 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,351 |
0 |
0 |
0 |
8 |
0 |
47 |
5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,219 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
102,316 |
0 |
0 |
0 |
8 |
0 |
1,992 |
88 |
bash |
9 |
no-host |
bin-true |
65,442 |
0 |
0 |
0 |
8 |
0 |
1,987 |
106 |
dash |
17 |
no-host |
bin-true |
751,042 |
0 |
0 |
0 |
8 |
0 |
1,999 |
138 |
osh-cpython |
25 |
no-host |
bin-true |
127,200 |
0 |
0 |
0 |
16 |
0 |
1,997 |
162 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,480 |
0 |
0 |
0 |
32,928 |
0 |
14,494 |
1,186 |
bash |
10 |
no-host |
configure.cpython |
2,248,306 |
0 |
0 |
0 |
32,992 |
0 |
14,616 |
1,038 |
dash |
18 |
no-host |
configure.cpython |
6,094,657 |
2 |
0 |
0 |
27,512 |
0 |
13,313 |
1,147 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,241,792 |
0 |
0 |
0 |
27,520 |
0 |
13,321 |
1,015 |
osh-native |
4 |
no-host |
configure.ocaml |
410,768 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
163 |
bash |
12 |
no-host |
configure.ocaml |
391,455 |
0 |
0 |
0 |
5,112 |
0 |
1,931 |
143 |
dash |
20 |
no-host |
configure.ocaml |
637,161 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
193 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,680 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
168 |
osh-native |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,113 |
0 |
0 |
0 |
96 |
0 |
53 |
15 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,441 |
0 |
0 |
0 |
42,400 |
0 |
18,545 |
1,167 |
bash |
11 |
no-host |
configure.util-linux |
2,263,168 |
0 |
0 |
0 |
42,592 |
0 |
17,406 |
1,027 |
dash |
19 |
no-host |
configure.util-linux |
5,320,188 |
13 |
0 |
0 |
39,112 |
0 |
17,095 |
1,329 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,010,760 |
1 |
0 |
0 |
39,120 |
0 |
17,058 |
962 |
osh-native |
6 |
no-host |
configure.yash |
255,114 |
0 |
0 |
0 |
4,120 |
0 |
875 |
78 |
bash |
14 |
no-host |
configure.yash |
244,126 |
0 |
0 |
0 |
3,720 |
0 |
868 |
144 |
dash |
22 |
no-host |
configure.yash |
385,293 |
0 |
0 |
0 |
3,728 |
0 |
856 |
99 |
osh-cpython |
30 |
no-host |
configure.yash |
256,762 |
0 |
0 |
0 |
3,736 |
0 |
852 |
98 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,662 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host