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 |
460 |
22 |
23.71 |
1.16 |
bin-true |
no-host |
678 |
548 |
2,286 |
816 |
3.37 |
1.20 |
configure.cpython |
no-host |
15,285 |
15,521 |
28,721 |
15,552 |
1.88 |
1.02 |
configure.ocaml |
no-host |
3,857 |
3,784 |
4,686 |
3,877 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
193 |
50 |
4.02 |
1.03 |
configure.util-linux |
no-host |
14,283 |
15,078 |
31,290 |
14,682 |
2.19 |
1.03 |
configure.yash |
no-host |
1,847 |
1,794 |
2,507 |
1,849 |
1.36 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.88 |
1.81 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,532 |
1,115 |
23,270 |
3,199 |
9.19 |
1.26 |
bin-true |
no-host |
108,368 |
65,399 |
746,554 |
126,138 |
6.89 |
1.16 |
configure.cpython |
no-host |
2,225,473 |
2,252,548 |
6,092,602 |
2,241,190 |
2.74 |
1.01 |
configure.ocaml |
no-host |
410,528 |
391,142 |
637,056 |
413,675 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,576 |
5,471 |
23,154 |
6,981 |
3.52 |
1.06 |
configure.util-linux |
no-host |
2,092,220 |
2,262,873 |
5,316,013 |
2,023,467 |
2.54 |
0.97 |
configure.yash |
no-host |
255,760 |
243,925 |
384,743 |
257,753 |
1.50 |
1.01 |
hello-world |
no-host |
156 |
82 |
3,653 |
347 |
23.42 |
2.22 |
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,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,552 |
1 |
62 |
15.8 |
27.3 |
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,682 |
3 |
63 |
22.2 |
30.4 |
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,877 |
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 |
50 |
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,849 |
1 |
2 |
2.6 |
24.4 |
139,692 |
7,967 |
6,603 |
7,554 |
70,306 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
460 |
427 |
38 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
678 |
514 |
199 |
3.0 |
bash |
9 |
no-host |
bin-true |
548 |
426 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,286 |
1,430 |
1,118 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
583 |
248 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,285 |
9,251 |
6,432 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,521 |
9,485 |
6,459 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,721 |
17,483 |
13,057 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,552 |
9,273 |
6,538 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,857 |
1,699 |
1,192 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,784 |
1,595 |
1,207 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,686 |
2,335 |
1,551 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,877 |
1,648 |
1,267 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
25 |
24 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
24 |
18 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
166 |
31 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
27 |
23 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,283 |
9,030 |
5,729 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,078 |
9,210 |
6,365 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,290 |
20,893 |
11,474 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,682 |
8,963 |
5,921 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,847 |
1,054 |
802 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,794 |
1,039 |
758 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,507 |
1,519 |
1,031 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,849 |
1,010 |
843 |
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 |
49 |
34 |
15 |
17.2 |
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,532 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,115 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,270 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,199 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
108,368 |
0 |
0 |
0 |
8 |
0 |
1,992 |
59 |
bash |
9 |
no-host |
bin-true |
65,399 |
0 |
0 |
0 |
8 |
0 |
1,983 |
125 |
dash |
17 |
no-host |
bin-true |
746,554 |
0 |
0 |
0 |
8 |
0 |
1,998 |
500 |
osh-cpython |
25 |
no-host |
bin-true |
126,138 |
0 |
0 |
0 |
16 |
0 |
1,995 |
118 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,473 |
0 |
0 |
0 |
32,928 |
0 |
14,571 |
1,165 |
bash |
10 |
no-host |
configure.cpython |
2,252,548 |
0 |
0 |
0 |
32,992 |
0 |
14,600 |
1,098 |
dash |
18 |
no-host |
configure.cpython |
6,092,602 |
0 |
0 |
0 |
27,512 |
0 |
13,297 |
1,345 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,241,190 |
0 |
0 |
0 |
27,520 |
0 |
13,330 |
1,027 |
osh-native |
4 |
no-host |
configure.ocaml |
410,528 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
193 |
bash |
12 |
no-host |
configure.ocaml |
391,142 |
0 |
0 |
0 |
5,112 |
0 |
1,910 |
162 |
dash |
20 |
no-host |
configure.ocaml |
637,056 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
177 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,675 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
184 |
osh-native |
5 |
no-host |
configure.tcc |
6,576 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,471 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,154 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,981 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,092,220 |
2 |
0 |
0 |
42,408 |
0 |
18,555 |
1,160 |
bash |
11 |
no-host |
configure.util-linux |
2,262,873 |
0 |
0 |
0 |
42,592 |
0 |
17,475 |
1,008 |
dash |
19 |
no-host |
configure.util-linux |
5,316,013 |
18 |
0 |
0 |
39,120 |
0 |
17,014 |
1,212 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,023,467 |
1 |
0 |
0 |
39,128 |
0 |
17,102 |
966 |
osh-native |
6 |
no-host |
configure.yash |
255,760 |
0 |
0 |
0 |
4,120 |
0 |
868 |
97 |
bash |
14 |
no-host |
configure.yash |
243,925 |
0 |
0 |
0 |
3,720 |
0 |
871 |
72 |
dash |
22 |
no-host |
configure.yash |
384,743 |
0 |
0 |
0 |
3,728 |
0 |
857 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
257,753 |
0 |
0 |
0 |
3,736 |
0 |
850 |
75 |
osh-native |
0 |
no-host |
hello-world |
156 |
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,653 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host