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 |
20 |
9 |
447 |
22 |
22.13 |
1.10 |
bin-true |
no-host |
681 |
540 |
2,308 |
831 |
3.39 |
1.22 |
configure.cpython |
no-host |
15,172 |
15,449 |
29,447 |
15,524 |
1.94 |
1.02 |
configure.ocaml |
no-host |
3,813 |
3,826 |
4,708 |
3,911 |
1.23 |
1.03 |
configure.tcc |
no-host |
49 |
42 |
194 |
49 |
3.99 |
1.00 |
configure.util-linux |
no-host |
14,172 |
15,278 |
31,515 |
14,616 |
2.22 |
1.03 |
configure.yash |
no-host |
1,851 |
1,772 |
2,518 |
1,843 |
1.36 |
1.00 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
29.54 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,529 |
1,094 |
23,200 |
3,173 |
9.17 |
1.25 |
bin-true |
no-host |
105,341 |
66,418 |
749,523 |
128,086 |
7.12 |
1.22 |
configure.cpython |
no-host |
2,218,812 |
2,249,211 |
6,103,345 |
2,235,049 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,510 |
391,096 |
636,582 |
413,976 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,534 |
5,487 |
23,207 |
6,994 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,099,549 |
2,259,970 |
5,317,492 |
2,008,195 |
2.53 |
0.96 |
configure.yash |
no-host |
255,599 |
245,246 |
385,238 |
259,084 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
80 |
3,655 |
347 |
24.21 |
2.30 |
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.3 |
6.0 |
3,720 |
3,720 |
0 |
684 |
1,872 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
831 |
1 |
2 |
2.7 |
8.0 |
154,685 |
12,990 |
2,797 |
11,737 |
78,341 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,524 |
1 |
61 |
15.8 |
27.4 |
1,772,601 |
49,195 |
28,506 |
101,770 |
908,048 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,616 |
4 |
62 |
22.2 |
30.3 |
2,703,265 |
44,764 |
65,790 |
126,121 |
1,320,492 |
1,256,652 |
49,081 |
41 |
131,580 |
1 |
configure.ocaml |
no-host |
3,911 |
1 |
2 |
2.7 |
20.6 |
150,027 |
11,043 |
5,136 |
8,602 |
71,626 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,520 |
30,520 |
0 |
1,599 |
14,796 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,843 |
1 |
2 |
2.6 |
24.4 |
139,684 |
7,962 |
6,598 |
7,554 |
70,298 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,263 |
64,453 |
42,661 |
4,609 |
54,541 |
57,113 |
478 |
3 |
85,322 |
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 |
15 |
5 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
447 |
411 |
39 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
681 |
482 |
229 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
416 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,308 |
1,520 |
1,051 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
831 |
585 |
261 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,172 |
9,129 |
6,441 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,449 |
9,324 |
6,549 |
27.1 |
dash |
18 |
no-host |
configure.cpython |
29,447 |
17,624 |
13,717 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,524 |
9,140 |
6,651 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,813 |
1,694 |
1,157 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,826 |
1,644 |
1,203 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,708 |
2,298 |
1,618 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,911 |
1,656 |
1,292 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
29 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
13 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
140 |
58 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
20 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,172 |
9,083 |
5,554 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,278 |
9,265 |
6,514 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,515 |
20,899 |
11,705 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,616 |
8,760 |
6,031 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,851 |
1,057 |
802 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,772 |
1,023 |
752 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,518 |
1,445 |
1,114 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,843 |
1,072 |
776 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
26 |
21 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,529 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,200 |
0 |
0 |
0 |
8 |
0 |
47 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,173 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,341 |
0 |
0 |
0 |
8 |
0 |
1,984 |
193 |
bash |
9 |
no-host |
bin-true |
66,418 |
0 |
0 |
0 |
8 |
0 |
1,986 |
49 |
dash |
17 |
no-host |
bin-true |
749,523 |
0 |
0 |
0 |
8 |
0 |
2,001 |
449 |
osh-cpython |
25 |
no-host |
bin-true |
128,086 |
0 |
0 |
0 |
16 |
0 |
1,992 |
171 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,812 |
0 |
0 |
0 |
32,928 |
0 |
14,519 |
1,021 |
bash |
10 |
no-host |
configure.cpython |
2,249,211 |
0 |
0 |
0 |
32,992 |
0 |
14,634 |
975 |
dash |
18 |
no-host |
configure.cpython |
6,103,345 |
0 |
0 |
0 |
27,512 |
0 |
13,330 |
1,327 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,049 |
0 |
0 |
0 |
27,520 |
0 |
13,250 |
1,019 |
osh-native |
4 |
no-host |
configure.ocaml |
410,510 |
0 |
0 |
0 |
5,120 |
0 |
1,939 |
176 |
bash |
12 |
no-host |
configure.ocaml |
391,096 |
0 |
0 |
0 |
5,112 |
0 |
1,946 |
131 |
dash |
20 |
no-host |
configure.ocaml |
636,582 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
200 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,976 |
0 |
0 |
0 |
5,120 |
0 |
1,940 |
147 |
osh-native |
5 |
no-host |
configure.tcc |
6,534 |
0 |
0 |
0 |
104 |
0 |
49 |
6 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,207 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,994 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,549 |
0 |
0 |
0 |
42,408 |
0 |
18,517 |
1,151 |
bash |
11 |
no-host |
configure.util-linux |
2,259,970 |
0 |
0 |
0 |
42,592 |
0 |
17,475 |
1,263 |
dash |
19 |
no-host |
configure.util-linux |
5,317,492 |
12 |
0 |
0 |
39,112 |
0 |
17,207 |
1,233 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,008,195 |
2 |
0 |
0 |
39,120 |
0 |
17,086 |
1,026 |
osh-native |
6 |
no-host |
configure.yash |
255,599 |
0 |
0 |
0 |
4,120 |
0 |
872 |
75 |
bash |
14 |
no-host |
configure.yash |
245,246 |
0 |
0 |
0 |
3,720 |
0 |
870 |
99 |
dash |
22 |
no-host |
configure.yash |
385,238 |
0 |
0 |
0 |
3,728 |
0 |
855 |
187 |
osh-cpython |
30 |
no-host |
configure.yash |
259,084 |
0 |
0 |
0 |
3,736 |
0 |
852 |
81 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,655 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host