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 |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
464 |
22 |
21 |
24.26 |
1.17 |
bin-true |
no-host |
694 |
566 |
2,227 |
813 |
815 |
3.21 |
1.17 |
configure.cpython |
no-host |
15,455 |
15,382 |
29,079 |
15,423 |
15,580 |
1.88 |
1.00 |
configure.ocaml |
no-host |
3,895 |
3,765 |
4,670 |
3,861 |
3,872 |
1.20 |
0.99 |
configure.tcc |
no-host |
48 |
41 |
194 |
49 |
48 |
4.08 |
1.03 |
configure.util-linux |
no-host |
14,654 |
15,063 |
31,577 |
14,544 |
14,478 |
2.15 |
0.99 |
configure.yash |
no-host |
1,868 |
1,773 |
2,495 |
1,854 |
1,848 |
1.34 |
0.99 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
30.61 |
1.75 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,533 |
1,093 |
23,252 |
3,260 |
3,128 |
9.18 |
1.29 |
bin-true |
no-host |
104,339 |
65,398 |
756,972 |
127,116 |
125,842 |
7.25 |
1.22 |
configure.cpython |
no-host |
2,222,998 |
2,245,620 |
6,212,224 |
2,229,239 |
2,208,747 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,375 |
391,275 |
645,912 |
413,436 |
412,804 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,537 |
5,480 |
23,507 |
6,979 |
6,935 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,106,691 |
2,263,241 |
5,323,201 |
1,997,523 |
1,995,552 |
2.53 |
0.95 |
configure.yash |
no-host |
256,790 |
245,158 |
386,088 |
258,955 |
258,477 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,733 |
352 |
343 |
24.56 |
2.32 |
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.2 |
6.2 |
3,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.1 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,423 |
2 |
62 |
15.0 |
27.5 |
1,772,722 |
49,854 |
28,587 |
86,397 |
908,073 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,544 |
3 |
61 |
21.3 |
30.3 |
2,703,490 |
29,745 |
65,870 |
109,675 |
1,320,579 |
1,273,236 |
27,391 |
41 |
131,740 |
1 |
configure.ocaml |
no-host |
3,861 |
1 |
2 |
2.6 |
20.4 |
150,096 |
11,051 |
5,221 |
7,531 |
71,606 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,581 |
30,581 |
0 |
1,520 |
14,776 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,854 |
1 |
2 |
2.6 |
24.4 |
139,749 |
8,020 |
6,679 |
6,336 |
70,281 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,324 |
64,530 |
42,740 |
4,571 |
54,521 |
57,232 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.6 |
7.7 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,580 |
1 |
62 |
14.9 |
27.4 |
1,772,721 |
49,105 |
28,525 |
86,398 |
908,073 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,478 |
3 |
60 |
21.3 |
30.3 |
2,703,490 |
42,741 |
65,828 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,872 |
1 |
2 |
2.6 |
20.4 |
150,096 |
10,989 |
5,159 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,848 |
1 |
2 |
2.6 |
24.2 |
139,749 |
7,958 |
6,617 |
6,338 |
70,281 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.8 |
116,323 |
64,468 |
42,678 |
4,572 |
54,521 |
57,230 |
270 |
3 |
85,356 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
464 |
404 |
63 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.8 |
osh-native-souffle |
1 |
no-host |
bin-true |
694 |
501 |
220 |
3.0 |
bash |
9 |
no-host |
bin-true |
566 |
417 |
146 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,227 |
1,432 |
1,053 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
569 |
259 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
815 |
583 |
242 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,455 |
9,292 |
6,514 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,382 |
9,408 |
6,357 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,079 |
17,828 |
13,088 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,423 |
9,095 |
6,571 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,580 |
9,071 |
6,569 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,895 |
1,652 |
1,261 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,765 |
1,549 |
1,235 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,670 |
2,317 |
1,561 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,861 |
1,602 |
1,297 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,872 |
1,694 |
1,206 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
17 |
25 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
134 |
63 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
33 |
17 |
19.1 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
27 |
22 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,654 |
9,246 |
5,802 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,063 |
9,194 |
6,347 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,577 |
21,178 |
11,455 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,544 |
8,770 |
5,929 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,478 |
8,625 |
6,016 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,868 |
1,095 |
774 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,773 |
1,028 |
748 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,495 |
1,555 |
980 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,854 |
1,049 |
809 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,848 |
1,030 |
816 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
32 |
17 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
5.9 |
osh-native-souffle |
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,533 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,252 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,260 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,128 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,339 |
0 |
0 |
0 |
8 |
0 |
1,993 |
64 |
bash |
9 |
no-host |
bin-true |
65,398 |
0 |
0 |
0 |
8 |
0 |
1,993 |
64 |
dash |
17 |
no-host |
bin-true |
756,972 |
0 |
0 |
0 |
8 |
0 |
2,000 |
95 |
osh-cpython |
25 |
no-host |
bin-true |
127,116 |
0 |
0 |
0 |
16 |
0 |
1,987 |
81 |
osh-native |
33 |
no-host |
bin-true |
125,842 |
0 |
0 |
0 |
16 |
0 |
1,990 |
56 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,222,998 |
0 |
0 |
0 |
32,928 |
0 |
14,466 |
1,181 |
bash |
10 |
no-host |
configure.cpython |
2,245,620 |
1 |
0 |
0 |
32,992 |
0 |
14,630 |
1,245 |
dash |
18 |
no-host |
configure.cpython |
6,212,224 |
0 |
0 |
0 |
27,512 |
0 |
13,278 |
1,172 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,239 |
0 |
0 |
0 |
27,520 |
0 |
13,214 |
1,036 |
osh-native |
34 |
no-host |
configure.cpython |
2,208,747 |
0 |
0 |
0 |
27,520 |
0 |
13,288 |
1,056 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,375 |
0 |
0 |
0 |
5,120 |
0 |
1,968 |
218 |
bash |
12 |
no-host |
configure.ocaml |
391,275 |
0 |
0 |
0 |
5,112 |
0 |
1,890 |
156 |
dash |
20 |
no-host |
configure.ocaml |
645,912 |
1 |
0 |
0 |
5,112 |
0 |
1,858 |
179 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,436 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
182 |
osh-native |
36 |
no-host |
configure.ocaml |
412,804 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
149 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,537 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,480 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,507 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,979 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,935 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,106,691 |
0 |
0 |
0 |
42,408 |
0 |
18,601 |
1,112 |
bash |
11 |
no-host |
configure.util-linux |
2,263,241 |
3 |
0 |
0 |
42,592 |
0 |
17,469 |
1,158 |
dash |
19 |
no-host |
configure.util-linux |
5,323,201 |
9 |
0 |
0 |
39,112 |
0 |
16,955 |
1,245 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,523 |
2 |
0 |
0 |
39,120 |
0 |
16,962 |
1,046 |
osh-native |
35 |
no-host |
configure.util-linux |
1,995,552 |
0 |
0 |
0 |
39,136 |
0 |
16,971 |
979 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,790 |
0 |
0 |
0 |
4,120 |
0 |
870 |
90 |
bash |
14 |
no-host |
configure.yash |
245,158 |
0 |
0 |
0 |
3,720 |
0 |
867 |
68 |
dash |
22 |
no-host |
configure.yash |
386,088 |
0 |
0 |
0 |
3,728 |
0 |
853 |
81 |
osh-cpython |
30 |
no-host |
configure.yash |
258,955 |
0 |
0 |
0 |
3,736 |
0 |
850 |
95 |
osh-native |
38 |
no-host |
configure.yash |
258,477 |
0 |
0 |
0 |
3,736 |
0 |
849 |
77 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,733 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host