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.41 |
1.16 |
bin-true |
no-host |
690 |
552 |
2,320 |
833 |
3.36 |
1.21 |
configure.cpython |
no-host |
15,783 |
15,769 |
29,975 |
16,013 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,961 |
3,862 |
4,830 |
3,935 |
1.22 |
0.99 |
configure.tcc |
no-host |
49 |
42 |
212 |
50 |
4.34 |
1.02 |
configure.util-linux |
no-host |
14,786 |
15,569 |
32,895 |
15,103 |
2.22 |
1.02 |
configure.yash |
no-host |
1,887 |
1,833 |
2,532 |
1,948 |
1.34 |
1.03 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
30.89 |
1.83 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,529 |
1,103 |
23,275 |
3,220 |
9.20 |
1.27 |
bin-true |
no-host |
104,257 |
65,549 |
752,922 |
127,206 |
7.22 |
1.22 |
configure.cpython |
no-host |
2,226,980 |
2,244,813 |
6,139,571 |
2,235,073 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,387 |
391,004 |
637,616 |
413,281 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,494 |
23,177 |
6,996 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,096,557 |
2,261,650 |
5,324,756 |
2,021,630 |
2.54 |
0.96 |
configure.yash |
no-host |
256,557 |
245,125 |
383,921 |
258,821 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,652 |
343 |
23.87 |
2.24 |
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.0 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
833 |
1 |
2 |
2.7 |
8.1 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,013 |
1 |
65 |
15.8 |
27.5 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,103 |
3 |
64 |
22.2 |
30.3 |
2,703,368 |
44,760 |
65,786 |
126,155 |
1,320,522 |
1,256,691 |
49,086 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,935 |
1 |
2 |
2.7 |
20.6 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,948 |
1 |
2 |
2.6 |
24.2 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,257 |
64,449 |
42,657 |
4,609 |
54,535 |
57,113 |
478 |
3 |
85,314 |
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 |
7 |
14 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
464 |
398 |
69 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
7 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
690 |
497 |
222 |
2.9 |
bash |
9 |
no-host |
bin-true |
552 |
430 |
132 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,320 |
1,550 |
1,039 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
833 |
580 |
267 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,783 |
9,354 |
6,830 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,769 |
9,544 |
6,653 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,975 |
18,026 |
13,870 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,013 |
9,464 |
6,806 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,961 |
1,739 |
1,261 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,862 |
1,608 |
1,272 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,830 |
2,276 |
1,769 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,935 |
1,720 |
1,253 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
29 |
20 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
19 |
24 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
212 |
149 |
66 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
35 |
15 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,786 |
9,210 |
6,051 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,569 |
9,355 |
6,718 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,895 |
21,797 |
12,241 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,103 |
8,972 |
6,315 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,887 |
1,081 |
813 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,833 |
1,032 |
804 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,532 |
1,570 |
1,007 |
24.1 |
osh-cpython |
30 |
no-host |
configure.yash |
1,948 |
1,082 |
870 |
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 |
50 |
46 |
4 |
17.2 |
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,529 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,103 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,275 |
0 |
0 |
0 |
8 |
0 |
47 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,220 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
104,257 |
0 |
0 |
0 |
8 |
0 |
1,990 |
47 |
bash |
9 |
no-host |
bin-true |
65,549 |
0 |
0 |
0 |
8 |
0 |
1,983 |
50 |
dash |
17 |
no-host |
bin-true |
752,922 |
0 |
0 |
0 |
8 |
0 |
1,998 |
87 |
osh-cpython |
25 |
no-host |
bin-true |
127,206 |
0 |
0 |
0 |
16 |
0 |
1,982 |
66 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,980 |
0 |
0 |
0 |
32,928 |
0 |
14,434 |
1,243 |
bash |
10 |
no-host |
configure.cpython |
2,244,813 |
0 |
0 |
0 |
32,992 |
0 |
14,608 |
1,027 |
dash |
18 |
no-host |
configure.cpython |
6,139,571 |
0 |
0 |
0 |
27,512 |
0 |
13,262 |
1,211 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,073 |
0 |
0 |
0 |
27,520 |
0 |
13,285 |
989 |
osh-native |
4 |
no-host |
configure.ocaml |
410,387 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
154 |
bash |
12 |
no-host |
configure.ocaml |
391,004 |
0 |
0 |
0 |
5,112 |
0 |
1,871 |
250 |
dash |
20 |
no-host |
configure.ocaml |
637,616 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
174 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,281 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
150 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
10 |
bash |
13 |
no-host |
configure.tcc |
5,494 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,177 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,996 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,557 |
1 |
0 |
0 |
42,408 |
0 |
18,617 |
1,173 |
bash |
11 |
no-host |
configure.util-linux |
2,261,650 |
2 |
0 |
0 |
42,592 |
0 |
17,423 |
1,103 |
dash |
19 |
no-host |
configure.util-linux |
5,324,756 |
14 |
0 |
0 |
39,120 |
0 |
17,053 |
1,482 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,021,630 |
0 |
0 |
0 |
39,144 |
0 |
17,090 |
1,152 |
osh-native |
6 |
no-host |
configure.yash |
256,557 |
0 |
0 |
0 |
4,120 |
0 |
871 |
79 |
bash |
14 |
no-host |
configure.yash |
245,125 |
0 |
0 |
0 |
3,720 |
0 |
867 |
79 |
dash |
22 |
no-host |
configure.yash |
383,921 |
0 |
0 |
0 |
3,728 |
0 |
855 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
258,821 |
0 |
0 |
0 |
3,736 |
0 |
854 |
103 |
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,652 |
0 |
0 |
0 |
8 |
0 |
7 |
0 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host