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 |
465 |
23 |
24.27 |
1.18 |
bin-true |
no-host |
683 |
549 |
2,250 |
816 |
3.29 |
1.19 |
configure.cpython |
no-host |
15,037 |
15,170 |
28,494 |
15,300 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,791 |
3,729 |
4,605 |
3,826 |
1.21 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
193 |
49 |
4.06 |
1.03 |
configure.util-linux |
no-host |
13,984 |
14,910 |
31,178 |
14,437 |
2.23 |
1.03 |
configure.yash |
no-host |
1,814 |
1,775 |
2,449 |
1,822 |
1.35 |
1.00 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
31.94 |
1.96 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,568 |
1,138 |
23,418 |
3,245 |
9.12 |
1.26 |
bin-true |
no-host |
106,348 |
65,437 |
756,931 |
129,186 |
7.12 |
1.21 |
configure.cpython |
no-host |
2,222,252 |
2,243,441 |
6,119,222 |
2,236,811 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,446 |
390,668 |
638,060 |
413,172 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,539 |
5,464 |
23,143 |
6,969 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,100,288 |
2,264,727 |
5,311,366 |
2,012,834 |
2.53 |
0.96 |
configure.yash |
no-host |
256,627 |
244,786 |
384,807 |
257,730 |
1.50 |
1.00 |
hello-world |
no-host |
153 |
83 |
3,656 |
349 |
23.90 |
2.28 |
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,728 |
3,728 |
0 |
684 |
1,880 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.7 |
8.0 |
154,693 |
12,995 |
2,802 |
11,737 |
78,349 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,300 |
1 |
62 |
15.8 |
27.4 |
1,772,609 |
49,200 |
28,511 |
101,770 |
908,056 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,437 |
3 |
61 |
22.2 |
30.1 |
2,703,273 |
44,769 |
65,795 |
126,121 |
1,320,500 |
1,256,652 |
49,081 |
41 |
131,590 |
1 |
configure.ocaml |
no-host |
3,826 |
1 |
2 |
2.7 |
20.6 |
150,035 |
11,048 |
5,141 |
8,602 |
71,634 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,528 |
30,528 |
0 |
1,599 |
14,804 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,822 |
1 |
2 |
2.6 |
24.2 |
139,692 |
7,967 |
6,603 |
7,554 |
70,306 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,271 |
64,458 |
42,666 |
4,610 |
54,549 |
57,112 |
478 |
3 |
85,332 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
465 |
424 |
45 |
21.4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
21 |
2 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
683 |
516 |
198 |
2.8 |
bash |
9 |
no-host |
bin-true |
549 |
427 |
132 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,250 |
1,453 |
1,066 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
587 |
244 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,037 |
9,049 |
6,394 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,170 |
9,169 |
6,423 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,494 |
17,307 |
12,992 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,300 |
8,936 |
6,634 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,791 |
1,614 |
1,214 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,729 |
1,606 |
1,142 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,605 |
2,172 |
1,634 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,826 |
1,590 |
1,276 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
28 |
20 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
23 |
19 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
136 |
60 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
21 |
29 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,984 |
8,974 |
5,489 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,910 |
9,038 |
6,376 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,178 |
20,829 |
11,424 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,437 |
8,648 |
5,979 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,814 |
1,068 |
754 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,775 |
1,056 |
723 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,449 |
1,483 |
1,009 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,822 |
1,097 |
729 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
35 |
13 |
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,568 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,138 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,418 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,245 |
0 |
0 |
0 |
16 |
0 |
40 |
4 |
osh-native |
1 |
no-host |
bin-true |
106,348 |
0 |
0 |
0 |
8 |
0 |
1,988 |
68 |
bash |
9 |
no-host |
bin-true |
65,437 |
0 |
0 |
0 |
8 |
0 |
1,989 |
95 |
dash |
17 |
no-host |
bin-true |
756,931 |
0 |
0 |
0 |
8 |
0 |
1,998 |
90 |
osh-cpython |
25 |
no-host |
bin-true |
129,186 |
0 |
0 |
0 |
16 |
0 |
1,987 |
47 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,252 |
0 |
0 |
0 |
32,928 |
0 |
14,457 |
1,130 |
bash |
10 |
no-host |
configure.cpython |
2,243,441 |
0 |
0 |
0 |
32,992 |
0 |
14,671 |
1,195 |
dash |
18 |
no-host |
configure.cpython |
6,119,222 |
0 |
0 |
0 |
27,512 |
0 |
13,235 |
1,143 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,811 |
0 |
0 |
0 |
27,520 |
0 |
13,356 |
1,029 |
osh-native |
4 |
no-host |
configure.ocaml |
410,446 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
144 |
bash |
12 |
no-host |
configure.ocaml |
390,668 |
0 |
0 |
0 |
5,112 |
0 |
1,888 |
167 |
dash |
20 |
no-host |
configure.ocaml |
638,060 |
0 |
0 |
0 |
5,112 |
0 |
1,875 |
194 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,172 |
0 |
0 |
0 |
5,120 |
0 |
1,938 |
155 |
osh-native |
5 |
no-host |
configure.tcc |
6,539 |
0 |
0 |
0 |
104 |
0 |
48 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,464 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,143 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,969 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,288 |
0 |
0 |
0 |
42,408 |
0 |
18,626 |
1,097 |
bash |
11 |
no-host |
configure.util-linux |
2,264,727 |
0 |
0 |
0 |
42,592 |
0 |
17,525 |
1,066 |
dash |
19 |
no-host |
configure.util-linux |
5,311,366 |
16 |
0 |
0 |
39,112 |
0 |
17,145 |
1,283 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,012,834 |
1 |
0 |
0 |
39,120 |
0 |
17,051 |
1,055 |
osh-native |
6 |
no-host |
configure.yash |
256,627 |
0 |
0 |
0 |
4,120 |
0 |
871 |
66 |
bash |
14 |
no-host |
configure.yash |
244,786 |
0 |
0 |
0 |
3,720 |
0 |
873 |
82 |
dash |
22 |
no-host |
configure.yash |
384,807 |
0 |
0 |
0 |
3,728 |
0 |
857 |
119 |
osh-cpython |
30 |
no-host |
configure.yash |
257,730 |
0 |
0 |
0 |
3,736 |
0 |
854 |
85 |
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,656 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host