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 |
455 |
23 |
23.67 |
1.19 |
bin-true |
no-host |
669 |
543 |
2,230 |
819 |
3.33 |
1.22 |
configure.cpython |
no-host |
15,064 |
15,184 |
28,799 |
15,292 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,857 |
3,791 |
4,646 |
3,849 |
1.20 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
196 |
49 |
4.14 |
1.03 |
configure.util-linux |
no-host |
14,076 |
14,887 |
31,233 |
14,541 |
2.22 |
1.03 |
configure.yash |
no-host |
1,848 |
1,797 |
2,441 |
1,841 |
1.32 |
1.00 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.63 |
1.82 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,556 |
1,125 |
23,529 |
3,240 |
9.21 |
1.27 |
bin-true |
no-host |
102,306 |
66,414 |
746,900 |
128,218 |
7.30 |
1.25 |
configure.cpython |
no-host |
2,213,466 |
2,237,338 |
6,134,876 |
2,235,403 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,430 |
391,504 |
639,578 |
414,381 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,557 |
5,484 |
23,294 |
6,983 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,095,846 |
2,252,770 |
5,327,602 |
2,014,605 |
2.54 |
0.96 |
configure.yash |
no-host |
256,405 |
244,100 |
384,005 |
257,969 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,682 |
348 |
24.38 |
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.3 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.7 |
7.9 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,292 |
1 |
62 |
15.8 |
27.3 |
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,541 |
3 |
62 |
22.2 |
30.0 |
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,849 |
1 |
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.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,841 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
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 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
423 |
35 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
18 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
669 |
505 |
196 |
2.9 |
bash |
9 |
no-host |
bin-true |
543 |
422 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,230 |
1,436 |
1,051 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
590 |
246 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,064 |
9,144 |
6,306 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,184 |
9,178 |
6,423 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,799 |
17,540 |
13,114 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,292 |
9,154 |
6,407 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,857 |
1,658 |
1,242 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,791 |
1,618 |
1,190 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,646 |
2,274 |
1,579 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,849 |
1,609 |
1,279 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
24 |
24 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
33 |
9 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
155 |
44 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
21 |
28 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,076 |
8,832 |
5,720 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,887 |
9,133 |
6,245 |
29.9 |
dash |
19 |
no-host |
configure.util-linux |
31,233 |
20,653 |
11,659 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,541 |
8,806 |
5,926 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,848 |
1,095 |
761 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,797 |
1,065 |
736 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,441 |
1,526 |
959 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,841 |
1,046 |
799 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
29 |
21 |
17.4 |
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,556 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,125 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,529 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,240 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
102,306 |
0 |
0 |
0 |
8 |
0 |
1,985 |
80 |
bash |
9 |
no-host |
bin-true |
66,414 |
0 |
0 |
0 |
8 |
0 |
1,988 |
44 |
dash |
17 |
no-host |
bin-true |
746,900 |
0 |
0 |
0 |
8 |
0 |
2,000 |
105 |
osh-cpython |
25 |
no-host |
bin-true |
128,218 |
0 |
0 |
0 |
16 |
0 |
1,992 |
57 |
osh-native |
2 |
no-host |
configure.cpython |
2,213,466 |
0 |
0 |
0 |
32,928 |
0 |
14,531 |
1,087 |
bash |
10 |
no-host |
configure.cpython |
2,237,338 |
0 |
0 |
0 |
32,992 |
0 |
14,598 |
1,289 |
dash |
18 |
no-host |
configure.cpython |
6,134,876 |
1 |
0 |
0 |
27,512 |
0 |
13,335 |
1,076 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,403 |
0 |
0 |
0 |
27,520 |
0 |
13,350 |
1,007 |
osh-native |
4 |
no-host |
configure.ocaml |
410,430 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
203 |
bash |
12 |
no-host |
configure.ocaml |
391,504 |
0 |
0 |
0 |
5,112 |
0 |
1,890 |
158 |
dash |
20 |
no-host |
configure.ocaml |
639,578 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
207 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,381 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
168 |
osh-native |
5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,484 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,294 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,983 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,846 |
0 |
0 |
0 |
42,400 |
0 |
18,557 |
1,035 |
bash |
11 |
no-host |
configure.util-linux |
2,252,770 |
1 |
0 |
0 |
42,592 |
0 |
17,483 |
1,127 |
dash |
19 |
no-host |
configure.util-linux |
5,327,602 |
7 |
0 |
0 |
39,112 |
0 |
17,225 |
1,309 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,014,605 |
0 |
0 |
0 |
39,120 |
0 |
17,075 |
1,057 |
osh-native |
6 |
no-host |
configure.yash |
256,405 |
0 |
0 |
0 |
4,120 |
0 |
870 |
75 |
bash |
14 |
no-host |
configure.yash |
244,100 |
0 |
0 |
0 |
3,720 |
0 |
869 |
73 |
dash |
22 |
no-host |
configure.yash |
384,005 |
0 |
0 |
0 |
3,728 |
0 |
858 |
90 |
osh-cpython |
30 |
no-host |
configure.yash |
257,969 |
0 |
0 |
0 |
3,736 |
0 |
853 |
103 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,682 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host