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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 20 21 18 1.31 1.17
bin-true no-host 621 436 792 800 647 1.28 1.04
configure.cpython no-host 13,690 13,646 13,201 13,443 12,879 0.96 0.94
configure.ocaml no-host 3,631 3,601 3,701 3,725 3,654 1.02 1.01
configure.tcc no-host 46 41 46 47 43 1.00 0.94
configure.util-linux no-host 12,437 13,104 12,519 12,621 12,216 1.01 0.98
configure.yash no-host 1,692 1,612 1,679 1,689 1,673 0.99 0.99
hello-world no-host 1 1 3 3 1 2.42 1.04

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,370 1,165 3,308 3,431 2,841 1.40 1.20
bin-true no-host 102,469 49,333 130,966 133,398 110,727 1.28 1.08
configure.cpython no-host 1,620,500 1,637,359 1,577,439 1,613,343 1,518,239 0.97 0.94
configure.ocaml no-host 299,603 281,014 306,766 306,546 299,927 1.02 1.00
configure.tcc no-host 5,224 4,203 5,600 5,630 5,128 1.07 0.98
configure.util-linux no-host 1,538,497 1,705,551 1,515,970 1,526,737 1,477,927 0.99 0.96
configure.yash no-host 173,344 159,612 176,206 177,049 172,813 1.02 1.00
hello-world no-host 153 87 392 400 183 2.56 1.20

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.8 3.9 9.6 10.1 6.3 1.97 1.30
bin-true no-host 3.3 1.6 8.8 9.3 5.1 2.68 1.56
configure.cpython no-host 34.7 34.4 34.7 34.5 34.7 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.7 28.5 28.6 1.00 1.00
configure.tcc no-host 26.0 26.2 26.1 26.2 26.3 1.00 1.01
configure.util-linux no-host 39.6 39.7 39.6 39.7 39.5 1.00 1.00
configure.yash no-host 33.1 33.4 33.4 33.3 33.3 1.01 1.00
hello-world no-host 3.3 1.6 6.6 6.9 3.3 2.00 1.00

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.6 3,915 3,915 0 723 1,921 1,271 2 0 50,000 0
bin-true no-host 792 1 2 3.5 8.8 151,900 10,763 2,977 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,201 1 65 14.8 34.7 1,750,827 35,398 28,953 93,078 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,519 3 68 21.6 39.6 2,705,393 37,470 66,341 119,746 1,291,872 1,293,775 32,527 42 132,682 1
configure.ocaml no-host 3,701 1 2 2.8 28.7 149,700 12,655 6,570 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,679 1 2 2.7 33.4 143,476 11,507 6,624 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,234 65,800 42,007 4,977 54,599 57,658 277 3 84,014 1
hello-world no-host 3 0 0 0.3 6.9 3,914 3,914 0 722 1,921 1,271 2 0 50,000 0
bin-true no-host 800 1 2 3.5 9.3 151,900 10,767 2,981 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,443 1 64 14.8 34.5 1,750,826 36,457 28,958 93,077 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,621 4 67 21.6 39.7 2,705,393 37,476 66,347 119,746 1,291,872 1,293,775 32,527 42 132,694 1
configure.ocaml no-host 3,725 1 2 2.8 28.5 149,700 12,660 6,575 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,689 1 2 2.7 33.3 143,476 11,511 6,628 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,234 65,804 42,011 4,977 54,599 57,658 277 3 84,022 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 16 7 9 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 20 10 11 9.6 osh-native
31 no-host abuild-print-help 21 13 9 10.1 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.3 osh-static
1 no-host bin-true 621 317 342 3.3 bash
9 no-host bin-true 436 275 168 1.6 dash
17 no-host bin-true 792 308 500 8.8 osh-native
25 no-host bin-true 800 309 506 9.3 osh-nosouffle
33 no-host bin-true 647 321 344 5.1 osh-static
2 no-host configure.cpython 13,690 7,518 6,543 34.7 bash
10 no-host configure.cpython 13,646 7,535 6,503 34.4 dash
18 no-host configure.cpython 13,201 7,041 6,427 34.7 osh-native
26 no-host configure.cpython 13,443 7,118 6,611 34.5 osh-nosouffle
34 no-host configure.cpython 12,879 7,176 5,937 34.7 osh-static
4 no-host configure.ocaml 3,631 1,451 1,221 28.7 bash
12 no-host configure.ocaml 3,601 1,431 1,193 28.5 dash
20 no-host configure.ocaml 3,701 1,484 1,257 28.7 osh-native
28 no-host configure.ocaml 3,725 1,500 1,265 28.5 osh-nosouffle
36 no-host configure.ocaml 3,654 1,506 1,178 28.6 osh-static
5 no-host configure.tcc 46 24 22 26.0 bash
13 no-host configure.tcc 41 17 24 26.2 dash
21 no-host configure.tcc 46 29 17 26.1 osh-native
29 no-host configure.tcc 47 18 29 26.2 osh-nosouffle
37 no-host configure.tcc 43 25 19 26.3 osh-static
3 no-host configure.util-linux 12,437 6,538 6,359 39.6 bash
11 no-host configure.util-linux 13,104 6,428 7,165 39.7 dash
19 no-host configure.util-linux 12,519 6,194 6,547 39.6 osh-native
27 no-host configure.util-linux 12,621 6,375 6,474 39.7 osh-nosouffle
35 no-host configure.util-linux 12,216 6,183 6,244 39.5 osh-static
6 no-host configure.yash 1,692 980 720 33.1 bash
14 no-host configure.yash 1,612 933 682 33.4 dash
22 no-host configure.yash 1,679 962 721 33.4 osh-native
30 no-host configure.yash 1,689 969 723 33.3 osh-nosouffle
38 no-host configure.yash 1,673 956 720 33.3 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 1 6.6 osh-native
24 no-host hello-world 3 2 1 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 3.3 osh-static

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,370 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,165 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,308 0 0 0 16 0 38 0 osh-native
31 no-host abuild-print-help 3,431 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,841 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 102,469 0 0 0 8 0 1,996 56 bash
9 no-host bin-true 49,333 0 0 0 8 0 2,995 54 dash
17 no-host bin-true 130,966 0 0 0 16 0 1,995 77 osh-native
25 no-host bin-true 133,398 0 0 0 16 0 1,997 90 osh-nosouffle
33 no-host bin-true 110,727 0 0 0 8 0 1,998 65 osh-static
2 no-host configure.cpython 1,620,500 0 0 0 25,272 0 14,073 1,174 bash
10 no-host configure.cpython 1,637,359 0 0 0 25,272 0 14,109 981 dash
18 no-host configure.cpython 1,577,439 0 0 0 25,280 0 11,295 818 osh-native
26 no-host configure.cpython 1,613,343 0 0 0 25,280 0 11,303 885 osh-nosouffle
34 no-host configure.cpython 1,518,239 1 0 0 25,272 0 11,304 808 osh-static
4 no-host configure.ocaml 299,603 0 0 0 4,432 0 2,018 187 bash
12 no-host configure.ocaml 281,014 0 0 0 4,432 0 2,107 335 dash
20 no-host configure.ocaml 306,766 0 0 0 4,440 0 1,999 228 osh-native
28 no-host configure.ocaml 306,546 0 0 0 4,440 0 2,000 203 osh-nosouffle
36 no-host configure.ocaml 299,927 0 0 0 4,432 0 1,999 220 osh-static
5 no-host configure.tcc 5,224 0 0 0 80 0 49 4 bash
13 no-host configure.tcc 4,203 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,600 0 0 0 96 0 46 3 osh-native
29 no-host configure.tcc 5,630 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,128 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,538,497 3 0 0 35,944 0 18,999 1,015 bash
11 no-host configure.util-linux 1,705,551 1 0 0 35,936 0 17,121 1,174 dash
19 no-host configure.util-linux 1,515,970 0 0 0 35,952 0 16,119 856 osh-native
27 no-host configure.util-linux 1,526,737 1 0 0 35,944 0 16,209 942 osh-nosouffle
35 no-host configure.util-linux 1,477,927 1 0 0 35,936 0 16,141 974 osh-static
6 no-host configure.yash 173,344 0 0 0 3,616 0 878 111 bash
14 no-host configure.yash 159,612 0 0 0 3,616 0 1,000 100 dash
22 no-host configure.yash 176,206 0 0 0 3,632 0 856 93 osh-native
30 no-host configure.yash 177,049 0 0 0 3,624 0 856 99 osh-nosouffle
38 no-host configure.yash 172,813 0 0 0 3,616 0 858 90 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-0d8643d1
osh-nosouffle osh-3f2f0f15
osh-static osh-static-24af22cc
host label host id
no-host no-host-9c670df1