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 |
462 |
24 |
24.00 |
1.25 |
bin-true |
no-host |
680 |
541 |
2,241 |
818 |
3.30 |
1.20 |
configure.cpython |
no-host |
15,362 |
15,384 |
28,970 |
15,427 |
1.89 |
1.00 |
configure.ocaml |
no-host |
3,845 |
3,783 |
4,676 |
3,876 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
195 |
48 |
4.07 |
1.01 |
configure.util-linux |
no-host |
14,349 |
15,194 |
31,593 |
14,662 |
2.20 |
1.02 |
configure.yash |
no-host |
1,860 |
1,787 |
2,470 |
1,848 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.60 |
1.85 |
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,107 |
23,247 |
3,206 |
9.18 |
1.27 |
bin-true |
no-host |
107,325 |
65,322 |
751,307 |
128,212 |
7.00 |
1.19 |
configure.cpython |
no-host |
2,217,711 |
2,245,195 |
6,121,486 |
2,228,130 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,904 |
391,281 |
636,701 |
413,423 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,553 |
5,494 |
23,111 |
6,961 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,103,569 |
2,266,980 |
5,321,511 |
2,008,334 |
2.53 |
0.95 |
configure.yash |
no-host |
256,223 |
244,012 |
385,685 |
258,709 |
1.51 |
1.01 |
hello-world |
no-host |
154 |
82 |
3,663 |
347 |
23.79 |
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.2 |
3,724 |
3,724 |
0 |
684 |
1,875 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.7 |
8.0 |
154,690 |
12,994 |
2,801 |
11,737 |
78,344 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,427 |
1 |
62 |
15.8 |
27.4 |
1,772,609 |
49,199 |
28,510 |
101,773 |
908,051 |
762,785 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,662 |
3 |
62 |
22.2 |
30.1 |
2,703,273 |
44,768 |
65,794 |
126,124 |
1,320,495 |
1,256,654 |
49,081 |
41 |
131,588 |
1 |
configure.ocaml |
no-host |
3,876 |
1 |
2 |
2.7 |
20.6 |
150,032 |
11,047 |
5,140 |
8,602 |
71,629 |
69,801 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,525 |
30,525 |
0 |
1,599 |
14,799 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,848 |
1 |
2 |
2.6 |
24.4 |
139,691 |
7,966 |
6,602 |
7,556 |
70,301 |
61,834 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
24 |
1 |
2 |
2.8 |
8.8 |
116,274 |
64,458 |
42,665 |
4,616 |
54,544 |
57,114 |
478 |
3 |
85,330 |
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 |
7 |
12 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
462 |
411 |
54 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
15 |
9 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
680 |
519 |
194 |
2.9 |
bash |
9 |
no-host |
bin-true |
541 |
412 |
137 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,241 |
1,491 |
1,006 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
566 |
268 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,362 |
9,136 |
6,630 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,384 |
9,226 |
6,578 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,970 |
17,420 |
13,396 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,427 |
9,114 |
6,580 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,845 |
1,576 |
1,309 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,783 |
1,648 |
1,154 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,676 |
2,258 |
1,620 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,876 |
1,643 |
1,271 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
21 |
27 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
31 |
11 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
138 |
60 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,349 |
9,060 |
5,767 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,194 |
9,127 |
6,548 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,593 |
20,888 |
11,782 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,662 |
8,719 |
6,137 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,860 |
1,046 |
818 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,787 |
1,033 |
757 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,470 |
1,486 |
1,026 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,848 |
1,060 |
792 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
29 |
20 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
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 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,107 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,247 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,206 |
0 |
0 |
0 |
16 |
0 |
41 |
4 |
osh-native |
1 |
no-host |
bin-true |
107,325 |
0 |
0 |
0 |
8 |
0 |
1,997 |
48 |
bash |
9 |
no-host |
bin-true |
65,322 |
0 |
0 |
0 |
8 |
0 |
1,987 |
44 |
dash |
17 |
no-host |
bin-true |
751,307 |
0 |
0 |
0 |
8 |
0 |
1,993 |
224 |
osh-cpython |
25 |
no-host |
bin-true |
128,212 |
0 |
0 |
0 |
16 |
0 |
1,991 |
56 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,711 |
0 |
0 |
0 |
32,928 |
0 |
14,468 |
1,115 |
bash |
10 |
no-host |
configure.cpython |
2,245,195 |
0 |
0 |
0 |
32,992 |
0 |
14,604 |
1,116 |
dash |
18 |
no-host |
configure.cpython |
6,121,486 |
0 |
0 |
0 |
27,512 |
0 |
13,257 |
1,152 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,130 |
0 |
0 |
0 |
27,520 |
0 |
13,236 |
1,087 |
osh-native |
4 |
no-host |
configure.ocaml |
410,904 |
0 |
0 |
0 |
5,120 |
0 |
1,942 |
154 |
bash |
12 |
no-host |
configure.ocaml |
391,281 |
0 |
0 |
0 |
5,112 |
0 |
1,883 |
150 |
dash |
20 |
no-host |
configure.ocaml |
636,701 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
196 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,423 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
252 |
osh-native |
5 |
no-host |
configure.tcc |
6,553 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,494 |
0 |
0 |
0 |
96 |
0 |
47 |
6 |
dash |
21 |
no-host |
configure.tcc |
23,111 |
0 |
0 |
0 |
96 |
0 |
52 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,961 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,569 |
0 |
0 |
0 |
42,400 |
0 |
18,611 |
1,232 |
bash |
11 |
no-host |
configure.util-linux |
2,266,980 |
0 |
0 |
0 |
42,592 |
0 |
17,444 |
1,231 |
dash |
19 |
no-host |
configure.util-linux |
5,321,511 |
10 |
0 |
0 |
39,112 |
0 |
17,064 |
1,439 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,008,334 |
0 |
0 |
0 |
39,120 |
0 |
17,088 |
1,019 |
osh-native |
6 |
no-host |
configure.yash |
256,223 |
0 |
0 |
0 |
4,120 |
0 |
863 |
93 |
bash |
14 |
no-host |
configure.yash |
244,012 |
0 |
0 |
0 |
3,720 |
0 |
869 |
85 |
dash |
22 |
no-host |
configure.yash |
385,685 |
0 |
0 |
0 |
3,728 |
0 |
858 |
107 |
osh-cpython |
30 |
no-host |
configure.yash |
258,709 |
0 |
0 |
0 |
3,736 |
0 |
850 |
83 |
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,663 |
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