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 |
454 |
24 |
23.55 |
1.25 |
bin-true |
no-host |
673 |
547 |
2,238 |
824 |
3.33 |
1.22 |
configure.cpython |
no-host |
15,426 |
15,439 |
28,937 |
15,396 |
1.88 |
1.00 |
configure.ocaml |
no-host |
3,800 |
3,766 |
4,622 |
3,872 |
1.22 |
1.02 |
configure.tcc |
no-host |
48 |
43 |
201 |
52 |
4.18 |
1.08 |
configure.util-linux |
no-host |
14,350 |
15,119 |
31,842 |
14,754 |
2.22 |
1.03 |
configure.yash |
no-host |
1,823 |
1,822 |
2,463 |
1,904 |
1.35 |
1.04 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.58 |
1.87 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,540 |
1,130 |
24,784 |
3,412 |
9.76 |
1.34 |
bin-true |
no-host |
104,396 |
67,469 |
756,312 |
129,200 |
7.24 |
1.24 |
configure.cpython |
no-host |
2,217,907 |
2,239,616 |
6,201,306 |
2,243,310 |
2.80 |
1.01 |
configure.ocaml |
no-host |
410,406 |
390,875 |
643,881 |
415,266 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,552 |
5,463 |
26,214 |
7,448 |
4.00 |
1.14 |
configure.util-linux |
no-host |
2,093,562 |
2,260,947 |
5,689,823 |
2,077,805 |
2.72 |
0.99 |
configure.yash |
no-host |
256,832 |
244,078 |
388,705 |
259,771 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,687 |
349 |
24.26 |
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 |
824 |
1 |
2 |
2.7 |
8.1 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,396 |
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,754 |
3 |
61 |
22.2 |
30.3 |
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,872 |
1 |
2 |
2.7 |
20.4 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
52 |
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,904 |
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 |
24 |
1 |
2 |
2.8 |
8.9 |
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 |
11 |
9 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
421 |
37 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
18 |
7 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
673 |
502 |
202 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
419 |
137 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,238 |
1,430 |
1,064 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
566 |
272 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,426 |
9,067 |
6,761 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,439 |
9,315 |
6,555 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,937 |
17,600 |
13,341 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,396 |
9,081 |
6,623 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,800 |
1,675 |
1,164 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,766 |
1,553 |
1,230 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,622 |
2,250 |
1,588 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,872 |
1,663 |
1,253 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
27 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
34 |
9 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
201 |
150 |
56 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
32 |
20 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,350 |
8,811 |
6,015 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,119 |
9,270 |
6,346 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,842 |
21,932 |
11,839 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,754 |
9,175 |
6,021 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,823 |
1,114 |
717 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,822 |
1,032 |
791 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,463 |
1,494 |
1,021 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,904 |
1,111 |
799 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.3 |
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,540 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,130 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
24,784 |
0 |
0 |
0 |
8 |
0 |
53 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,412 |
0 |
0 |
0 |
16 |
0 |
47 |
0 |
osh-native |
1 |
no-host |
bin-true |
104,396 |
0 |
0 |
0 |
8 |
0 |
1,991 |
114 |
bash |
9 |
no-host |
bin-true |
67,469 |
0 |
0 |
0 |
8 |
0 |
1,987 |
54 |
dash |
17 |
no-host |
bin-true |
756,312 |
0 |
0 |
0 |
8 |
0 |
2,000 |
203 |
osh-cpython |
25 |
no-host |
bin-true |
129,200 |
0 |
0 |
0 |
16 |
0 |
1,989 |
103 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,907 |
1 |
0 |
0 |
32,928 |
0 |
14,514 |
1,279 |
bash |
10 |
no-host |
configure.cpython |
2,239,616 |
0 |
0 |
0 |
32,992 |
0 |
14,686 |
958 |
dash |
18 |
no-host |
configure.cpython |
6,201,306 |
0 |
0 |
0 |
27,512 |
0 |
13,433 |
1,134 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,243,310 |
0 |
0 |
0 |
27,520 |
0 |
13,500 |
1,019 |
osh-native |
4 |
no-host |
configure.ocaml |
410,406 |
0 |
0 |
0 |
5,120 |
0 |
1,954 |
146 |
bash |
12 |
no-host |
configure.ocaml |
390,875 |
0 |
0 |
0 |
5,112 |
0 |
1,873 |
175 |
dash |
20 |
no-host |
configure.ocaml |
643,881 |
0 |
0 |
0 |
5,112 |
0 |
1,886 |
174 |
osh-cpython |
28 |
no-host |
configure.ocaml |
415,266 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
167 |
osh-native |
5 |
no-host |
configure.tcc |
6,552 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,463 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
26,214 |
0 |
0 |
0 |
96 |
0 |
67 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,448 |
0 |
0 |
0 |
104 |
0 |
61 |
9 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,562 |
0 |
0 |
0 |
42,400 |
0 |
18,550 |
1,004 |
bash |
11 |
no-host |
configure.util-linux |
2,260,947 |
0 |
0 |
0 |
42,592 |
0 |
17,415 |
1,084 |
dash |
19 |
no-host |
configure.util-linux |
5,689,823 |
0 |
0 |
0 |
39,112 |
0 |
18,175 |
1,318 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,077,805 |
1 |
0 |
0 |
39,120 |
0 |
18,366 |
1,130 |
osh-native |
6 |
no-host |
configure.yash |
256,832 |
0 |
0 |
0 |
4,120 |
0 |
873 |
81 |
bash |
14 |
no-host |
configure.yash |
244,078 |
0 |
0 |
0 |
3,720 |
0 |
872 |
82 |
dash |
22 |
no-host |
configure.yash |
388,705 |
0 |
0 |
0 |
3,728 |
0 |
873 |
108 |
osh-cpython |
30 |
no-host |
configure.yash |
259,771 |
0 |
0 |
0 |
3,736 |
0 |
867 |
98 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,687 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host