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 17 9 21 22 19 1.30 1.13
bin-true no-host 633 459 831 836 667 1.31 1.05
configure.cpython no-host 14,530 14,531 14,372 13,948 13,354 0.99 0.92
configure.ocaml no-host 3,875 3,722 3,898 3,854 3,662 1.01 0.95
configure.tcc no-host 47 42 50 48 44 1.05 0.92
configure.util-linux no-host 13,323 13,898 13,260 12,920 12,513 1.00 0.94
configure.yash no-host 1,791 1,706 1,811 1,760 1,716 1.01 0.96
hello-world no-host 1 1 3 3 1 2.32 1.03

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,380 1,178 3,296 3,401 2,821 1.38 1.19
bin-true no-host 98,440 49,377 133,266 133,035 110,291 1.35 1.12
configure.cpython no-host 1,622,565 1,646,152 1,590,614 1,596,333 1,513,735 0.98 0.93
configure.ocaml no-host 299,635 280,891 306,331 307,683 299,972 1.02 1.00
configure.tcc no-host 5,246 4,197 5,589 5,643 5,112 1.07 0.97
configure.util-linux no-host 1,532,337 1,701,652 1,494,910 1,522,137 1,469,683 0.98 0.96
configure.yash no-host 173,122 159,495 176,268 176,704 172,888 1.02 1.00
hello-world no-host 149 89 389 400 183 2.61 1.23

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 4.1 9.4 10.1 6.3 1.95 1.30
bin-true no-host 3.3 1.7 8.4 9.2 5.2 2.56 1.60
configure.cpython no-host 34.5 34.4 34.5 34.7 34.6 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.3 26.0 26.0 26.3 26.2 0.99 1.00
configure.util-linux no-host 39.5 39.6 39.6 39.7 39.7 1.00 1.01
configure.yash no-host 33.3 33.3 33.3 33.4 33.3 1.00 1.00
hello-world no-host 3.1 1.7 6.4 6.9 3.4 2.04 1.08

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.4 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 831 1 2 3.5 8.4 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 14,372 2 72 14.8 34.5 1,750,907 35,429 28,954 93,081 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 13,260 3 72 21.6 39.6 2,705,473 37,501 66,342 119,749 1,291,899 1,293,825 32,527 42 132,684 1
configure.ocaml no-host 3,898 1 2 2.8 28.7 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.4 26.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,811 1 2 2.7 33.3 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,263 65,801 42,008 4,981 54,612 57,670 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 836 1 2 3.5 9.2 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,948 1 70 14.9 34.7 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,920 3 69 21.6 39.7 2,705,473 37,507 66,348 119,749 1,291,899 1,293,825 32,527 42 132,696 1
configure.ocaml no-host 3,854 1 2 2.8 28.6 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,760 1 2 2.7 33.4 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,263 65,805 42,012 4,981 54,612 57,670 277 3 84,024 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 17 10 7 4.8 bash
15 no-host abuild-print-help 9 5 5 4.1 dash
23 no-host abuild-print-help 21 13 9 9.4 osh-native
31 no-host abuild-print-help 22 12 11 10.1 osh-nosouffle
39 no-host abuild-print-help 19 14 6 6.3 osh-static
1 no-host bin-true 633 313 358 3.3 bash
9 no-host bin-true 459 285 180 1.7 dash
17 no-host bin-true 831 302 546 8.4 osh-native
25 no-host bin-true 836 315 540 9.2 osh-nosouffle
33 no-host bin-true 667 319 369 5.2 osh-static
2 no-host configure.cpython 14,530 7,861 7,077 34.5 bash
10 no-host configure.cpython 14,531 7,865 7,093 34.4 dash
18 no-host configure.cpython 14,372 7,563 7,105 34.5 osh-native
26 no-host configure.cpython 13,948 7,349 6,894 34.7 osh-nosouffle
34 no-host configure.cpython 13,354 7,357 6,249 34.6 osh-static
4 no-host configure.ocaml 3,875 1,569 1,349 28.7 bash
12 no-host configure.ocaml 3,722 1,534 1,213 28.7 dash
20 no-host configure.ocaml 3,898 1,570 1,370 28.7 osh-native
28 no-host configure.ocaml 3,854 1,574 1,323 28.6 osh-nosouffle
36 no-host configure.ocaml 3,662 1,464 1,230 28.7 osh-static
5 no-host configure.tcc 47 26 22 26.3 bash
13 no-host configure.tcc 42 21 21 26.0 dash
21 no-host configure.tcc 50 26 25 26.0 osh-native
29 no-host configure.tcc 48 19 29 26.3 osh-nosouffle
37 no-host configure.tcc 44 25 19 26.2 osh-static
3 no-host configure.util-linux 13,323 6,860 6,963 39.5 bash
11 no-host configure.util-linux 13,898 6,666 7,752 39.6 dash
19 no-host configure.util-linux 13,260 6,439 7,062 39.6 osh-native
27 no-host configure.util-linux 12,920 6,337 6,821 39.7 osh-nosouffle
35 no-host configure.util-linux 12,513 6,395 6,340 39.7 osh-static
6 no-host configure.yash 1,791 1,008 791 33.3 bash
14 no-host configure.yash 1,706 950 757 33.3 dash
22 no-host configure.yash 1,811 1,008 806 33.3 osh-native
30 no-host configure.yash 1,760 998 765 33.4 osh-nosouffle
38 no-host configure.yash 1,716 975 744 33.3 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.7 dash
16 no-host hello-world 3 1 2 6.4 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 1 1 3.4 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,380 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,178 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,296 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,401 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,821 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 98,440 0 0 0 8 0 1,999 89 bash
9 no-host bin-true 49,377 0 0 0 8 0 2,995 65 dash
17 no-host bin-true 133,266 0 0 0 16 0 2,000 79 osh-native
25 no-host bin-true 133,035 0 0 0 16 0 1,994 80 osh-nosouffle
33 no-host bin-true 110,291 0 0 0 8 0 1,997 77 osh-static
2 no-host configure.cpython 1,622,565 0 0 0 25,272 0 14,082 1,003 bash
10 no-host configure.cpython 1,646,152 0 0 0 25,272 0 14,109 1,059 dash
18 no-host configure.cpython 1,590,614 0 0 0 25,280 0 11,292 816 osh-native
26 no-host configure.cpython 1,596,333 0 0 0 25,280 0 11,301 831 osh-nosouffle
34 no-host configure.cpython 1,513,735 0 0 0 25,272 0 11,302 851 osh-static
4 no-host configure.ocaml 299,635 0 0 0 4,432 0 2,017 168 bash
12 no-host configure.ocaml 280,891 0 0 0 4,432 0 2,107 197 dash
20 no-host configure.ocaml 306,331 0 0 0 4,440 0 1,999 210 osh-native
28 no-host configure.ocaml 307,683 0 0 0 4,440 0 2,002 225 osh-nosouffle
36 no-host configure.ocaml 299,972 0 0 0 4,432 0 2,000 232 osh-static
5 no-host configure.tcc 5,246 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,197 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,589 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,643 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,112 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,532,337 1 0 0 35,936 0 19,006 1,038 bash
11 no-host configure.util-linux 1,701,652 0 0 0 35,936 0 17,173 1,233 dash
19 no-host configure.util-linux 1,494,910 0 0 0 35,960 0 16,217 966 osh-native
27 no-host configure.util-linux 1,522,137 0 0 0 35,952 0 16,148 883 osh-nosouffle
35 no-host configure.util-linux 1,469,683 2 0 0 35,944 0 16,189 944 osh-static
6 no-host configure.yash 173,122 0 0 0 3,616 0 879 97 bash
14 no-host configure.yash 159,495 0 0 0 3,616 0 998 111 dash
22 no-host configure.yash 176,268 0 0 0 3,624 0 857 109 osh-native
30 no-host configure.yash 176,704 0 0 0 3,624 0 856 98 osh-nosouffle
38 no-host configure.yash 172,888 0 0 0 3,616 0 859 96 osh-static
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 89 0 0 0 8 0 1 0 dash
16 no-host hello-world 389 0 0 0 16 0 1 1 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-e3236c81
osh-nosouffle osh-ddfddf4c
osh-static osh-static-25da22a9
host label host id
no-host no-host-bba74091