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.66 |
1.16 |
bin-true |
no-host |
674 |
538 |
2,220 |
811 |
3.29 |
1.20 |
configure.cpython |
no-host |
14,878 |
14,929 |
28,229 |
15,081 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,809 |
3,717 |
4,585 |
3,835 |
1.20 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
191 |
48 |
4.03 |
1.02 |
configure.util-linux |
no-host |
13,891 |
14,787 |
30,764 |
14,242 |
2.21 |
1.03 |
configure.yash |
no-host |
1,800 |
1,756 |
2,413 |
1,807 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.35 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,533 |
1,094 |
22,925 |
3,183 |
9.05 |
1.26 |
bin-true |
no-host |
106,395 |
66,438 |
747,320 |
126,103 |
7.02 |
1.19 |
configure.cpython |
no-host |
2,223,787 |
2,242,192 |
6,143,461 |
2,221,289 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,061 |
391,189 |
636,519 |
413,811 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,535 |
5,477 |
23,223 |
6,953 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,104,256 |
2,259,120 |
5,307,710 |
1,994,032 |
2.52 |
0.95 |
configure.yash |
no-host |
255,481 |
245,045 |
384,930 |
258,657 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,723 |
351 |
24.49 |
2.31 |
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,727 |
3,727 |
0 |
681 |
1,877 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
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,081 |
1 |
60 |
15.0 |
27.5 |
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,242 |
2 |
59 |
21.3 |
30.1 |
2,703,404 |
44,766 |
65,812 |
109,640 |
1,320,596 |
1,273,168 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,835 |
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 |
48 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,501 |
14,801 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,807 |
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 |
22 |
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 |
19 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
451 |
396 |
58 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
674 |
504 |
201 |
3.0 |
bash |
9 |
no-host |
bin-true |
538 |
414 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,220 |
1,383 |
1,089 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
588 |
235 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,878 |
8,926 |
6,343 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,929 |
9,006 |
6,338 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,229 |
17,259 |
12,798 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,081 |
8,875 |
6,475 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,809 |
1,624 |
1,208 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,717 |
1,653 |
1,084 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,585 |
2,100 |
1,688 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,835 |
1,645 |
1,226 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
31 |
17 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
27 |
15 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
146 |
48 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
25 |
24 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,891 |
8,877 |
5,487 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
14,787 |
8,971 |
6,305 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,764 |
20,817 |
11,029 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,242 |
8,587 |
5,848 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,800 |
987 |
821 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,756 |
996 |
764 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,413 |
1,439 |
1,015 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,807 |
1,017 |
795 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
27 |
22 |
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,533 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,925 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,183 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,395 |
0 |
0 |
0 |
8 |
0 |
1,995 |
53 |
bash |
9 |
no-host |
bin-true |
66,438 |
0 |
0 |
0 |
8 |
0 |
1,984 |
50 |
dash |
17 |
no-host |
bin-true |
747,320 |
0 |
0 |
0 |
8 |
0 |
1,999 |
228 |
osh-cpython |
25 |
no-host |
bin-true |
126,103 |
0 |
0 |
0 |
16 |
0 |
1,987 |
45 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,787 |
0 |
0 |
0 |
32,928 |
0 |
14,507 |
1,020 |
bash |
10 |
no-host |
configure.cpython |
2,242,192 |
0 |
0 |
0 |
32,992 |
0 |
14,632 |
1,096 |
dash |
18 |
no-host |
configure.cpython |
6,143,461 |
0 |
0 |
0 |
27,512 |
0 |
13,303 |
1,215 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,289 |
0 |
0 |
0 |
27,520 |
0 |
13,289 |
1,272 |
osh-native |
4 |
no-host |
configure.ocaml |
410,061 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
203 |
bash |
12 |
no-host |
configure.ocaml |
391,189 |
0 |
0 |
0 |
5,112 |
0 |
1,904 |
204 |
dash |
20 |
no-host |
configure.ocaml |
636,519 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
182 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,811 |
0 |
0 |
0 |
5,120 |
0 |
1,913 |
226 |
osh-native |
5 |
no-host |
configure.tcc |
6,535 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,477 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,223 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,953 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,256 |
0 |
0 |
0 |
42,400 |
0 |
18,594 |
1,033 |
bash |
11 |
no-host |
configure.util-linux |
2,259,120 |
0 |
0 |
0 |
42,584 |
0 |
17,383 |
1,130 |
dash |
19 |
no-host |
configure.util-linux |
5,307,710 |
8 |
0 |
0 |
39,128 |
0 |
17,034 |
1,359 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,994,032 |
0 |
0 |
0 |
39,120 |
0 |
16,957 |
1,034 |
osh-native |
6 |
no-host |
configure.yash |
255,481 |
0 |
0 |
0 |
4,120 |
0 |
868 |
69 |
bash |
14 |
no-host |
configure.yash |
245,045 |
0 |
0 |
0 |
3,720 |
0 |
869 |
82 |
dash |
22 |
no-host |
configure.yash |
384,930 |
0 |
0 |
0 |
3,728 |
0 |
853 |
84 |
osh-cpython |
30 |
no-host |
configure.yash |
258,657 |
0 |
0 |
0 |
3,736 |
0 |
848 |
86 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,723 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host