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 |
23 |
23.59 |
1.21 |
bin-true |
no-host |
692 |
546 |
2,231 |
817 |
3.22 |
1.18 |
configure.cpython |
no-host |
14,912 |
14,954 |
28,293 |
15,135 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,787 |
3,726 |
4,599 |
3,805 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
200 |
52 |
4.24 |
1.10 |
configure.util-linux |
no-host |
13,898 |
14,817 |
31,362 |
14,513 |
2.26 |
1.04 |
configure.yash |
no-host |
1,827 |
1,762 |
2,432 |
1,812 |
1.33 |
0.99 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.30 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,557 |
1,106 |
24,774 |
3,397 |
9.69 |
1.33 |
bin-true |
no-host |
105,340 |
66,453 |
752,538 |
129,262 |
7.14 |
1.23 |
configure.cpython |
no-host |
2,222,917 |
2,240,239 |
6,188,492 |
2,234,840 |
2.78 |
1.01 |
configure.ocaml |
no-host |
410,551 |
391,674 |
644,966 |
414,618 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,549 |
5,481 |
26,184 |
7,460 |
4.00 |
1.14 |
configure.util-linux |
no-host |
2,096,065 |
2,253,673 |
5,701,745 |
2,073,953 |
2.72 |
0.99 |
configure.yash |
no-host |
256,232 |
244,531 |
388,346 |
259,910 |
1.52 |
1.01 |
hello-world |
no-host |
154 |
82 |
3,682 |
347 |
23.91 |
2.25 |
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 |
817 |
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,135 |
1 |
59 |
15.8 |
27.5 |
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,513 |
3 |
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 |
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 |
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,812 |
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.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 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
411 |
47 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
13 |
11 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
692 |
524 |
203 |
2.9 |
bash |
9 |
no-host |
bin-true |
546 |
417 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,231 |
1,530 |
961 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
587 |
244 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,912 |
9,048 |
6,264 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,954 |
9,027 |
6,348 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,293 |
17,404 |
12,833 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,135 |
8,964 |
6,464 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,787 |
1,606 |
1,221 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,726 |
1,584 |
1,162 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,599 |
2,256 |
1,558 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,805 |
1,622 |
1,226 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
25 |
23 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
42 |
22 |
20 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
200 |
157 |
48 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
37 |
16 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,898 |
8,703 |
5,661 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,817 |
9,050 |
6,271 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,362 |
21,610 |
11,656 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,513 |
9,120 |
5,836 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,827 |
1,022 |
811 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,762 |
965 |
800 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,432 |
1,556 |
927 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,812 |
1,061 |
755 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
36 |
12 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,557 |
0 |
0 |
0 |
16 |
0 |
41 |
4 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
24,774 |
0 |
0 |
0 |
8 |
0 |
53 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,397 |
0 |
0 |
0 |
16 |
0 |
47 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,340 |
0 |
0 |
0 |
8 |
0 |
1,994 |
58 |
bash |
9 |
no-host |
bin-true |
66,453 |
0 |
0 |
0 |
8 |
0 |
1,990 |
76 |
dash |
17 |
no-host |
bin-true |
752,538 |
0 |
0 |
0 |
8 |
0 |
2,000 |
168 |
osh-cpython |
25 |
no-host |
bin-true |
129,262 |
0 |
0 |
0 |
16 |
0 |
1,988 |
87 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,917 |
0 |
0 |
0 |
32,928 |
0 |
14,477 |
1,347 |
bash |
10 |
no-host |
configure.cpython |
2,240,239 |
1 |
0 |
0 |
32,992 |
0 |
14,593 |
1,202 |
dash |
18 |
no-host |
configure.cpython |
6,188,492 |
2 |
0 |
0 |
27,512 |
0 |
13,464 |
1,106 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,840 |
5 |
0 |
0 |
27,520 |
0 |
13,520 |
986 |
osh-native |
4 |
no-host |
configure.ocaml |
410,551 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
182 |
bash |
12 |
no-host |
configure.ocaml |
391,674 |
0 |
0 |
0 |
5,112 |
0 |
1,939 |
325 |
dash |
20 |
no-host |
configure.ocaml |
644,966 |
0 |
0 |
0 |
5,112 |
0 |
1,878 |
176 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,618 |
0 |
0 |
0 |
5,120 |
0 |
1,955 |
168 |
osh-native |
5 |
no-host |
configure.tcc |
6,549 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
26,184 |
0 |
0 |
0 |
96 |
0 |
67 |
15 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,460 |
0 |
0 |
0 |
104 |
0 |
61 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,065 |
0 |
0 |
0 |
42,400 |
0 |
18,554 |
1,147 |
bash |
11 |
no-host |
configure.util-linux |
2,253,673 |
0 |
0 |
0 |
42,584 |
0 |
17,418 |
1,047 |
dash |
19 |
no-host |
configure.util-linux |
5,701,745 |
9 |
0 |
0 |
39,120 |
0 |
18,194 |
1,330 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,073,953 |
0 |
0 |
0 |
39,128 |
0 |
18,408 |
1,128 |
osh-native |
6 |
no-host |
configure.yash |
256,232 |
0 |
0 |
0 |
4,120 |
0 |
881 |
110 |
bash |
14 |
no-host |
configure.yash |
244,531 |
0 |
0 |
0 |
3,720 |
0 |
866 |
81 |
dash |
22 |
no-host |
configure.yash |
388,346 |
0 |
0 |
0 |
3,728 |
0 |
873 |
96 |
osh-cpython |
30 |
no-host |
configure.yash |
259,910 |
0 |
0 |
0 |
3,736 |
0 |
868 |
86 |
osh-native |
0 |
no-host |
hello-world |
154 |
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 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host