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 |
17 |
8 |
342 |
18 |
20.12 |
1.08 |
bin-true |
no-host |
506 |
465 |
1,892 |
663 |
3.74 |
1.31 |
configure.cpython |
no-host |
11,585 |
11,711 |
23,311 |
12,446 |
2.01 |
1.07 |
configure.ocaml |
no-host |
3,148 |
3,149 |
3,768 |
3,106 |
1.20 |
0.99 |
configure.tcc |
no-host |
36 |
32 |
147 |
37 |
4.08 |
1.03 |
configure.util-linux |
no-host |
10,799 |
11,332 |
24,298 |
10,874 |
2.25 |
1.01 |
configure.yash |
no-host |
1,591 |
1,351 |
1,827 |
1,342 |
1.15 |
0.84 |
hello-world |
no-host |
1 |
1 |
36 |
2 |
34.30 |
2.10 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,562 |
1,093 |
22,919 |
3,147 |
8.95 |
1.23 |
bin-true |
no-host |
107,352 |
66,505 |
764,117 |
129,499 |
7.12 |
1.21 |
configure.cpython |
no-host |
2,222,447 |
2,247,389 |
6,199,062 |
2,220,581 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,612 |
391,974 |
641,410 |
413,671 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,515 |
5,496 |
23,313 |
6,988 |
3.58 |
1.07 |
configure.util-linux |
no-host |
2,100,914 |
2,262,411 |
5,334,473 |
2,000,604 |
2.54 |
0.95 |
configure.yash |
no-host |
256,606 |
244,948 |
386,063 |
258,645 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
80 |
3,697 |
351 |
24.32 |
2.31 |
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 |
2 |
0 |
0 |
0.3 |
6.3 |
3,759 |
3,759 |
0 |
684 |
1,901 |
1,174 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
663 |
1 |
2 |
2.6 |
8.3 |
154,724 |
13,074 |
2,826 |
9,734 |
78,370 |
66,620 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
12,446 |
1 |
64 |
15.0 |
27.5 |
1,772,700 |
49,116 |
28,536 |
86,381 |
908,122 |
778,197 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
10,874 |
3 |
57 |
21.3 |
30.3 |
2,703,436 |
42,753 |
65,840 |
109,643 |
1,320,620 |
1,273,173 |
27,391 |
41 |
131,680 |
1 |
configure.ocaml |
no-host |
3,106 |
0 |
1 |
2.6 |
20.7 |
150,070 |
11,001 |
5,171 |
7,513 |
71,658 |
70,899 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
37 |
0 |
0 |
1.3 |
19.5 |
30,559 |
30,559 |
0 |
1,504 |
14,825 |
14,230 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,342 |
1 |
2 |
2.6 |
24.6 |
139,727 |
7,969 |
6,628 |
6,320 |
70,330 |
63,077 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
18 |
0 |
2 |
2.8 |
9.2 |
116,302 |
64,479 |
42,689 |
4,554 |
54,570 |
57,178 |
270 |
3 |
85,378 |
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 |
17 |
10 |
7 |
4.6 |
bash |
15 |
no-host |
abuild-print-help |
8 |
7 |
1 |
3.6 |
dash |
23 |
no-host |
abuild-print-help |
342 |
304 |
41 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
18 |
14 |
5 |
9.2 |
osh-native |
1 |
no-host |
bin-true |
506 |
383 |
140 |
3.0 |
bash |
9 |
no-host |
bin-true |
465 |
360 |
108 |
1.6 |
dash |
17 |
no-host |
bin-true |
1,892 |
1,203 |
927 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
663 |
464 |
207 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
11,585 |
7,392 |
4,488 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
11,711 |
7,573 |
4,435 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
23,311 |
14,573 |
10,377 |
27.6 |
osh-cpython |
26 |
no-host |
configure.cpython |
12,446 |
7,878 |
4,803 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,148 |
1,330 |
845 |
20.7 |
bash |
12 |
no-host |
configure.ocaml |
3,149 |
1,318 |
842 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
3,768 |
1,810 |
1,136 |
20.7 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,106 |
1,287 |
844 |
20.7 |
osh-native |
5 |
no-host |
configure.tcc |
36 |
16 |
21 |
19.5 |
bash |
13 |
no-host |
configure.tcc |
32 |
23 |
10 |
19.5 |
dash |
21 |
no-host |
configure.tcc |
147 |
106 |
45 |
19.5 |
osh-cpython |
29 |
no-host |
configure.tcc |
37 |
25 |
13 |
19.5 |
osh-native |
3 |
no-host |
configure.util-linux |
10,799 |
7,383 |
3,734 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
11,332 |
7,430 |
4,229 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
24,298 |
16,390 |
8,903 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
10,874 |
6,864 |
4,133 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,591 |
981 |
618 |
24.6 |
bash |
14 |
no-host |
configure.yash |
1,351 |
818 |
534 |
24.5 |
dash |
22 |
no-host |
configure.yash |
1,827 |
1,167 |
703 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,342 |
845 |
499 |
24.6 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.7 |
dash |
16 |
no-host |
hello-world |
36 |
20 |
15 |
17.5 |
osh-cpython |
24 |
no-host |
hello-world |
2 |
2 |
0 |
6.3 |
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,562 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,919 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,147 |
0 |
0 |
0 |
16 |
0 |
33 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,352 |
0 |
0 |
0 |
8 |
0 |
2,000 |
56 |
bash |
9 |
no-host |
bin-true |
66,505 |
0 |
0 |
0 |
8 |
0 |
2,000 |
39 |
dash |
17 |
no-host |
bin-true |
764,117 |
0 |
0 |
0 |
8 |
0 |
2,007 |
150 |
osh-cpython |
25 |
no-host |
bin-true |
129,499 |
0 |
0 |
0 |
16 |
0 |
2,001 |
63 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,447 |
0 |
0 |
0 |
32,928 |
0 |
14,144 |
1,360 |
bash |
10 |
no-host |
configure.cpython |
2,247,389 |
0 |
0 |
0 |
32,992 |
0 |
14,600 |
1,508 |
dash |
18 |
no-host |
configure.cpython |
6,199,062 |
0 |
0 |
0 |
27,512 |
0 |
16,176 |
5,249 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,220,581 |
0 |
0 |
0 |
27,520 |
0 |
13,577 |
1,431 |
osh-native |
4 |
no-host |
configure.ocaml |
410,612 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
253 |
bash |
12 |
no-host |
configure.ocaml |
391,974 |
0 |
0 |
0 |
5,112 |
0 |
1,929 |
215 |
dash |
20 |
no-host |
configure.ocaml |
641,410 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
248 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,671 |
0 |
0 |
0 |
5,120 |
0 |
1,905 |
253 |
osh-native |
5 |
no-host |
configure.tcc |
6,515 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,496 |
0 |
0 |
0 |
96 |
0 |
47 |
5 |
dash |
21 |
no-host |
configure.tcc |
23,313 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,988 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,914 |
0 |
0 |
0 |
42,400 |
0 |
18,278 |
1,555 |
bash |
11 |
no-host |
configure.util-linux |
2,262,411 |
0 |
0 |
0 |
42,584 |
0 |
18,978 |
3,233 |
dash |
19 |
no-host |
configure.util-linux |
5,334,473 |
7 |
0 |
0 |
39,120 |
0 |
17,215 |
1,855 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,000,604 |
0 |
0 |
0 |
39,128 |
0 |
17,098 |
1,176 |
osh-native |
6 |
no-host |
configure.yash |
256,606 |
0 |
0 |
0 |
4,120 |
0 |
867 |
86 |
bash |
14 |
no-host |
configure.yash |
244,948 |
0 |
0 |
0 |
3,720 |
0 |
862 |
81 |
dash |
22 |
no-host |
configure.yash |
386,063 |
0 |
0 |
0 |
3,728 |
0 |
857 |
111 |
osh-cpython |
30 |
no-host |
configure.yash |
258,645 |
0 |
0 |
0 |
3,736 |
0 |
851 |
89 |
osh-native |
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,697 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host