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 |
19 |
9 |
455 |
22 |
23.72 |
1.14 |
bin-true |
no-host |
667 |
542 |
2,216 |
815 |
3.32 |
1.22 |
configure.cpython |
no-host |
14,812 |
15,040 |
28,608 |
15,133 |
1.93 |
1.02 |
configure.ocaml |
no-host |
3,777 |
3,730 |
4,581 |
3,808 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
190 |
49 |
3.99 |
1.03 |
configure.util-linux |
no-host |
13,874 |
14,964 |
31,004 |
14,277 |
2.23 |
1.03 |
configure.yash |
no-host |
1,798 |
1,752 |
2,408 |
1,814 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.18 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,505 |
1,095 |
23,228 |
3,188 |
9.27 |
1.27 |
bin-true |
no-host |
103,394 |
66,393 |
754,074 |
127,158 |
7.29 |
1.23 |
configure.cpython |
no-host |
2,214,124 |
2,245,452 |
6,130,501 |
2,226,451 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,529 |
391,574 |
637,652 |
413,611 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,540 |
5,490 |
23,175 |
7,019 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,094,590 |
2,254,445 |
5,321,497 |
2,017,099 |
2.54 |
0.96 |
configure.yash |
no-host |
256,706 |
244,550 |
385,113 |
258,620 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,648 |
343 |
23.84 |
2.24 |
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.0 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
8.1 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,133 |
2 |
60 |
15.8 |
27.4 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,277 |
3 |
58 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,806 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,808 |
1 |
2 |
2.7 |
20.6 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,814 |
1 |
2 |
2.6 |
24.4 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,257 |
64,449 |
42,657 |
4,609 |
54,535 |
57,113 |
478 |
3 |
85,314 |
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 |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
412 |
46 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
667 |
481 |
214 |
3.0 |
bash |
9 |
no-host |
bin-true |
542 |
426 |
126 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,216 |
1,429 |
1,043 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
563 |
266 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,812 |
8,909 |
6,294 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,040 |
9,283 |
6,169 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,608 |
17,494 |
12,964 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,133 |
8,840 |
6,553 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,777 |
1,660 |
1,147 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,730 |
1,527 |
1,222 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,581 |
2,217 |
1,566 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,808 |
1,628 |
1,217 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
31 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
16 |
26 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
190 |
146 |
47 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
20 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,874 |
8,809 |
5,540 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,964 |
9,312 |
6,139 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,004 |
20,703 |
11,379 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,277 |
8,485 |
5,982 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,798 |
1,015 |
792 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,752 |
996 |
759 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,408 |
1,470 |
978 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,814 |
999 |
819 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
17 |
31 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,505 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,095 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,228 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,188 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
103,394 |
0 |
0 |
0 |
8 |
0 |
1,988 |
55 |
bash |
9 |
no-host |
bin-true |
66,393 |
0 |
0 |
0 |
8 |
0 |
1,994 |
60 |
dash |
17 |
no-host |
bin-true |
754,074 |
0 |
0 |
0 |
8 |
0 |
1,990 |
85 |
osh-cpython |
25 |
no-host |
bin-true |
127,158 |
0 |
0 |
0 |
16 |
0 |
1,994 |
84 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,124 |
1 |
0 |
0 |
32,928 |
0 |
14,486 |
1,088 |
bash |
10 |
no-host |
configure.cpython |
2,245,452 |
0 |
0 |
0 |
32,992 |
0 |
14,645 |
997 |
dash |
18 |
no-host |
configure.cpython |
6,130,501 |
0 |
0 |
0 |
27,512 |
0 |
13,265 |
1,152 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,226,451 |
0 |
0 |
0 |
27,520 |
0 |
13,278 |
1,064 |
osh-native |
4 |
no-host |
configure.ocaml |
410,529 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
213 |
bash |
12 |
no-host |
configure.ocaml |
391,574 |
0 |
0 |
0 |
5,112 |
0 |
1,947 |
163 |
dash |
20 |
no-host |
configure.ocaml |
637,652 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
174 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,611 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
154 |
osh-native |
5 |
no-host |
configure.tcc |
6,540 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,490 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,175 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,019 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,590 |
0 |
0 |
0 |
42,400 |
0 |
18,658 |
1,007 |
bash |
11 |
no-host |
configure.util-linux |
2,254,445 |
0 |
0 |
0 |
42,584 |
0 |
17,479 |
1,057 |
dash |
19 |
no-host |
configure.util-linux |
5,321,497 |
6 |
0 |
0 |
39,112 |
0 |
17,204 |
1,220 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,099 |
0 |
0 |
0 |
39,120 |
0 |
17,018 |
863 |
osh-native |
6 |
no-host |
configure.yash |
256,706 |
0 |
0 |
0 |
4,120 |
0 |
870 |
76 |
bash |
14 |
no-host |
configure.yash |
244,550 |
0 |
0 |
0 |
3,720 |
0 |
867 |
87 |
dash |
22 |
no-host |
configure.yash |
385,113 |
0 |
0 |
0 |
3,728 |
0 |
862 |
108 |
osh-cpython |
30 |
no-host |
configure.yash |
258,620 |
0 |
0 |
0 |
3,736 |
0 |
848 |
79 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,648 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host