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 15 9 20 19 18 1.32 1.16
bin-true no-host 614 441 792 788 634 1.29 1.03
configure.cpython no-host 13,331 13,503 13,177 12,943 12,364 0.99 0.93
configure.ocaml no-host 3,594 3,536 3,626 3,589 3,576 1.01 0.99
configure.tcc no-host 45 40 46 46 42 1.01 0.93
configure.util-linux no-host 12,091 13,012 12,212 12,026 11,764 1.01 0.97
configure.yash no-host 1,681 1,604 1,634 1,606 1,617 0.97 0.96
hello-world no-host 1 1 3 3 1 2.51 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,385 1,150 3,305 3,436 2,830 1.39 1.19
bin-true no-host 100,444 49,349 131,341 133,019 110,032 1.31 1.10
configure.cpython no-host 1,620,543 1,639,036 1,587,064 1,603,410 1,521,689 0.98 0.94
configure.ocaml no-host 299,278 280,427 305,164 307,016 300,856 1.02 1.01
configure.tcc no-host 5,228 4,194 5,616 5,693 5,140 1.07 0.98
configure.util-linux no-host 1,539,969 1,696,995 1,501,104 1,520,430 1,466,230 0.97 0.95
configure.yash no-host 173,332 159,489 176,646 177,105 173,162 1.02 1.00
hello-world no-host 151 83 388 394 180 2.57 1.19

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.6 10.1 6.4 1.97 1.32
bin-true no-host 3.3 1.6 8.7 9.2 5.2 2.64 1.60
configure.cpython no-host 34.6 34.5 34.4 34.4 34.4 0.99 0.99
configure.ocaml no-host 28.7 28.7 28.5 28.7 28.7 0.99 1.00
configure.tcc no-host 26.4 26.1 26.4 26.2 26.1 1.00 0.99
configure.util-linux no-host 39.6 39.5 39.5 39.8 39.8 1.00 1.00
configure.yash no-host 33.5 33.4 33.4 33.4 33.1 1.00 0.99
hello-world no-host 3.1 1.6 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,897 3,897 0 716 1,916 1,265 2 0 50,000 0
bin-true no-host 792 1 2 3.5 8.7 151,882 10,751 2,965 14,775 72,390 64,717 3,008 3 50,000 0
configure.cpython no-host 13,177 1 64 14.8 34.4 1,750,774 35,379 28,936 93,071 869,737 787,966 25,789 61 50,000 0
configure.util-linux no-host 12,212 3 63 21.6 39.5 2,705,310 37,451 66,324 119,739 1,291,832 1,293,739 32,527 42 132,648 1
configure.ocaml no-host 3,626 1 2 2.8 28.5 149,682 12,643 6,558 9,207 70,290 70,185 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.4 30,531 30,531 0 1,674 14,467 14,390 271 0 50,000 0
configure.yash no-host 1,634 1 2 2.7 33.4 143,445 11,457 6,613 7,159 70,512 65,774 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,213 65,785 41,995 4,969 54,592 57,652 277 3 83,990 1
hello-world no-host 3 0 0 0.3 6.9 3,896 3,896 0 715 1,916 1,265 2 0 50,000 0
bin-true no-host 788 1 2 3.5 9.2 151,882 10,755 2,969 14,775 72,390 64,717 3,008 3 50,000 0
configure.cpython no-host 12,943 1 58 14.8 34.4 1,750,773 35,384 28,941 93,070 869,737 787,966 25,789 61 50,000 0
configure.util-linux no-host 12,026 2 58 21.6 39.8 2,705,310 37,457 66,330 119,739 1,291,832 1,293,739 32,527 42 132,660 1
configure.ocaml no-host 3,589 1 2 2.8 28.7 149,682 12,648 6,563 9,207 70,290 70,185 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.2 30,531 30,531 0 1,674 14,467 14,390 271 0 50,000 0
configure.yash no-host 1,606 1 2 2.7 33.4 143,445 11,461 6,617 7,159 70,512 65,774 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 10.1 117,213 65,789 41,999 4,969 54,592 57,652 277 3 83,998 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 15 7 9 4.8 bash
15 no-host abuild-print-help 9 4 5 4.1 dash
23 no-host abuild-print-help 20 12 9 9.6 osh-native
31 no-host abuild-print-help 19 10 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 11 7 6.4 osh-static
1 no-host bin-true 614 309 341 3.3 bash
9 no-host bin-true 441 274 174 1.6 dash
17 no-host bin-true 792 308 500 8.7 osh-native
25 no-host bin-true 788 310 490 9.2 osh-nosouffle
33 no-host bin-true 634 305 344 5.2 osh-static
2 no-host configure.cpython 13,331 7,265 6,442 34.6 bash
10 no-host configure.cpython 13,503 7,398 6,511 34.5 dash
18 no-host configure.cpython 13,177 7,022 6,432 34.4 osh-native
26 no-host configure.cpython 12,943 6,920 6,304 34.4 osh-nosouffle
34 no-host configure.cpython 12,364 6,844 5,748 34.4 osh-static
4 no-host configure.ocaml 3,594 1,406 1,229 28.7 bash
12 no-host configure.ocaml 3,536 1,453 1,104 28.7 dash
20 no-host configure.ocaml 3,626 1,440 1,225 28.5 osh-native
28 no-host configure.ocaml 3,589 1,409 1,219 28.7 osh-nosouffle
36 no-host configure.ocaml 3,576 1,466 1,141 28.7 osh-static
5 no-host configure.tcc 45 20 25 26.4 bash
13 no-host configure.tcc 40 24 17 26.1 dash
21 no-host configure.tcc 46 21 25 26.4 osh-native
29 no-host configure.tcc 46 25 22 26.2 osh-nosouffle
37 no-host configure.tcc 42 22 20 26.1 osh-static
3 no-host configure.util-linux 12,091 6,354 6,202 39.6 bash
11 no-host configure.util-linux 13,012 6,448 7,051 39.5 dash
19 no-host configure.util-linux 12,212 6,044 6,387 39.5 osh-native
27 no-host configure.util-linux 12,026 6,054 6,193 39.8 osh-nosouffle
35 no-host configure.util-linux 11,764 5,997 5,981 39.8 osh-static
6 no-host configure.yash 1,681 945 746 33.5 bash
14 no-host configure.yash 1,604 911 696 33.4 dash
22 no-host configure.yash 1,634 909 728 33.4 osh-native
30 no-host configure.yash 1,606 898 712 33.4 osh-nosouffle
38 no-host configure.yash 1,617 901 719 33.1 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 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 0 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,385 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,150 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,305 0 0 0 16 0 39 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,830 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,444 0 0 0 8 0 1,998 73 bash
9 no-host bin-true 49,349 0 0 0 8 0 2,993 53 dash
17 no-host bin-true 131,341 0 0 0 16 0 1,998 63 osh-native
25 no-host bin-true 133,019 0 0 0 16 0 1,998 97 osh-nosouffle
33 no-host bin-true 110,032 0 0 0 8 0 1,996 77 osh-static
2 no-host configure.cpython 1,620,543 0 0 0 25,272 0 14,075 1,025 bash
10 no-host configure.cpython 1,639,036 0 0 0 25,272 0 14,104 996 dash
18 no-host configure.cpython 1,587,064 0 0 0 25,280 0 11,298 895 osh-native
26 no-host configure.cpython 1,603,410 0 0 0 25,280 0 11,315 906 osh-nosouffle
34 no-host configure.cpython 1,521,689 0 0 0 25,272 0 11,297 810 osh-static
4 no-host configure.ocaml 299,278 0 0 0 4,432 0 2,019 183 bash
12 no-host configure.ocaml 280,427 0 0 0 4,432 0 2,112 190 dash
20 no-host configure.ocaml 305,164 0 0 0 4,440 0 2,002 221 osh-native
28 no-host configure.ocaml 307,016 0 0 0 4,440 0 2,002 201 osh-nosouffle
36 no-host configure.ocaml 300,856 0 0 0 4,432 0 2,003 228 osh-static
5 no-host configure.tcc 5,228 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,194 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,616 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,693 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,140 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,539,969 0 0 232 35,944 0 18,961 1,035 bash
11 no-host configure.util-linux 1,696,995 2 0 0 35,936 0 17,066 1,236 dash
19 no-host configure.util-linux 1,501,104 0 0 0 35,952 0 16,136 886 osh-native
27 no-host configure.util-linux 1,520,430 0 0 0 35,944 0 16,167 904 osh-nosouffle
35 no-host configure.util-linux 1,466,230 1 0 0 35,936 0 16,233 898 osh-static
6 no-host configure.yash 173,332 0 0 0 3,616 0 875 109 bash
14 no-host configure.yash 159,489 0 0 0 3,616 0 998 104 dash
22 no-host configure.yash 176,646 0 0 0 3,624 0 858 98 osh-native
30 no-host configure.yash 177,105 0 0 0 3,624 0 857 95 osh-nosouffle
38 no-host configure.yash 173,162 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 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 388 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 394 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 180 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-eb98e09b
osh-nosouffle osh-fa283fca
osh-static osh-static-cd0f322d
host label host id
no-host no-host-9c670df1