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 |
453 |
22 |
23.68 |
1.15 |
bin-true |
no-host |
692 |
535 |
2,182 |
812 |
3.15 |
1.17 |
configure.cpython |
no-host |
14,906 |
14,992 |
28,176 |
15,142 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,798 |
3,714 |
4,612 |
3,803 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
190 |
48 |
4.02 |
1.02 |
configure.util-linux |
no-host |
13,975 |
14,687 |
30,866 |
14,431 |
2.21 |
1.03 |
configure.yash |
no-host |
1,802 |
1,753 |
2,423 |
1,819 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
27.68 |
1.69 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,538 |
1,120 |
23,321 |
3,203 |
9.19 |
1.26 |
bin-true |
no-host |
105,375 |
66,451 |
743,704 |
128,185 |
7.06 |
1.22 |
configure.cpython |
no-host |
2,219,391 |
2,239,812 |
6,094,664 |
2,234,479 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,393 |
390,823 |
637,244 |
413,885 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,486 |
23,136 |
6,992 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,101,853 |
2,260,430 |
5,301,732 |
2,015,368 |
2.52 |
0.96 |
configure.yash |
no-host |
256,760 |
245,190 |
385,098 |
257,157 |
1.50 |
1.00 |
hello-world |
no-host |
152 |
83 |
3,647 |
344 |
23.99 |
2.26 |
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 |
812 |
1 |
2 |
2.7 |
8.1 |
154,658 |
12,890 |
2,792 |
11,730 |
78,319 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,142 |
2 |
59 |
15.9 |
27.4 |
1,772,935 |
49,191 |
28,502 |
101,923 |
908,314 |
762,698 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,431 |
2 |
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,803 |
0 |
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 |
48 |
0 |
0 |
1.3 |
19.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,819 |
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,221 |
64,449 |
42,657 |
4,601 |
54,503 |
57,117 |
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 |
16 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
453 |
396 |
60 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
692 |
512 |
207 |
2.9 |
bash |
9 |
no-host |
bin-true |
535 |
417 |
128 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,182 |
1,466 |
965 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
812 |
559 |
268 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,906 |
9,051 |
6,251 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,992 |
9,062 |
6,350 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,176 |
17,199 |
12,753 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,142 |
8,849 |
6,560 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,798 |
1,582 |
1,247 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,714 |
1,479 |
1,253 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,612 |
2,235 |
1,581 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,803 |
1,641 |
1,201 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
28 |
19 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
20 |
21 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
190 |
157 |
36 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,975 |
8,749 |
5,696 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,687 |
9,030 |
6,141 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,866 |
20,521 |
11,389 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,431 |
8,536 |
6,082 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,802 |
1,091 |
720 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,753 |
992 |
764 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,423 |
1,507 |
958 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,819 |
1,086 |
735 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
47 |
20 |
27 |
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,538 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,120 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,321 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,203 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
105,375 |
0 |
0 |
0 |
8 |
0 |
1,990 |
43 |
bash |
9 |
no-host |
bin-true |
66,451 |
0 |
0 |
0 |
8 |
0 |
1,990 |
29 |
dash |
17 |
no-host |
bin-true |
743,704 |
0 |
0 |
0 |
8 |
0 |
1,996 |
75 |
osh-cpython |
25 |
no-host |
bin-true |
128,185 |
0 |
0 |
0 |
16 |
0 |
1,988 |
61 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,391 |
0 |
0 |
0 |
32,928 |
0 |
14,474 |
1,157 |
bash |
10 |
no-host |
configure.cpython |
2,239,812 |
0 |
0 |
0 |
32,992 |
0 |
14,546 |
1,077 |
dash |
18 |
no-host |
configure.cpython |
6,094,664 |
0 |
0 |
0 |
27,512 |
0 |
13,290 |
1,212 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,479 |
0 |
0 |
0 |
27,520 |
0 |
13,273 |
1,188 |
osh-native |
4 |
no-host |
configure.ocaml |
410,393 |
0 |
0 |
0 |
5,120 |
0 |
1,970 |
179 |
bash |
12 |
no-host |
configure.ocaml |
390,823 |
0 |
0 |
0 |
5,112 |
0 |
1,891 |
285 |
dash |
20 |
no-host |
configure.ocaml |
637,244 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
190 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,885 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
165 |
osh-native |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
49 |
6 |
bash |
13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,136 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,992 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,853 |
0 |
0 |
0 |
42,400 |
0 |
18,604 |
1,010 |
bash |
11 |
no-host |
configure.util-linux |
2,260,430 |
0 |
0 |
0 |
42,584 |
0 |
17,455 |
1,188 |
dash |
19 |
no-host |
configure.util-linux |
5,301,732 |
11 |
0 |
0 |
39,120 |
0 |
17,110 |
1,375 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,015,368 |
3 |
0 |
0 |
39,120 |
0 |
17,049 |
1,051 |
osh-native |
6 |
no-host |
configure.yash |
256,760 |
0 |
0 |
0 |
4,120 |
0 |
872 |
71 |
bash |
14 |
no-host |
configure.yash |
245,190 |
0 |
0 |
0 |
3,720 |
0 |
867 |
90 |
dash |
22 |
no-host |
configure.yash |
385,098 |
0 |
0 |
0 |
3,728 |
0 |
857 |
91 |
osh-cpython |
30 |
no-host |
configure.yash |
257,157 |
0 |
0 |
0 |
3,736 |
0 |
852 |
93 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,647 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host