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 |
449 |
22 |
23.41 |
1.15 |
bin-true |
no-host |
680 |
544 |
2,230 |
816 |
3.28 |
1.20 |
configure.cpython |
no-host |
15,172 |
15,225 |
28,337 |
15,203 |
1.87 |
1.00 |
configure.ocaml |
no-host |
3,781 |
3,738 |
4,605 |
3,805 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
192 |
49 |
3.98 |
1.02 |
configure.util-linux |
no-host |
13,977 |
14,834 |
31,013 |
14,368 |
2.22 |
1.03 |
configure.yash |
no-host |
1,870 |
1,766 |
2,431 |
1,826 |
1.30 |
0.98 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
32.65 |
1.97 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,512 |
1,132 |
23,454 |
3,211 |
9.34 |
1.28 |
bin-true |
no-host |
105,372 |
66,424 |
751,673 |
128,172 |
7.13 |
1.22 |
configure.cpython |
no-host |
2,219,363 |
2,242,069 |
6,137,505 |
2,232,541 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,045 |
391,127 |
639,900 |
413,573 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,567 |
5,474 |
23,278 |
6,986 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,094,563 |
2,249,605 |
5,325,392 |
2,017,449 |
2.54 |
0.96 |
configure.yash |
no-host |
256,275 |
245,007 |
384,483 |
258,725 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
85 |
3,680 |
348 |
24.37 |
2.30 |
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.0 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.7 |
8.0 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,203 |
1 |
60 |
15.8 |
27.4 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,368 |
2 |
59 |
22.2 |
30.1 |
2,703,404 |
44,766 |
65,792 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,805 |
0 |
2 |
2.7 |
20.6 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,826 |
1 |
2 |
2.6 |
24.2 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,326 |
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 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
449 |
396 |
57 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
680 |
495 |
216 |
3.0 |
bash |
9 |
no-host |
bin-true |
544 |
417 |
135 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,230 |
1,459 |
1,030 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
601 |
229 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,172 |
9,215 |
6,357 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,225 |
9,061 |
6,586 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,337 |
17,156 |
13,032 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,203 |
9,109 |
6,362 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,781 |
1,616 |
1,204 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,738 |
1,580 |
1,179 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,605 |
2,125 |
1,687 |
20.3 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,805 |
1,656 |
1,188 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
27 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
192 |
156 |
39 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,977 |
8,765 |
5,690 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,834 |
9,239 |
6,085 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,013 |
20,880 |
11,218 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,368 |
8,425 |
6,135 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,870 |
1,079 |
781 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,766 |
1,011 |
758 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,431 |
1,510 |
966 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,826 |
1,082 |
749 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
25 |
24 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
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,512 |
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,454 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,211 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
105,372 |
0 |
0 |
0 |
8 |
0 |
1,990 |
99 |
bash |
9 |
no-host |
bin-true |
66,424 |
0 |
0 |
0 |
8 |
0 |
1,986 |
31 |
dash |
17 |
no-host |
bin-true |
751,673 |
0 |
0 |
0 |
8 |
0 |
1,997 |
249 |
osh-cpython |
25 |
no-host |
bin-true |
128,172 |
0 |
0 |
0 |
16 |
0 |
1,990 |
114 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,363 |
5 |
0 |
0 |
32,928 |
0 |
14,500 |
1,353 |
bash |
10 |
no-host |
configure.cpython |
2,242,069 |
0 |
0 |
0 |
32,992 |
0 |
14,531 |
1,132 |
dash |
18 |
no-host |
configure.cpython |
6,137,505 |
1 |
0 |
0 |
27,512 |
0 |
13,283 |
1,142 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,541 |
0 |
0 |
0 |
27,520 |
0 |
13,332 |
1,165 |
osh-native |
4 |
no-host |
configure.ocaml |
410,045 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
161 |
bash |
12 |
no-host |
configure.ocaml |
391,127 |
0 |
0 |
0 |
5,112 |
0 |
1,933 |
140 |
dash |
20 |
no-host |
configure.ocaml |
639,900 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
164 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,573 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
182 |
osh-native |
5 |
no-host |
configure.tcc |
6,567 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,474 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,278 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,986 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,563 |
0 |
0 |
0 |
42,400 |
0 |
18,599 |
1,032 |
bash |
11 |
no-host |
configure.util-linux |
2,249,605 |
2 |
0 |
0 |
42,584 |
0 |
17,443 |
1,051 |
dash |
19 |
no-host |
configure.util-linux |
5,325,392 |
8 |
0 |
0 |
39,112 |
0 |
17,054 |
1,241 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,449 |
1 |
0 |
0 |
39,120 |
0 |
17,103 |
926 |
osh-native |
6 |
no-host |
configure.yash |
256,275 |
0 |
0 |
0 |
4,120 |
0 |
879 |
75 |
bash |
14 |
no-host |
configure.yash |
245,007 |
0 |
0 |
0 |
3,720 |
0 |
868 |
98 |
dash |
22 |
no-host |
configure.yash |
384,483 |
0 |
0 |
0 |
3,728 |
0 |
857 |
82 |
osh-cpython |
30 |
no-host |
configure.yash |
258,725 |
0 |
0 |
0 |
3,736 |
0 |
853 |
90 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,680 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host