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 |
20 |
10 |
466 |
23 |
23.40 |
1.16 |
bin-true |
no-host |
690 |
551 |
2,321 |
828 |
3.36 |
1.20 |
configure.cpython |
no-host |
15,779 |
15,768 |
30,028 |
15,940 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,927 |
3,868 |
4,792 |
3,942 |
1.22 |
1.00 |
configure.tcc |
no-host |
49 |
42 |
202 |
51 |
4.12 |
1.03 |
configure.util-linux |
no-host |
14,680 |
15,543 |
32,729 |
15,109 |
2.23 |
1.03 |
configure.yash |
no-host |
1,882 |
1,844 |
2,544 |
1,911 |
1.35 |
1.02 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
34.32 |
1.89 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,563 |
1,123 |
23,611 |
3,236 |
9.21 |
1.26 |
bin-true |
no-host |
107,405 |
67,419 |
753,863 |
127,227 |
7.02 |
1.18 |
configure.cpython |
no-host |
2,221,844 |
2,241,395 |
6,143,074 |
2,236,048 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,785 |
391,036 |
639,539 |
413,932 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,553 |
5,485 |
23,265 |
6,984 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,094,113 |
2,263,120 |
5,320,695 |
2,024,445 |
2.54 |
0.97 |
configure.yash |
no-host |
256,205 |
244,216 |
384,670 |
259,130 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,681 |
345 |
24.38 |
2.28 |
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,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
828 |
1 |
2 |
2.7 |
8.0 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,940 |
2 |
66 |
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 |
15,109 |
3 |
65 |
22.2 |
30.1 |
2,703,513 |
44,766 |
65,792 |
126,155 |
1,320,632 |
1,256,726 |
49,086 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,942 |
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 |
51 |
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,911 |
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 |
23 |
1 |
2 |
2.8 |
9.0 |
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 |
20 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
466 |
408 |
60 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
22 |
2 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
690 |
509 |
215 |
3.0 |
bash |
9 |
no-host |
bin-true |
551 |
411 |
149 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,321 |
1,466 |
1,119 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
828 |
583 |
259 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,779 |
9,306 |
6,864 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,768 |
9,512 |
6,669 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
30,028 |
18,292 |
13,692 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,940 |
9,314 |
6,898 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,927 |
1,691 |
1,270 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,868 |
1,601 |
1,284 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,792 |
2,250 |
1,757 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,942 |
1,664 |
1,318 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
25 |
18 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
202 |
152 |
53 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
22 |
29 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,680 |
9,202 |
5,961 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,543 |
9,546 |
6,483 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,729 |
21,663 |
12,215 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,109 |
8,994 |
6,310 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,882 |
1,098 |
793 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,844 |
1,103 |
745 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,544 |
1,559 |
1,030 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,911 |
1,164 |
751 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
52 |
39 |
13 |
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,563 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,123 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,611 |
0 |
0 |
0 |
8 |
0 |
47 |
16 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,236 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
107,405 |
0 |
0 |
0 |
8 |
0 |
1,993 |
149 |
bash |
9 |
no-host |
bin-true |
67,419 |
0 |
0 |
0 |
8 |
0 |
1,993 |
63 |
dash |
17 |
no-host |
bin-true |
753,863 |
0 |
0 |
0 |
8 |
0 |
2,002 |
342 |
osh-cpython |
25 |
no-host |
bin-true |
127,227 |
0 |
0 |
0 |
16 |
0 |
1,990 |
50 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,844 |
0 |
0 |
0 |
32,928 |
0 |
14,523 |
1,063 |
bash |
10 |
no-host |
configure.cpython |
2,241,395 |
0 |
0 |
0 |
32,992 |
0 |
14,647 |
1,165 |
dash |
18 |
no-host |
configure.cpython |
6,143,074 |
0 |
0 |
0 |
27,512 |
0 |
13,323 |
1,461 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,048 |
0 |
0 |
0 |
27,520 |
0 |
13,294 |
1,142 |
osh-native |
4 |
no-host |
configure.ocaml |
410,785 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
222 |
bash |
12 |
no-host |
configure.ocaml |
391,036 |
0 |
0 |
0 |
5,112 |
0 |
1,914 |
142 |
dash |
20 |
no-host |
configure.ocaml |
639,539 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
195 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,932 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
163 |
osh-native |
5 |
no-host |
configure.tcc |
6,553 |
0 |
0 |
0 |
104 |
0 |
49 |
6 |
bash |
13 |
no-host |
configure.tcc |
5,485 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,265 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
46 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,113 |
0 |
0 |
0 |
42,400 |
0 |
18,624 |
1,022 |
bash |
11 |
no-host |
configure.util-linux |
2,263,120 |
1 |
0 |
0 |
42,592 |
0 |
17,513 |
1,185 |
dash |
19 |
no-host |
configure.util-linux |
5,320,695 |
10 |
0 |
0 |
39,120 |
0 |
17,124 |
1,299 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,024,445 |
2 |
0 |
0 |
39,144 |
0 |
17,068 |
1,009 |
osh-native |
6 |
no-host |
configure.yash |
256,205 |
0 |
0 |
0 |
4,120 |
0 |
873 |
105 |
bash |
14 |
no-host |
configure.yash |
244,216 |
0 |
0 |
0 |
3,720 |
0 |
870 |
82 |
dash |
22 |
no-host |
configure.yash |
384,670 |
0 |
0 |
0 |
3,728 |
0 |
860 |
91 |
osh-cpython |
30 |
no-host |
configure.yash |
259,130 |
0 |
0 |
0 |
3,736 |
0 |
854 |
79 |
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,681 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host