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 |
453 |
23 |
23.92 |
1.20 |
bin-true |
no-host |
674 |
549 |
2,239 |
827 |
3.32 |
1.23 |
configure.cpython |
no-host |
15,067 |
15,162 |
28,686 |
15,404 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,819 |
3,747 |
4,652 |
3,874 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
194 |
49 |
4.12 |
1.04 |
configure.util-linux |
no-host |
14,090 |
14,969 |
31,271 |
14,491 |
2.22 |
1.03 |
configure.yash |
no-host |
1,832 |
1,773 |
2,455 |
1,845 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
30.85 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,526 |
1,132 |
23,274 |
3,209 |
9.21 |
1.27 |
bin-true |
no-host |
106,365 |
66,419 |
754,094 |
129,145 |
7.09 |
1.21 |
configure.cpython |
no-host |
2,222,057 |
2,247,144 |
6,143,222 |
2,234,016 |
2.76 |
1.01 |
configure.ocaml |
no-host |
411,244 |
390,708 |
638,509 |
412,998 |
1.55 |
1.00 |
configure.tcc |
no-host |
6,555 |
5,473 |
23,187 |
6,959 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,102,665 |
2,264,732 |
5,338,579 |
2,014,382 |
2.54 |
0.96 |
configure.yash |
no-host |
256,141 |
245,018 |
385,304 |
258,723 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
79 |
3,658 |
350 |
23.75 |
2.27 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
827 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,404 |
1 |
64 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,491 |
3 |
63 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,874 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,845 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.7 |
116,265 |
64,454 |
42,662 |
4,610 |
54,543 |
57,112 |
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 |
12 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
453 |
400 |
57 |
21.4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
9 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
674 |
526 |
179 |
3.0 |
bash |
9 |
no-host |
bin-true |
549 |
423 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,239 |
1,400 |
1,097 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
827 |
593 |
248 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,067 |
9,025 |
6,440 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,162 |
9,152 |
6,427 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,686 |
17,534 |
12,995 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,404 |
9,152 |
6,510 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,819 |
1,646 |
1,211 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,747 |
1,570 |
1,196 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,652 |
2,275 |
1,585 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,874 |
1,616 |
1,295 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
23 |
25 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
24 |
19 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
140 |
58 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
21 |
28 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,090 |
8,647 |
5,912 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
14,969 |
9,151 |
6,308 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,271 |
20,876 |
11,479 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,491 |
8,771 |
5,920 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,832 |
1,039 |
802 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,773 |
1,019 |
757 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,455 |
1,532 |
966 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,845 |
1,052 |
796 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.0 |
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,526 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,132 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,274 |
0 |
0 |
0 |
8 |
0 |
47 |
4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,209 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,365 |
0 |
0 |
0 |
8 |
0 |
1,991 |
126 |
bash |
9 |
no-host |
bin-true |
66,419 |
0 |
0 |
0 |
8 |
0 |
1,988 |
65 |
dash |
17 |
no-host |
bin-true |
754,094 |
0 |
0 |
0 |
8 |
0 |
2,000 |
296 |
osh-cpython |
25 |
no-host |
bin-true |
129,145 |
0 |
0 |
0 |
16 |
0 |
1,991 |
61 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,057 |
0 |
0 |
0 |
32,928 |
0 |
14,510 |
1,281 |
bash |
10 |
no-host |
configure.cpython |
2,247,144 |
0 |
0 |
0 |
32,992 |
0 |
14,625 |
1,157 |
dash |
18 |
no-host |
configure.cpython |
6,143,222 |
0 |
0 |
0 |
27,512 |
0 |
13,299 |
1,194 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,016 |
0 |
0 |
0 |
27,520 |
0 |
13,261 |
1,029 |
osh-native |
4 |
no-host |
configure.ocaml |
411,244 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
203 |
bash |
12 |
no-host |
configure.ocaml |
390,708 |
0 |
0 |
0 |
5,112 |
0 |
1,894 |
159 |
dash |
20 |
no-host |
configure.ocaml |
638,509 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
186 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,998 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
171 |
osh-native |
5 |
no-host |
configure.tcc |
6,555 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,187 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,959 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,102,665 |
0 |
0 |
0 |
42,400 |
0 |
18,573 |
1,022 |
bash |
11 |
no-host |
configure.util-linux |
2,264,732 |
0 |
0 |
0 |
42,584 |
0 |
17,557 |
1,056 |
dash |
19 |
no-host |
configure.util-linux |
5,338,579 |
5 |
0 |
0 |
39,112 |
0 |
17,068 |
1,405 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,014,382 |
1 |
0 |
0 |
39,120 |
0 |
17,046 |
1,041 |
osh-native |
6 |
no-host |
configure.yash |
256,141 |
0 |
0 |
0 |
4,120 |
0 |
868 |
81 |
bash |
14 |
no-host |
configure.yash |
245,018 |
0 |
0 |
0 |
3,720 |
0 |
866 |
70 |
dash |
22 |
no-host |
configure.yash |
385,304 |
0 |
0 |
0 |
3,728 |
0 |
856 |
91 |
osh-cpython |
30 |
no-host |
configure.yash |
258,723 |
0 |
0 |
0 |
3,736 |
0 |
853 |
80 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,658 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host