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 |
20 |
10 |
472 |
22 |
21 |
24.14 |
1.15 |
bin-true |
no-host |
679 |
554 |
2,282 |
814 |
808 |
3.36 |
1.20 |
configure.cpython |
no-host |
15,503 |
15,683 |
29,317 |
15,641 |
15,758 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,933 |
3,788 |
4,772 |
3,912 |
3,919 |
1.21 |
0.99 |
configure.tcc |
no-host |
49 |
42 |
203 |
50 |
50 |
4.10 |
1.01 |
configure.util-linux |
no-host |
14,611 |
15,276 |
31,652 |
14,668 |
14,525 |
2.17 |
1.00 |
configure.yash |
no-host |
1,900 |
1,811 |
2,502 |
1,874 |
1,844 |
1.32 |
0.99 |
hello-world |
no-host |
2 |
1 |
54 |
3 |
3 |
35.19 |
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,535 |
1,127 |
23,446 |
3,155 |
3,072 |
9.25 |
1.24 |
bin-true |
no-host |
105,386 |
66,435 |
777,055 |
126,868 |
124,796 |
7.37 |
1.20 |
configure.cpython |
no-host |
2,231,598 |
2,245,720 |
6,238,968 |
2,232,131 |
2,214,390 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,907 |
391,361 |
645,116 |
413,289 |
413,002 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,580 |
5,489 |
23,692 |
6,953 |
6,851 |
3.60 |
1.06 |
configure.util-linux |
no-host |
2,102,675 |
2,261,756 |
5,358,168 |
2,000,561 |
1,992,519 |
2.55 |
0.95 |
configure.yash |
no-host |
256,553 |
245,194 |
387,005 |
258,093 |
257,296 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
84 |
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,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
1 |
2 |
2.6 |
8.0 |
154,745 |
13,282 |
2,884 |
9,745 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,641 |
2 |
63 |
15.0 |
27.1 |
1,772,727 |
49,861 |
28,594 |
86,398 |
908,078 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,668 |
3 |
60 |
21.3 |
30.3 |
2,703,495 |
29,752 |
65,877 |
109,676 |
1,320,584 |
1,273,235 |
27,391 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,912 |
1 |
2 |
2.6 |
20.6 |
150,101 |
11,058 |
5,228 |
7,532 |
71,611 |
70,958 |
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,781 |
14,284 |
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,286 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,329 |
64,537 |
42,747 |
4,572 |
54,526 |
57,231 |
270 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,779 |
3,779 |
0 |
696 |
1,857 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.6 |
8.0 |
154,744 |
13,070 |
2,822 |
9,746 |
78,326 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,758 |
1 |
63 |
14.9 |
27.3 |
1,772,726 |
49,112 |
28,532 |
86,399 |
908,078 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,525 |
3 |
62 |
21.3 |
30.1 |
2,703,495 |
42,748 |
65,815 |
109,678 |
1,320,584 |
1,273,233 |
27,391 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,919 |
1 |
2 |
2.6 |
20.4 |
150,101 |
10,996 |
5,166 |
7,534 |
71,611 |
70,956 |
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,781 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,844 |
1 |
2 |
2.6 |
24.4 |
139,754 |
7,965 |
6,624 |
6,339 |
70,286 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.5 |
116,328 |
64,475 |
42,685 |
4,573 |
54,526 |
57,229 |
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 |
20 |
18 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
472 |
428 |
46 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.8 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
679 |
513 |
196 |
2.9 |
bash |
9 |
no-host |
bin-true |
554 |
416 |
147 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,282 |
1,493 |
1,055 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
579 |
250 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
808 |
563 |
261 |
8.0 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,503 |
9,340 |
6,571 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,683 |
9,425 |
6,682 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,317 |
17,491 |
13,759 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,641 |
9,248 |
6,672 |
27.1 |
osh-native |
34 |
no-host |
configure.cpython |
15,758 |
9,244 |
6,691 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,933 |
1,619 |
1,349 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,788 |
1,616 |
1,187 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,772 |
2,342 |
1,646 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,912 |
1,665 |
1,286 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,919 |
1,688 |
1,263 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
17 |
33 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
203 |
141 |
66 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
26 |
25 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
32 |
18 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,611 |
9,096 |
5,994 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,276 |
9,205 |
6,567 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,652 |
21,059 |
11,713 |
30.5 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,668 |
8,743 |
6,108 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,525 |
8,711 |
5,997 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,900 |
1,109 |
799 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,811 |
1,058 |
756 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,502 |
1,524 |
1,020 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,874 |
1,122 |
757 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,844 |
1,051 |
797 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
54 |
24 |
30 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
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,535 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,127 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,446 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,155 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,072 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,386 |
0 |
0 |
0 |
8 |
0 |
1,993 |
82 |
bash |
9 |
no-host |
bin-true |
66,435 |
0 |
0 |
0 |
8 |
0 |
1,981 |
77 |
dash |
17 |
no-host |
bin-true |
777,055 |
0 |
0 |
0 |
8 |
0 |
2,003 |
241 |
osh-cpython |
25 |
no-host |
bin-true |
126,868 |
0 |
0 |
0 |
16 |
0 |
1,990 |
53 |
osh-native |
33 |
no-host |
bin-true |
124,796 |
0 |
0 |
0 |
16 |
0 |
1,992 |
46 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,231,598 |
0 |
0 |
0 |
32,928 |
0 |
14,514 |
1,107 |
bash |
10 |
no-host |
configure.cpython |
2,245,720 |
0 |
0 |
0 |
32,992 |
0 |
14,622 |
1,014 |
dash |
18 |
no-host |
configure.cpython |
6,238,968 |
0 |
0 |
0 |
27,512 |
0 |
13,297 |
1,218 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,131 |
0 |
0 |
0 |
27,520 |
0 |
13,230 |
1,025 |
osh-native |
34 |
no-host |
configure.cpython |
2,214,390 |
0 |
0 |
0 |
27,520 |
0 |
13,261 |
1,005 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,907 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
154 |
bash |
12 |
no-host |
configure.ocaml |
391,361 |
0 |
0 |
0 |
5,112 |
0 |
1,881 |
155 |
dash |
20 |
no-host |
configure.ocaml |
645,116 |
1 |
0 |
0 |
5,112 |
0 |
1,861 |
166 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,289 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
152 |
osh-native |
36 |
no-host |
configure.ocaml |
413,002 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
247 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,580 |
0 |
0 |
0 |
104 |
0 |
49 |
10 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,692 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,953 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
37 |
no-host |
configure.tcc |
6,851 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,675 |
1 |
0 |
0 |
42,400 |
0 |
18,634 |
1,105 |
bash |
11 |
no-host |
configure.util-linux |
2,261,756 |
0 |
0 |
0 |
42,584 |
0 |
17,449 |
1,077 |
dash |
19 |
no-host |
configure.util-linux |
5,358,168 |
5 |
0 |
0 |
39,112 |
0 |
17,020 |
1,157 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,000,561 |
2 |
0 |
0 |
39,120 |
0 |
16,986 |
935 |
osh-native |
35 |
no-host |
configure.util-linux |
1,992,519 |
0 |
0 |
0 |
39,136 |
0 |
16,988 |
895 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,553 |
0 |
0 |
0 |
4,120 |
0 |
871 |
245 |
bash |
14 |
no-host |
configure.yash |
245,194 |
0 |
0 |
0 |
3,720 |
0 |
871 |
82 |
dash |
22 |
no-host |
configure.yash |
387,005 |
0 |
0 |
0 |
3,728 |
0 |
850 |
84 |
osh-cpython |
30 |
no-host |
configure.yash |
258,093 |
0 |
0 |
0 |
3,736 |
0 |
849 |
71 |
osh-native |
38 |
no-host |
configure.yash |
257,296 |
0 |
0 |
0 |
3,736 |
0 |
846 |
82 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,750 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
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