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 |
9 |
461 |
22 |
24.02 |
1.16 |
bin-true |
no-host |
683 |
545 |
2,254 |
821 |
3.30 |
1.20 |
configure.cpython |
no-host |
15,078 |
15,135 |
28,577 |
15,172 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,816 |
3,750 |
4,650 |
3,834 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
192 |
49 |
3.99 |
1.03 |
configure.util-linux |
no-host |
14,040 |
14,912 |
31,306 |
14,409 |
2.23 |
1.03 |
configure.yash |
no-host |
1,838 |
1,775 |
2,456 |
1,847 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
30.70 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,528 |
1,117 |
23,414 |
3,277 |
9.26 |
1.30 |
bin-true |
no-host |
108,372 |
66,408 |
751,420 |
127,962 |
6.93 |
1.18 |
configure.cpython |
no-host |
2,218,878 |
2,246,454 |
6,146,446 |
2,121,106 |
2.77 |
0.96 |
configure.ocaml |
no-host |
410,675 |
391,114 |
639,129 |
412,711 |
1.56 |
1.00 |
configure.tcc |
no-host |
6,548 |
5,470 |
23,198 |
7,042 |
3.54 |
1.08 |
configure.util-linux |
no-host |
2,103,057 |
2,255,764 |
5,322,120 |
1,929,902 |
2.53 |
0.92 |
configure.yash |
no-host |
256,881 |
244,015 |
386,042 |
256,748 |
1.50 |
1.00 |
hello-world |
no-host |
151 |
84 |
3,657 |
354 |
24.22 |
2.34 |
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 in pool 3 |
num gc points |
num gc done |
gc threshold |
num growths |
hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.3 |
3,722 |
3,722 |
0 |
270 |
1,874 |
1,164 |
414 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.3 |
8.0 |
154,687 |
12,991 |
2,798 |
1,275 |
78,343 |
64,607 |
10,462 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,172 |
1 |
62 |
9.6 |
27.4 |
1,772,603 |
49,196 |
28,507 |
14,570 |
908,050 |
762,783 |
87,200 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,409 |
3 |
62 |
14.7 |
30.1 |
2,703,267 |
44,765 |
65,811 |
13,587 |
1,320,494 |
1,256,652 |
112,534 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,834 |
1 |
2 |
2.6 |
20.4 |
150,029 |
11,044 |
5,137 |
1,092 |
71,628 |
69,799 |
7,510 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
19.1 |
30,522 |
30,522 |
0 |
321 |
14,798 |
14,125 |
1,278 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,847 |
1 |
2 |
2.5 |
24.4 |
139,686 |
7,963 |
6,599 |
642 |
70,300 |
61,832 |
6,912 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.9 |
9.0 |
116,265 |
64,454 |
42,662 |
383 |
54,543 |
57,112 |
4,227 |
478 |
3 |
85,324 |
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 |
18 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
461 |
407 |
57 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
683 |
504 |
211 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
418 |
138 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,254 |
1,436 |
1,074 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
583 |
253 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,078 |
9,124 |
6,362 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,135 |
9,193 |
6,363 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,577 |
17,442 |
12,985 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,172 |
8,771 |
6,658 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,816 |
1,561 |
1,285 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,750 |
1,611 |
1,159 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,650 |
2,221 |
1,634 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,834 |
1,584 |
1,288 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
23 |
25 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
34 |
7 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
192 |
150 |
45 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
27 |
23 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,040 |
8,910 |
5,610 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,912 |
9,242 |
6,169 |
29.9 |
dash |
19 |
no-host |
configure.util-linux |
31,306 |
20,984 |
11,420 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,409 |
8,774 |
5,825 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,838 |
996 |
846 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,775 |
1,010 |
768 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,456 |
1,490 |
1,010 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,847 |
1,056 |
796 |
24.4 |
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 |
47 |
26 |
21 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,528 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,117 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,414 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,277 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
108,372 |
0 |
0 |
0 |
8 |
0 |
1,986 |
54 |
bash |
9 |
no-host |
bin-true |
66,408 |
0 |
0 |
0 |
8 |
0 |
1,992 |
43 |
dash |
17 |
no-host |
bin-true |
751,420 |
0 |
0 |
0 |
8 |
0 |
2,000 |
538 |
osh-cpython |
25 |
no-host |
bin-true |
127,962 |
0 |
0 |
0 |
16 |
0 |
1,994 |
214 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,878 |
0 |
0 |
0 |
32,928 |
0 |
14,491 |
1,228 |
bash |
10 |
no-host |
configure.cpython |
2,246,454 |
0 |
0 |
0 |
32,992 |
0 |
14,554 |
1,115 |
dash |
18 |
no-host |
configure.cpython |
6,146,446 |
0 |
0 |
0 |
27,512 |
0 |
13,269 |
1,166 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,121,106 |
0 |
0 |
0 |
27,520 |
0 |
13,406 |
1,038 |
osh-native |
4 |
no-host |
configure.ocaml |
410,675 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
174 |
bash |
12 |
no-host |
configure.ocaml |
391,114 |
0 |
0 |
0 |
5,112 |
0 |
1,925 |
194 |
dash |
20 |
no-host |
configure.ocaml |
639,129 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
175 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,711 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
152 |
osh-native |
5 |
no-host |
configure.tcc |
6,548 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,198 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,042 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,057 |
1 |
0 |
0 |
42,400 |
0 |
18,523 |
993 |
bash |
11 |
no-host |
configure.util-linux |
2,255,764 |
0 |
0 |
0 |
42,592 |
0 |
17,484 |
1,048 |
dash |
19 |
no-host |
configure.util-linux |
5,322,120 |
16 |
0 |
0 |
39,112 |
0 |
17,184 |
1,229 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,929,902 |
0 |
0 |
0 |
39,120 |
0 |
17,046 |
1,144 |
osh-native |
6 |
no-host |
configure.yash |
256,881 |
0 |
0 |
0 |
4,120 |
0 |
877 |
84 |
bash |
14 |
no-host |
configure.yash |
244,015 |
0 |
0 |
0 |
3,720 |
0 |
871 |
77 |
dash |
22 |
no-host |
configure.yash |
386,042 |
0 |
0 |
0 |
3,728 |
0 |
857 |
112 |
osh-cpython |
30 |
no-host |
configure.yash |
256,748 |
0 |
0 |
0 |
3,736 |
0 |
852 |
85 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
0 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,657 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
354 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host