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 |
23 |
9 |
434 |
21 |
19.17 |
0.93 |
bin-true |
no-host |
659 |
521 |
2,192 |
804 |
3.33 |
1.22 |
configure.cpython |
no-host |
14,622 |
14,709 |
27,644 |
14,796 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,754 |
3,665 |
4,515 |
3,742 |
1.20 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
187 |
47 |
3.94 |
0.98 |
configure.util-linux |
no-host |
13,627 |
14,439 |
30,165 |
14,036 |
2.21 |
1.03 |
configure.yash |
no-host |
1,729 |
1,743 |
2,362 |
1,789 |
1.37 |
1.03 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.84 |
1.91 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,539 |
1,133 |
23,254 |
3,269 |
9.16 |
1.29 |
bin-true |
no-host |
106,429 |
66,370 |
745,877 |
125,145 |
7.01 |
1.18 |
configure.cpython |
no-host |
2,223,948 |
2,252,144 |
6,127,604 |
2,216,110 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,422 |
391,079 |
638,294 |
413,202 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,470 |
23,252 |
6,961 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,096,081 |
2,251,422 |
5,315,872 |
2,007,110 |
2.54 |
0.96 |
configure.yash |
no-host |
256,505 |
243,496 |
384,808 |
258,237 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,682 |
350 |
24.07 |
2.29 |
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 |
681 |
1,877 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
804 |
1 |
2 |
2.6 |
8.0 |
154,692 |
12,992 |
2,799 |
9,731 |
78,346 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,796 |
1 |
57 |
15.0 |
27.4 |
1,772,668 |
49,197 |
28,508 |
86,378 |
908,098 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,036 |
2 |
57 |
21.3 |
30.1 |
2,703,404 |
44,766 |
65,812 |
109,640 |
1,320,596 |
1,273,168 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,742 |
1 |
2 |
2.6 |
20.6 |
150,038 |
11,045 |
5,138 |
7,510 |
71,634 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
47 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,501 |
14,801 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,789 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,964 |
6,600 |
6,317 |
70,306 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.0 |
116,270 |
64,455 |
42,663 |
4,552 |
54,546 |
57,172 |
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 |
23 |
21 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
434 |
399 |
38 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
659 |
482 |
207 |
2.9 |
bash |
9 |
no-host |
bin-true |
521 |
408 |
123 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,192 |
1,433 |
1,007 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
804 |
566 |
252 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,622 |
8,725 |
6,290 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,709 |
8,859 |
6,270 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
27,644 |
17,028 |
12,389 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,796 |
8,776 |
6,282 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,754 |
1,598 |
1,189 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,665 |
1,556 |
1,128 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,515 |
2,196 |
1,518 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,742 |
1,591 |
1,189 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
24 |
24 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
30 |
11 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
187 |
141 |
49 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
47 |
28 |
19 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,627 |
8,579 |
5,503 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,439 |
8,871 |
6,054 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,165 |
20,340 |
10,858 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,036 |
8,428 |
5,803 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,729 |
1,007 |
729 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,743 |
1,014 |
732 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,362 |
1,405 |
996 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,789 |
999 |
793 |
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 |
20 |
27 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,539 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,133 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,254 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,269 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,429 |
0 |
0 |
0 |
8 |
0 |
1,996 |
107 |
bash |
9 |
no-host |
bin-true |
66,370 |
0 |
0 |
0 |
8 |
0 |
1,989 |
34 |
dash |
17 |
no-host |
bin-true |
745,877 |
0 |
0 |
0 |
8 |
0 |
1,992 |
235 |
osh-cpython |
25 |
no-host |
bin-true |
125,145 |
0 |
0 |
0 |
16 |
0 |
1,991 |
105 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,948 |
0 |
0 |
0 |
32,928 |
0 |
14,607 |
1,186 |
bash |
10 |
no-host |
configure.cpython |
2,252,144 |
0 |
0 |
0 |
32,992 |
0 |
14,651 |
1,193 |
dash |
18 |
no-host |
configure.cpython |
6,127,604 |
0 |
0 |
0 |
27,512 |
0 |
13,317 |
1,215 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,216,110 |
0 |
0 |
0 |
27,520 |
0 |
13,298 |
1,318 |
osh-native |
4 |
no-host |
configure.ocaml |
410,422 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
176 |
bash |
12 |
no-host |
configure.ocaml |
391,079 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
158 |
dash |
20 |
no-host |
configure.ocaml |
638,294 |
1 |
0 |
0 |
5,112 |
0 |
1,862 |
193 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,202 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
157 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,252 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,961 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,081 |
0 |
0 |
0 |
42,400 |
0 |
18,589 |
1,071 |
bash |
11 |
no-host |
configure.util-linux |
2,251,422 |
0 |
0 |
0 |
42,584 |
0 |
17,453 |
1,048 |
dash |
19 |
no-host |
configure.util-linux |
5,315,872 |
11 |
0 |
0 |
39,120 |
0 |
17,187 |
1,194 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,007,110 |
1 |
0 |
0 |
39,120 |
0 |
17,050 |
971 |
osh-native |
6 |
no-host |
configure.yash |
256,505 |
0 |
0 |
0 |
4,120 |
0 |
869 |
87 |
bash |
14 |
no-host |
configure.yash |
243,496 |
0 |
0 |
0 |
3,720 |
0 |
869 |
79 |
dash |
22 |
no-host |
configure.yash |
384,808 |
0 |
0 |
0 |
3,728 |
0 |
855 |
111 |
osh-cpython |
30 |
no-host |
configure.yash |
258,237 |
0 |
0 |
0 |
3,736 |
0 |
854 |
78 |
osh-native |
0 |
no-host |
hello-world |
153 |
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 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host