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 |
449 |
22 |
23.55 |
1.16 |
bin-true |
no-host |
679 |
547 |
2,232 |
821 |
3.29 |
1.21 |
configure.cpython |
no-host |
15,486 |
15,089 |
28,458 |
15,235 |
1.84 |
0.98 |
configure.ocaml |
no-host |
3,825 |
3,743 |
4,657 |
3,803 |
1.22 |
0.99 |
configure.tcc |
no-host |
48 |
42 |
190 |
49 |
3.96 |
1.02 |
configure.util-linux |
no-host |
14,169 |
14,997 |
31,062 |
14,370 |
2.19 |
1.01 |
configure.yash |
no-host |
1,832 |
1,776 |
2,410 |
1,825 |
1.32 |
1.00 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
29.24 |
1.72 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,520 |
1,103 |
23,086 |
3,171 |
9.16 |
1.26 |
bin-true |
no-host |
107,270 |
67,423 |
743,975 |
128,539 |
6.94 |
1.20 |
configure.cpython |
no-host |
2,225,472 |
2,239,625 |
6,056,774 |
2,242,866 |
2.72 |
1.01 |
configure.ocaml |
no-host |
410,247 |
391,004 |
633,910 |
413,079 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,556 |
5,470 |
22,991 |
6,976 |
3.51 |
1.06 |
configure.util-linux |
no-host |
2,105,792 |
2,261,084 |
5,287,049 |
2,013,428 |
2.51 |
0.96 |
configure.yash |
no-host |
256,692 |
244,592 |
383,403 |
259,025 |
1.49 |
1.01 |
hello-world |
no-host |
153 |
83 |
3,624 |
341 |
23.69 |
2.23 |
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.3 |
3,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.7 |
7.9 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,235 |
1 |
60 |
15.9 |
27.4 |
1,765,934 |
39,052 |
24,503 |
101,923 |
901,347 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,370 |
3 |
59 |
22.2 |
30.3 |
2,695,085 |
29,056 |
65,774 |
126,121 |
1,312,366 |
1,256,598 |
49,081 |
41 |
131,548 |
1 |
configure.ocaml |
no-host |
3,803 |
1 |
2 |
2.7 |
20.6 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,825 |
1 |
2 |
2.6 |
24.1 |
138,968 |
6,642 |
6,495 |
7,554 |
69,574 |
61,840 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,013 |
64,388 |
42,627 |
4,601 |
54,295 |
57,117 |
478 |
3 |
85,254 |
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.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
449 |
420 |
33 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
679 |
486 |
227 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
425 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,232 |
1,489 |
996 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
582 |
255 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,486 |
9,149 |
6,743 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,089 |
9,088 |
6,413 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,458 |
17,259 |
12,987 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,235 |
8,986 |
6,518 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,825 |
1,705 |
1,150 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,743 |
1,611 |
1,149 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,657 |
2,165 |
1,693 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,803 |
1,621 |
1,218 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
31 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
37 |
3 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
190 |
151 |
42 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,169 |
9,061 |
5,583 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,997 |
9,249 |
6,222 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,062 |
20,738 |
11,367 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,370 |
8,586 |
5,969 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,832 |
1,123 |
715 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,776 |
1,040 |
740 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,410 |
1,456 |
994 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,825 |
1,089 |
739 |
24.1 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
47 |
32 |
15 |
17.0 |
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,520 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,103 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,086 |
0 |
0 |
0 |
8 |
0 |
47 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,171 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,270 |
0 |
0 |
0 |
8 |
0 |
1,988 |
63 |
bash |
9 |
no-host |
bin-true |
67,423 |
0 |
0 |
0 |
8 |
0 |
1,989 |
60 |
dash |
17 |
no-host |
bin-true |
743,975 |
0 |
0 |
0 |
8 |
0 |
1,996 |
153 |
osh-cpython |
25 |
no-host |
bin-true |
128,539 |
0 |
0 |
0 |
16 |
0 |
1,992 |
114 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,472 |
0 |
0 |
0 |
32,928 |
0 |
14,570 |
1,074 |
bash |
10 |
no-host |
configure.cpython |
2,239,625 |
0 |
0 |
0 |
32,992 |
0 |
14,535 |
1,174 |
dash |
18 |
no-host |
configure.cpython |
6,056,774 |
0 |
0 |
0 |
27,512 |
0 |
13,419 |
1,233 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,242,866 |
0 |
0 |
0 |
27,520 |
0 |
13,299 |
921 |
osh-native |
4 |
no-host |
configure.ocaml |
410,247 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
169 |
bash |
12 |
no-host |
configure.ocaml |
391,004 |
0 |
0 |
0 |
5,112 |
0 |
1,881 |
215 |
dash |
20 |
no-host |
configure.ocaml |
633,910 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
190 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,079 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
166 |
osh-native |
5 |
no-host |
configure.tcc |
6,556 |
0 |
0 |
0 |
104 |
0 |
48 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
dash |
21 |
no-host |
configure.tcc |
22,991 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,105,792 |
2 |
0 |
0 |
42,400 |
0 |
18,585 |
1,082 |
bash |
11 |
no-host |
configure.util-linux |
2,261,084 |
2 |
0 |
0 |
42,584 |
0 |
17,422 |
1,107 |
dash |
19 |
no-host |
configure.util-linux |
5,287,049 |
10 |
0 |
0 |
39,112 |
0 |
17,042 |
1,216 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,428 |
2 |
0 |
0 |
39,120 |
0 |
17,052 |
972 |
osh-native |
6 |
no-host |
configure.yash |
256,692 |
0 |
0 |
0 |
4,120 |
0 |
873 |
64 |
bash |
14 |
no-host |
configure.yash |
244,592 |
0 |
0 |
0 |
3,720 |
0 |
869 |
84 |
dash |
22 |
no-host |
configure.yash |
383,403 |
0 |
0 |
0 |
3,728 |
0 |
861 |
106 |
osh-cpython |
30 |
no-host |
configure.yash |
259,025 |
0 |
0 |
0 |
3,736 |
0 |
855 |
95 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,624 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host