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 |
454 |
23 |
21 |
23.81 |
1.19 |
bin-true |
no-host |
676 |
542 |
2,292 |
813 |
824 |
3.39 |
1.20 |
configure.cpython |
no-host |
14,916 |
15,094 |
29,248 |
15,675 |
16,001 |
1.96 |
1.05 |
configure.ocaml |
no-host |
3,857 |
3,807 |
4,641 |
3,854 |
3,872 |
1.20 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
199 |
50 |
50 |
4.14 |
1.03 |
configure.util-linux |
no-host |
13,940 |
14,820 |
31,757 |
14,880 |
14,725 |
2.28 |
1.07 |
configure.yash |
no-host |
1,814 |
1,789 |
2,510 |
1,874 |
1,889 |
1.38 |
1.03 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
3 |
34.02 |
1.86 |
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,538 |
1,104 |
23,365 |
3,138 |
3,102 |
9.21 |
1.24 |
bin-true |
no-host |
105,399 |
65,451 |
777,017 |
124,815 |
124,821 |
7.37 |
1.18 |
configure.cpython |
no-host |
2,219,783 |
2,238,175 |
6,239,682 |
2,223,064 |
2,212,469 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,726 |
391,090 |
646,112 |
413,212 |
412,102 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,578 |
5,474 |
23,696 |
6,964 |
6,919 |
3.60 |
1.06 |
configure.util-linux |
no-host |
2,103,640 |
2,260,954 |
5,359,642 |
2,005,321 |
1,989,393 |
2.55 |
0.95 |
configure.yash |
no-host |
256,057 |
245,097 |
387,321 |
258,318 |
257,953 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
80 |
3,750 |
348 |
345 |
24.67 |
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.2 |
6.3 |
3,780 |
3,780 |
0 |
695 |
1,856 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.3 |
154,745 |
13,282 |
2,884 |
9,745 |
78,325 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,675 |
2 |
66 |
15.0 |
27.4 |
1,772,727 |
49,861 |
28,594 |
86,398 |
908,077 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,880 |
3 |
65 |
21.3 |
30.3 |
2,703,495 |
29,752 |
65,877 |
109,676 |
1,320,583 |
1,273,236 |
27,391 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,854 |
1 |
2 |
2.6 |
20.6 |
150,101 |
11,058 |
5,228 |
7,532 |
71,610 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,521 |
14,780 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,874 |
1 |
2 |
2.6 |
24.5 |
139,754 |
8,027 |
6,686 |
6,337 |
70,285 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,329 |
64,537 |
42,747 |
4,572 |
54,525 |
57,232 |
270 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,779 |
3,779 |
0 |
696 |
1,856 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.6 |
7.6 |
154,744 |
13,070 |
2,822 |
9,746 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,001 |
1 |
64 |
14.9 |
27.5 |
1,772,726 |
49,112 |
28,532 |
86,399 |
908,077 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,725 |
3 |
64 |
21.3 |
30.1 |
2,703,495 |
42,748 |
65,815 |
109,678 |
1,320,583 |
1,273,234 |
27,391 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,872 |
1 |
2 |
2.6 |
20.6 |
150,101 |
10,996 |
5,166 |
7,534 |
71,610 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,523 |
14,780 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,889 |
1 |
2 |
2.6 |
24.2 |
139,754 |
7,965 |
6,624 |
6,339 |
70,285 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,328 |
64,475 |
42,685 |
4,573 |
54,525 |
57,230 |
270 |
3 |
85,370 |
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 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
414 |
44 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
18 |
6 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
7 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
676 |
515 |
191 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
423 |
130 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,292 |
1,405 |
1,153 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
564 |
263 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
824 |
587 |
249 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,916 |
8,948 |
6,370 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,094 |
8,994 |
6,510 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,248 |
17,966 |
13,206 |
27.1 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,675 |
9,400 |
6,550 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
16,001 |
9,319 |
6,785 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,857 |
1,669 |
1,170 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,807 |
1,657 |
1,169 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,641 |
2,280 |
1,571 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,854 |
1,730 |
1,162 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,872 |
1,657 |
1,250 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
199 |
138 |
64 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
21 |
29 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
26 |
24 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,940 |
8,877 |
5,531 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,820 |
9,204 |
6,111 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,757 |
20,915 |
11,953 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,880 |
8,978 |
6,097 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,725 |
8,758 |
6,164 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,814 |
1,040 |
781 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,789 |
1,075 |
717 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,510 |
1,555 |
1,000 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,874 |
1,043 |
835 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,889 |
1,090 |
803 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.3 |
dash |
16 |
no-host |
hello-world |
52 |
36 |
16 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,538 |
0 |
0 |
0 |
16 |
0 |
41 |
6 |
bash |
15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,365 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,138 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,102 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,399 |
0 |
0 |
0 |
8 |
0 |
1,997 |
143 |
bash |
9 |
no-host |
bin-true |
65,451 |
0 |
0 |
0 |
8 |
0 |
1,986 |
66 |
dash |
17 |
no-host |
bin-true |
777,017 |
0 |
0 |
0 |
8 |
0 |
1,997 |
255 |
osh-cpython |
25 |
no-host |
bin-true |
124,815 |
0 |
0 |
0 |
16 |
0 |
1,993 |
62 |
osh-native |
33 |
no-host |
bin-true |
124,821 |
0 |
0 |
0 |
16 |
0 |
1,985 |
112 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,219,783 |
0 |
0 |
0 |
32,928 |
0 |
14,532 |
975 |
bash |
10 |
no-host |
configure.cpython |
2,238,175 |
0 |
0 |
0 |
32,992 |
0 |
14,595 |
1,077 |
dash |
18 |
no-host |
configure.cpython |
6,239,682 |
1 |
0 |
0 |
27,512 |
0 |
13,191 |
1,195 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,064 |
0 |
0 |
0 |
27,520 |
0 |
13,360 |
979 |
osh-native |
34 |
no-host |
configure.cpython |
2,212,469 |
0 |
0 |
0 |
27,520 |
0 |
13,291 |
954 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,726 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
162 |
bash |
12 |
no-host |
configure.ocaml |
391,090 |
0 |
0 |
0 |
5,112 |
0 |
1,927 |
146 |
dash |
20 |
no-host |
configure.ocaml |
646,112 |
1 |
0 |
0 |
5,112 |
0 |
1,859 |
315 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,212 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
153 |
osh-native |
36 |
no-host |
configure.ocaml |
412,102 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
162 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,578 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,474 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,696 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,964 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,919 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,103,640 |
1 |
0 |
0 |
42,400 |
0 |
18,738 |
1,145 |
bash |
11 |
no-host |
configure.util-linux |
2,260,954 |
0 |
0 |
0 |
42,584 |
0 |
17,502 |
1,102 |
dash |
19 |
no-host |
configure.util-linux |
5,359,642 |
7 |
0 |
0 |
39,112 |
0 |
16,985 |
1,236 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,005,321 |
0 |
0 |
0 |
39,120 |
0 |
16,970 |
933 |
osh-native |
35 |
no-host |
configure.util-linux |
1,989,393 |
1 |
0 |
0 |
39,128 |
0 |
16,987 |
966 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,057 |
0 |
0 |
0 |
4,120 |
0 |
871 |
89 |
bash |
14 |
no-host |
configure.yash |
245,097 |
0 |
0 |
0 |
3,720 |
0 |
874 |
79 |
dash |
22 |
no-host |
configure.yash |
387,321 |
0 |
0 |
0 |
3,728 |
0 |
855 |
103 |
osh-cpython |
30 |
no-host |
configure.yash |
258,318 |
0 |
0 |
0 |
3,736 |
0 |
852 |
72 |
osh-native |
38 |
no-host |
configure.yash |
257,953 |
0 |
0 |
0 |
3,736 |
0 |
852 |
82 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,750 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host