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 |
20 |
10 |
464 |
23 |
23.52 |
1.14 |
bin-true |
no-host |
678 |
557 |
2,268 |
821 |
3.34 |
1.21 |
configure.cpython |
no-host |
15,586 |
15,800 |
29,540 |
15,766 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,946 |
3,772 |
4,810 |
3,894 |
1.22 |
0.99 |
configure.tcc |
no-host |
49 |
42 |
197 |
51 |
3.97 |
1.03 |
configure.util-linux |
no-host |
14,599 |
15,482 |
32,197 |
14,673 |
2.21 |
1.01 |
configure.yash |
no-host |
1,897 |
1,809 |
2,515 |
1,900 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
33.18 |
1.97 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,543 |
1,101 |
22,913 |
3,170 |
9.01 |
1.25 |
bin-true |
no-host |
105,414 |
66,473 |
746,345 |
127,195 |
7.08 |
1.21 |
configure.cpython |
no-host |
2,218,908 |
2,241,414 |
6,140,487 |
2,218,397 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,744 |
390,849 |
639,882 |
413,804 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,534 |
5,469 |
23,239 |
6,981 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,101,304 |
2,257,618 |
5,299,053 |
1,995,228 |
2.52 |
0.95 |
configure.yash |
no-host |
256,881 |
245,139 |
383,516 |
258,644 |
1.49 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,729 |
346 |
24.37 |
2.26 |
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.0 |
3,727 |
3,727 |
0 |
681 |
1,877 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.6 |
8.0 |
154,692 |
12,992 |
2,799 |
9,731 |
78,346 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,766 |
1 |
66 |
15.0 |
27.4 |
1,772,668 |
49,197 |
28,508 |
86,378 |
908,098 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,673 |
3 |
64 |
21.3 |
30.3 |
2,703,404 |
44,766 |
65,792 |
109,640 |
1,320,596 |
1,273,168 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,894 |
1 |
2 |
2.6 |
20.6 |
150,038 |
11,045 |
5,138 |
7,510 |
71,634 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,501 |
14,801 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,900 |
1 |
2 |
2.6 |
24.2 |
139,695 |
7,964 |
6,600 |
6,317 |
70,306 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,270 |
64,455 |
42,663 |
4,552 |
54,546 |
57,172 |
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 |
20 |
12 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.7 |
dash |
23 |
no-host |
abuild-print-help |
464 |
413 |
55 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
18 |
5 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
678 |
509 |
199 |
2.9 |
bash |
9 |
no-host |
bin-true |
557 |
417 |
147 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,268 |
1,539 |
991 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
577 |
260 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,586 |
9,321 |
6,675 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,800 |
9,480 |
6,758 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,540 |
17,965 |
13,507 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,766 |
9,210 |
6,820 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,946 |
1,693 |
1,287 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,772 |
1,639 |
1,150 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,810 |
2,326 |
1,701 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,894 |
1,711 |
1,223 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
197 |
143 |
57 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
25 |
26 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,599 |
9,121 |
5,951 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,482 |
9,503 |
6,472 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,197 |
21,291 |
12,009 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,673 |
8,918 |
5,947 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,897 |
1,093 |
814 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,809 |
1,025 |
787 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,515 |
1,523 |
1,034 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,900 |
1,119 |
783 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
51 |
42 |
9 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
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,543 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,913 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,170 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,414 |
0 |
0 |
0 |
8 |
0 |
1,986 |
80 |
bash |
9 |
no-host |
bin-true |
66,473 |
0 |
0 |
0 |
8 |
0 |
1,982 |
73 |
dash |
17 |
no-host |
bin-true |
746,345 |
0 |
0 |
0 |
8 |
0 |
1,998 |
178 |
osh-cpython |
25 |
no-host |
bin-true |
127,195 |
0 |
0 |
0 |
16 |
0 |
1,985 |
60 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,908 |
0 |
0 |
0 |
32,928 |
0 |
14,530 |
1,079 |
bash |
10 |
no-host |
configure.cpython |
2,241,414 |
0 |
0 |
0 |
32,992 |
0 |
14,630 |
1,032 |
dash |
18 |
no-host |
configure.cpython |
6,140,487 |
0 |
0 |
0 |
27,512 |
0 |
13,198 |
1,317 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,397 |
0 |
0 |
0 |
27,520 |
0 |
13,254 |
1,061 |
osh-native |
4 |
no-host |
configure.ocaml |
410,744 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
187 |
bash |
12 |
no-host |
configure.ocaml |
390,849 |
0 |
0 |
0 |
5,112 |
0 |
1,879 |
166 |
dash |
20 |
no-host |
configure.ocaml |
639,882 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
180 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,804 |
0 |
0 |
0 |
5,120 |
0 |
1,939 |
144 |
osh-native |
5 |
no-host |
configure.tcc |
6,534 |
0 |
0 |
0 |
104 |
0 |
49 |
9 |
bash |
13 |
no-host |
configure.tcc |
5,469 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,239 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,981 |
0 |
0 |
0 |
104 |
0 |
46 |
6 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,304 |
0 |
0 |
0 |
42,408 |
0 |
18,538 |
1,081 |
bash |
11 |
no-host |
configure.util-linux |
2,257,618 |
1 |
0 |
0 |
42,592 |
0 |
17,425 |
1,157 |
dash |
19 |
no-host |
configure.util-linux |
5,299,053 |
9 |
0 |
0 |
39,112 |
0 |
16,954 |
1,250 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,995,228 |
0 |
0 |
0 |
39,120 |
0 |
16,968 |
1,021 |
osh-native |
6 |
no-host |
configure.yash |
256,881 |
0 |
0 |
0 |
4,120 |
0 |
867 |
91 |
bash |
14 |
no-host |
configure.yash |
245,139 |
0 |
0 |
0 |
3,720 |
0 |
869 |
83 |
dash |
22 |
no-host |
configure.yash |
383,516 |
0 |
0 |
0 |
3,728 |
0 |
855 |
87 |
osh-cpython |
30 |
no-host |
configure.yash |
258,644 |
0 |
0 |
0 |
3,736 |
0 |
847 |
93 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,729 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host