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 |
451 |
22 |
23.90 |
1.18 |
bin-true |
no-host |
675 |
540 |
2,274 |
819 |
3.37 |
1.21 |
configure.cpython |
no-host |
15,191 |
15,481 |
29,064 |
15,358 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,812 |
3,822 |
4,717 |
3,927 |
1.24 |
1.03 |
configure.tcc |
no-host |
47 |
43 |
194 |
49 |
4.10 |
1.03 |
configure.util-linux |
no-host |
14,262 |
15,161 |
31,197 |
14,499 |
2.19 |
1.02 |
configure.yash |
no-host |
1,832 |
1,809 |
2,454 |
1,846 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
33.63 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,512 |
1,096 |
22,900 |
3,187 |
9.12 |
1.27 |
bin-true |
no-host |
107,386 |
66,461 |
752,620 |
128,362 |
7.01 |
1.20 |
configure.cpython |
no-host |
2,218,634 |
2,245,715 |
6,140,225 |
2,220,495 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,743 |
391,446 |
639,663 |
414,034 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,557 |
5,482 |
23,319 |
6,964 |
3.56 |
1.06 |
configure.util-linux |
no-host |
2,104,924 |
2,258,907 |
5,321,820 |
1,999,278 |
2.53 |
0.95 |
configure.yash |
no-host |
256,669 |
244,079 |
384,249 |
257,805 |
1.50 |
1.00 |
hello-world |
no-host |
151 |
81 |
3,696 |
352 |
24.48 |
2.33 |
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,736 |
3,736 |
0 |
681 |
1,887 |
1,168 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.6 |
7.7 |
154,701 |
13,053 |
2,806 |
9,731 |
78,356 |
66,614 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,358 |
1 |
62 |
15.0 |
27.4 |
1,772,677 |
49,204 |
28,515 |
86,378 |
908,108 |
778,191 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,499 |
3 |
62 |
21.3 |
30.1 |
2,703,413 |
42,779 |
65,820 |
109,640 |
1,320,606 |
1,273,167 |
49,081 |
41 |
131,640 |
1 |
configure.ocaml |
no-host |
3,927 |
1 |
2 |
2.6 |
20.6 |
150,047 |
11,053 |
5,146 |
7,510 |
71,644 |
70,893 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,536 |
30,536 |
0 |
1,501 |
14,811 |
14,224 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,846 |
1 |
2 |
2.6 |
24.2 |
139,704 |
7,971 |
6,607 |
6,317 |
70,316 |
63,071 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,279 |
64,462 |
42,670 |
4,552 |
54,556 |
57,171 |
478 |
3 |
85,340 |
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 |
17 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
451 |
413 |
41 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
675 |
493 |
213 |
2.9 |
bash |
9 |
no-host |
bin-true |
540 |
422 |
127 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,274 |
1,494 |
1,047 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
594 |
237 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
15,191 |
9,155 |
6,429 |
27.1 |
bash |
10 |
no-host |
configure.cpython |
15,481 |
9,373 |
6,502 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,064 |
17,763 |
13,169 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,358 |
9,133 |
6,460 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,812 |
1,592 |
1,260 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,822 |
1,577 |
1,263 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,717 |
2,169 |
1,759 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,927 |
1,672 |
1,288 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
24 |
24 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
27 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
139 |
58 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
10 |
39 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,262 |
8,979 |
5,759 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,161 |
9,288 |
6,366 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,197 |
20,617 |
11,672 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,499 |
8,831 |
5,862 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,832 |
1,058 |
767 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,809 |
1,037 |
775 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,454 |
1,505 |
992 |
24.6 |
osh-cpython |
30 |
no-host |
configure.yash |
1,846 |
1,038 |
811 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
50 |
34 |
16 |
17.4 |
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,512 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,096 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,900 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,187 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,386 |
0 |
0 |
0 |
8 |
0 |
1,991 |
168 |
bash |
9 |
no-host |
bin-true |
66,461 |
0 |
0 |
0 |
8 |
0 |
1,992 |
40 |
dash |
17 |
no-host |
bin-true |
752,620 |
0 |
0 |
0 |
8 |
0 |
1,998 |
223 |
osh-cpython |
25 |
no-host |
bin-true |
128,362 |
0 |
0 |
0 |
16 |
0 |
1,989 |
78 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,634 |
0 |
0 |
0 |
32,928 |
0 |
14,126 |
905 |
bash |
10 |
no-host |
configure.cpython |
2,245,715 |
0 |
0 |
0 |
32,992 |
0 |
14,658 |
1,069 |
dash |
18 |
no-host |
configure.cpython |
6,140,225 |
0 |
0 |
0 |
27,512 |
0 |
13,246 |
1,306 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,220,495 |
0 |
0 |
0 |
27,520 |
0 |
13,262 |
1,002 |
osh-native |
4 |
no-host |
configure.ocaml |
410,743 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
238 |
bash |
12 |
no-host |
configure.ocaml |
391,446 |
0 |
0 |
0 |
5,112 |
0 |
1,939 |
166 |
dash |
20 |
no-host |
configure.ocaml |
639,663 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
199 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,034 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
172 |
osh-native |
5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
48 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,319 |
0 |
0 |
0 |
96 |
0 |
53 |
17 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,964 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,924 |
0 |
0 |
0 |
42,400 |
0 |
18,548 |
1,181 |
bash |
11 |
no-host |
configure.util-linux |
2,258,907 |
3 |
0 |
0 |
42,592 |
0 |
17,435 |
1,133 |
dash |
19 |
no-host |
configure.util-linux |
5,321,820 |
11 |
0 |
0 |
39,112 |
0 |
16,954 |
1,192 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,278 |
0 |
0 |
0 |
39,120 |
0 |
16,993 |
1,028 |
osh-native |
6 |
no-host |
configure.yash |
256,669 |
0 |
0 |
0 |
4,120 |
0 |
871 |
77 |
bash |
14 |
no-host |
configure.yash |
244,079 |
0 |
0 |
0 |
3,720 |
0 |
871 |
86 |
dash |
22 |
no-host |
configure.yash |
384,249 |
0 |
0 |
0 |
3,728 |
0 |
852 |
120 |
osh-cpython |
30 |
no-host |
configure.yash |
257,805 |
0 |
0 |
0 |
3,736 |
0 |
846 |
105 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,696 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host