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 |
454 |
23 |
23.62 |
1.22 |
bin-true |
no-host |
698 |
547 |
2,243 |
820 |
3.21 |
1.17 |
configure.cpython |
no-host |
15,408 |
15,549 |
28,886 |
15,498 |
1.87 |
1.01 |
configure.ocaml |
no-host |
3,894 |
3,785 |
4,659 |
3,905 |
1.20 |
1.00 |
configure.tcc |
no-host |
49 |
42 |
195 |
50 |
4.00 |
1.04 |
configure.util-linux |
no-host |
14,433 |
15,313 |
31,474 |
14,690 |
2.18 |
1.02 |
configure.yash |
no-host |
1,852 |
1,796 |
2,478 |
1,888 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
30.36 |
1.70 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,503 |
1,106 |
23,273 |
3,203 |
9.30 |
1.28 |
bin-true |
no-host |
106,393 |
65,418 |
756,930 |
129,296 |
7.11 |
1.22 |
configure.cpython |
no-host |
2,217,695 |
2,244,075 |
6,138,904 |
2,226,532 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,525 |
390,982 |
637,001 |
413,785 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,567 |
5,465 |
23,184 |
6,997 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,099,403 |
2,262,685 |
5,327,778 |
2,018,330 |
2.54 |
0.96 |
configure.yash |
no-host |
256,662 |
244,479 |
384,652 |
257,832 |
1.50 |
1.00 |
hello-world |
no-host |
153 |
82 |
3,653 |
343 |
23.88 |
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.2 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.7 |
8.0 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,498 |
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 |
14,690 |
3 |
63 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,786 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,905 |
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.4 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,888 |
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 |
19 |
14 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
454 |
410 |
48 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
22 |
2 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
698 |
501 |
227 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
421 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,243 |
1,483 |
1,022 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
576 |
260 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,408 |
9,259 |
6,562 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,549 |
9,397 |
6,592 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,886 |
17,695 |
13,061 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,498 |
9,110 |
6,659 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,894 |
1,613 |
1,320 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,785 |
1,586 |
1,219 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,659 |
2,279 |
1,582 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,905 |
1,752 |
1,193 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
20 |
29 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
140 |
58 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
28 |
23 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,433 |
9,190 |
5,719 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,313 |
9,349 |
6,461 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,474 |
20,795 |
11,779 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,690 |
8,728 |
6,164 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,852 |
1,031 |
829 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,796 |
1,002 |
798 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,478 |
1,501 |
1,020 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,888 |
1,085 |
808 |
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 |
49 |
28 |
21 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,503 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,273 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,203 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,393 |
0 |
0 |
0 |
8 |
0 |
1,993 |
321 |
bash |
9 |
no-host |
bin-true |
65,418 |
0 |
0 |
0 |
8 |
0 |
1,989 |
177 |
dash |
17 |
no-host |
bin-true |
756,930 |
0 |
0 |
0 |
8 |
0 |
1,996 |
126 |
osh-cpython |
25 |
no-host |
bin-true |
129,296 |
0 |
0 |
0 |
16 |
0 |
1,991 |
51 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,695 |
0 |
0 |
0 |
32,928 |
0 |
14,492 |
1,149 |
bash |
10 |
no-host |
configure.cpython |
2,244,075 |
0 |
0 |
0 |
32,992 |
0 |
14,571 |
1,037 |
dash |
18 |
no-host |
configure.cpython |
6,138,904 |
0 |
0 |
0 |
27,512 |
0 |
13,332 |
1,262 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,226,532 |
0 |
0 |
0 |
27,520 |
0 |
13,201 |
960 |
osh-native |
4 |
no-host |
configure.ocaml |
410,525 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
183 |
bash |
12 |
no-host |
configure.ocaml |
390,982 |
0 |
0 |
0 |
5,112 |
0 |
1,911 |
172 |
dash |
20 |
no-host |
configure.ocaml |
637,001 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
173 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,785 |
0 |
0 |
0 |
5,120 |
0 |
1,939 |
166 |
osh-native |
5 |
no-host |
configure.tcc |
6,567 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,465 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,184 |
0 |
0 |
0 |
96 |
0 |
52 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,997 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,403 |
2 |
0 |
0 |
42,400 |
0 |
18,595 |
1,040 |
bash |
11 |
no-host |
configure.util-linux |
2,262,685 |
0 |
0 |
0 |
42,584 |
0 |
17,463 |
1,126 |
dash |
19 |
no-host |
configure.util-linux |
5,327,778 |
4 |
0 |
0 |
39,112 |
0 |
17,042 |
1,359 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,018,330 |
0 |
0 |
0 |
39,120 |
0 |
17,015 |
1,151 |
osh-native |
6 |
no-host |
configure.yash |
256,662 |
0 |
0 |
0 |
4,120 |
0 |
873 |
67 |
bash |
14 |
no-host |
configure.yash |
244,479 |
0 |
0 |
0 |
3,720 |
0 |
870 |
78 |
dash |
22 |
no-host |
configure.yash |
384,652 |
0 |
0 |
0 |
3,728 |
0 |
858 |
80 |
osh-cpython |
30 |
no-host |
configure.yash |
257,832 |
0 |
0 |
0 |
3,736 |
0 |
851 |
78 |
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,653 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host