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 21 22 19 1.33 1.18
bin-true no-host 621 443 808 812 653 1.30 1.05
configure.cpython no-host 14,464 14,231 14,096 13,970 13,363 0.97 0.92
configure.ocaml no-host 3,736 3,711 3,783 3,787 3,764 1.01 1.01
configure.tcc no-host 46 43 48 48 44 1.03 0.95
configure.util-linux no-host 12,900 13,630 12,931 12,942 12,587 1.00 0.98
configure.yash no-host 1,766 1,720 1,812 1,754 1,726 1.03 0.98
hello-world no-host 1 1 3 3 1 2.43 0.95

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,404 1,173 3,346 3,436 2,854 1.39 1.19
bin-true no-host 101,439 49,379 131,997 134,296 110,685 1.30 1.09
configure.cpython no-host 1,620,640 1,648,117 1,591,216 1,595,103 1,518,059 0.98 0.94
configure.ocaml no-host 298,423 281,031 306,006 306,331 299,992 1.03 1.01
configure.tcc no-host 5,233 4,219 5,605 5,702 5,131 1.07 0.98
configure.util-linux no-host 1,542,887 1,697,294 1,518,363 1,517,284 1,478,773 0.98 0.96
configure.yash no-host 173,180 159,584 176,887 176,802 172,790 1.02 1.00
hello-world no-host 151 87 392 398 181 2.60 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.7 3.8 9.6 10.1 6.3 2.03 1.33
bin-true no-host 3.1 1.6 8.7 9.3 5.1 2.75 1.62
configure.cpython no-host 34.6 34.7 34.3 34.5 34.3 0.99 0.99
configure.ocaml no-host 28.7 28.9 28.6 28.8 28.6 1.00 1.00
configure.tcc no-host 26.2 26.2 26.1 26.4 26.3 1.00 1.01
configure.util-linux no-host 39.7 39.5 39.5 39.7 39.6 0.99 1.00
configure.yash no-host 33.4 33.4 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.9 3.3 2.08 1.04

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 808 1 2 3.5 8.7 151,900 10,763 2,977 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 14,096 2 74 14.8 34.3 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,931 3 72 21.6 39.5 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,783 1 2 2.8 28.6 149,700 12,655 6,570 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 48 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,812 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 21 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 812 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,970 1 71 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,942 3 69 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,787 1 2 2.8 28.8 149,700 12,660 6,575 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.4 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,754 1 2 2.7 33.4 143,476 11,511 6,628 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 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.7 bash
15 no-host abuild-print-help 9 5 4 3.8 dash
23 no-host abuild-print-help 21 11 11 9.6 osh-native
31 no-host abuild-print-help 22 13 10 10.1 osh-nosouffle
39 no-host abuild-print-help 19 10 10 6.3 osh-static
1 no-host bin-true 621 307 353 3.1 bash
9 no-host bin-true 443 276 171 1.6 dash
17 no-host bin-true 808 315 515 8.7 osh-native
25 no-host bin-true 812 306 525 9.3 osh-nosouffle
33 no-host bin-true 653 321 349 5.1 osh-static
2 no-host configure.cpython 14,464 7,883 6,925 34.6 bash
10 no-host configure.cpython 14,231 7,822 6,805 34.7 dash
18 no-host configure.cpython 14,096 7,433 6,946 34.3 osh-native
26 no-host configure.cpython 13,970 7,470 6,782 34.5 osh-nosouffle
34 no-host configure.cpython 13,363 7,311 6,267 34.3 osh-static
4 no-host configure.ocaml 3,736 1,484 1,291 28.7 bash
12 no-host configure.ocaml 3,711 1,536 1,200 28.9 dash
20 no-host configure.ocaml 3,783 1,519 1,304 28.6 osh-native
28 no-host configure.ocaml 3,787 1,533 1,294 28.8 osh-nosouffle
36 no-host configure.ocaml 3,764 1,505 1,290 28.6 osh-static
5 no-host configure.tcc 46 21 27 26.2 bash
13 no-host configure.tcc 43 24 20 26.2 dash
21 no-host configure.tcc 48 25 24 26.1 osh-native
29 no-host configure.tcc 48 23 26 26.4 osh-nosouffle
37 no-host configure.tcc 44 23 22 26.3 osh-static
3 no-host configure.util-linux 12,900 6,721 6,653 39.7 bash
11 no-host configure.util-linux 13,630 6,646 7,480 39.5 dash
19 no-host configure.util-linux 12,931 6,398 6,760 39.5 osh-native
27 no-host configure.util-linux 12,942 6,413 6,751 39.7 osh-nosouffle
35 no-host configure.util-linux 12,587 6,377 6,425 39.6 osh-static
6 no-host configure.yash 1,766 964 800 33.4 bash
14 no-host configure.yash 1,720 944 777 33.4 dash
22 no-host configure.yash 1,812 1,033 774 33.4 osh-native
30 no-host configure.yash 1,754 967 784 33.4 osh-nosouffle
38 no-host configure.yash 1,726 954 774 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 0 3 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,404 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,173 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,346 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,436 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,854 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 101,439 0 0 0 8 0 1,995 54 bash
9 no-host bin-true 49,379 0 0 0 8 0 2,997 62 dash
17 no-host bin-true 131,997 0 0 0 16 0 1,998 61 osh-native
25 no-host bin-true 134,296 0 0 0 16 0 1,995 81 osh-nosouffle
33 no-host bin-true 110,685 0 0 0 8 0 2,000 79 osh-static
2 no-host configure.cpython 1,620,640 0 0 0 25,272 0 14,097 1,015 bash
10 no-host configure.cpython 1,648,117 0 0 0 25,272 0 14,141 1,028 dash
18 no-host configure.cpython 1,591,216 0 0 0 25,280 0 11,284 835 osh-native
26 no-host configure.cpython 1,595,103 0 0 0 25,280 0 11,305 810 osh-nosouffle
34 no-host configure.cpython 1,518,059 1 0 0 25,272 0 11,304 830 osh-static
4 no-host configure.ocaml 298,423 0 0 0 4,432 0 2,013 183 bash
12 no-host configure.ocaml 281,031 0 0 0 4,432 0 2,106 182 dash
20 no-host configure.ocaml 306,006 0 0 0 4,440 0 2,000 215 osh-native
28 no-host configure.ocaml 306,331 0 0 0 4,440 0 1,998 204 osh-nosouffle
36 no-host configure.ocaml 299,992 0 0 0 4,432 0 1,995 214 osh-static
5 no-host configure.tcc 5,233 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,219 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,605 0 0 0 96 0 44 2 osh-native
29 no-host configure.tcc 5,702 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,131 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,542,887 0 0 0 35,944 0 18,992 1,059 bash
11 no-host configure.util-linux 1,697,294 1 0 0 35,944 0 17,193 1,227 dash
19 no-host configure.util-linux 1,518,363 2 0 8 35,960 0 16,186 919 osh-native
27 no-host configure.util-linux 1,517,284 0 0 0 35,952 0 16,215 916 osh-nosouffle
35 no-host configure.util-linux 1,478,773 1 0 0 35,936 0 16,193 1,026 osh-static
6 no-host configure.yash 173,180 0 0 0 3,616 0 878 99 bash
14 no-host configure.yash 159,584 0 0 0 3,616 0 1,001 90 dash
22 no-host configure.yash 176,887 0 0 0 3,624 0 858 98 osh-native
30 no-host configure.yash 176,802 0 0 0 3,632 0 858 104 osh-nosouffle
38 no-host configure.yash 172,790 0 0 0 3,616 0 857 101 osh-static
0 no-host hello-world 151 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 398 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-3237a787
osh-nosouffle osh-5729efde
osh-static osh-static-c31d7993
host label host id
no-host no-host-9c670df1