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 13 8 19 20 16 1.52 1.30
bin-true no-host 441 305 636 690 505 1.44 1.15
configure.cpython no-host 11,551 12,594 12,216 12,258 11,472 1.06 0.99
configure.ocaml no-host 3,314 3,409 3,454 3,361 3,356 1.04 1.01
configure.tcc no-host 38 37 41 40 39 1.07 1.01
configure.util-linux no-host 10,300 11,859 11,227 11,132 10,605 1.09 1.03
configure.yash no-host 1,428 1,472 1,532 1,478 1,492 1.07 1.05
hello-world no-host 1 0 2 2 1 2.71 1.15

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,402 1,177 3,307 3,472 2,818 1.38 1.17
bin-true no-host 99,924 49,836 134,429 131,736 112,104 1.35 1.12
configure.cpython no-host 1,634,892 1,638,864 1,587,698 1,604,551 1,522,241 0.97 0.93
configure.ocaml no-host 300,320 281,414 307,137 308,666 300,951 1.02 1.00
configure.tcc no-host 5,265 4,240 5,602 5,667 5,155 1.06 0.98
configure.util-linux no-host 1,548,936 1,706,622 1,508,225 1,521,077 1,475,152 0.97 0.95
configure.yash no-host 173,655 159,990 176,867 177,164 173,499 1.02 1.00
hello-world no-host 152 85 394 400 182 2.59 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 5.0 3.9 9.4 10.0 6.4 1.89 1.29
bin-true no-host 3.3 1.6 8.7 9.2 5.1 2.64 1.56
configure.cpython no-host 34.6 34.4 34.4 34.5 34.6 0.99 1.00
configure.ocaml no-host 28.9 28.8 28.5 28.8 28.8 0.99 0.99
configure.tcc no-host 26.1 26.3 26.1 26.2 26.4 1.00 1.01
configure.util-linux no-host 39.7 39.6 39.7 39.6 40.0 1.00 1.01
configure.yash no-host 33.5 33.3 33.5 33.4 33.5 1.00 1.00
hello-world no-host 3.1 1.6 6.7 7.1 3.3 2.12 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 2 0 0 0.3 6.7 3,910 3,910 0 722 1,918 1,270 2 0 50,000 0
bin-true no-host 636 1 2 3.5 8.7 151,895 10,758 2,972 14,781 72,392 64,722 3,008 3 50,000 0
configure.cpython no-host 12,216 1 63 14.8 34.4 1,750,787 35,388 28,943 93,077 869,724 787,986 25,789 61 50,000 0
configure.util-linux no-host 11,227 3 67 21.6 39.7 2,705,353 37,460 66,331 119,745 1,291,834 1,293,774 32,527 42 132,662 1
configure.ocaml no-host 3,454 1 2 2.8 28.5 149,695 12,650 6,565 9,213 70,292 70,190 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.1 30,546 30,546 0 1,680 14,470 14,396 271 0 50,000 0
configure.yash no-host 1,532 1 2 2.7 33.5 143,471 11,502 6,619 7,169 70,512 65,790 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 9.4 117,226 65,792 42,002 4,975 54,594 57,657 277 3 84,004 1
hello-world no-host 2 0 0 0.3 7.1 3,909 3,909 0 721 1,918 1,270 2 0 50,000 0
bin-true no-host 690 1 2 3.5 9.2 151,895 10,762 2,976 14,781 72,392 64,722 3,008 3 50,000 0
configure.cpython no-host 12,258 2 62 14.8 34.5 1,750,786 35,393 28,948 93,076 869,724 787,986 25,789 61 50,000 0
configure.util-linux no-host 11,132 3 65 21.6 39.6 2,705,353 37,466 66,337 119,745 1,291,834 1,293,774 32,527 42 132,674 1
configure.ocaml no-host 3,361 1 2 2.8 28.8 149,695 12,655 6,570 9,213 70,292 70,190 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.2 30,546 30,546 0 1,680 14,470 14,396 271 0 50,000 0
configure.yash no-host 1,478 1 2 2.7 33.4 143,471 11,506 6,623 7,169 70,512 65,790 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 10.0 117,226 65,796 42,006 4,975 54,594 57,657 277 3 84,012 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 13 7 6 5.0 bash
15 no-host abuild-print-help 8 6 2 3.9 dash
23 no-host abuild-print-help 19 12 8 9.4 osh-native
31 no-host abuild-print-help 20 12 9 10.0 osh-nosouffle
39 no-host abuild-print-help 16 12 4 6.4 osh-static
1 no-host bin-true 441 280 196 3.3 bash
9 no-host bin-true 305 230 76 1.6 dash
17 no-host bin-true 636 325 324 8.7 osh-native
25 no-host bin-true 690 327 345 9.2 osh-nosouffle
33 no-host bin-true 505 309 210 5.1 osh-static
2 no-host configure.cpython 11,551 7,531 4,305 34.6 bash
10 no-host configure.cpython 12,594 7,953 4,899 34.4 dash
18 no-host configure.cpython 12,216 7,506 4,898 34.4 osh-native
26 no-host configure.cpython 12,258 7,453 4,982 34.5 osh-nosouffle
34 no-host configure.cpython 11,472 7,291 4,313 34.6 osh-static
4 no-host configure.ocaml 3,314 1,523 802 28.9 bash
12 no-host configure.ocaml 3,409 1,496 908 28.8 dash
20 no-host configure.ocaml 3,454 1,538 927 28.5 osh-native
28 no-host configure.ocaml 3,361 1,504 864 28.8 osh-nosouffle
36 no-host configure.ocaml 3,356 1,490 867 28.8 osh-static
5 no-host configure.tcc 38 29 9 26.1 bash
13 no-host configure.tcc 37 20 16 26.3 dash
21 no-host configure.tcc 41 24 17 26.1 osh-native
29 no-host configure.tcc 40 29 10 26.2 osh-nosouffle
37 no-host configure.tcc 39 24 14 26.4 osh-static
3 no-host configure.util-linux 10,300 6,642 3,988 39.7 bash
11 no-host configure.util-linux 11,859 6,881 5,373 39.6 dash
19 no-host configure.util-linux 11,227 6,493 4,854 39.7 osh-native
27 no-host configure.util-linux 11,132 6,464 4,800 39.6 osh-nosouffle
35 no-host configure.util-linux 10,605 6,396 4,324 40.0 osh-static
6 no-host configure.yash 1,428 914 508 33.5 bash
14 no-host configure.yash 1,472 927 531 33.3 dash
22 no-host configure.yash 1,532 938 577 33.5 osh-native
30 no-host configure.yash 1,478 973 493 33.4 osh-nosouffle
38 no-host configure.yash 1,492 958 523 33.5 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 0 0 0 1.6 dash
16 no-host hello-world 2 1 1 6.7 osh-native
24 no-host hello-world 2 2 0 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 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,402 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,177 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,307 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,472 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,818 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,924 0 0 0 8 0 1,995 39 bash
9 no-host bin-true 49,836 0 0 0 8 0 2,998 37 dash
17 no-host bin-true 134,429 0 0 0 16 0 1,995 75 osh-native
25 no-host bin-true 131,736 0 0 0 16 0 1,997 58 osh-nosouffle
33 no-host bin-true 112,104 0 0 0 8 0 2,000 64 osh-static
2 no-host configure.cpython 1,634,892 0 0 0 25,272 0 14,004 1,032 bash
10 no-host configure.cpython 1,638,864 0 0 0 25,272 0 14,049 993 dash
18 no-host configure.cpython 1,587,698 2 0 0 25,280 0 11,320 853 osh-native
26 no-host configure.cpython 1,604,551 1 0 0 25,280 0 11,299 814 osh-nosouffle
34 no-host configure.cpython 1,522,241 1 0 0 25,272 0 11,314 811 osh-static
4 no-host configure.ocaml 300,320 0 0 0 4,432 0 2,020 180 bash
12 no-host configure.ocaml 281,414 0 0 0 4,432 0 2,106 187 dash
20 no-host configure.ocaml 307,137 0 0 0 4,440 0 1,998 186 osh-native
28 no-host configure.ocaml 308,666 0 0 0 4,440 0 2,004 215 osh-nosouffle
36 no-host configure.ocaml 300,951 0 0 0 4,432 0 1,999 212 osh-static
5 no-host configure.tcc 5,265 0 0 0 80 0 48 2 bash
13 no-host configure.tcc 4,240 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,602 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,667 0 0 0 96 0 45 0 osh-nosouffle
37 no-host configure.tcc 5,155 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,548,936 0 0 0 35,944 0 18,795 984 bash
11 no-host configure.util-linux 1,706,622 0 0 496 35,936 0 17,103 1,199 dash
19 no-host configure.util-linux 1,508,225 3 0 0 35,960 0 16,200 889 osh-native
27 no-host configure.util-linux 1,521,077 3 0 0 35,944 0 16,208 936 osh-nosouffle
35 no-host configure.util-linux 1,475,152 2 0 0 35,936 0 16,189 886 osh-static
6 no-host configure.yash 173,655 0 0 0 3,616 0 878 99 bash
14 no-host configure.yash 159,990 0 0 0 3,616 0 1,002 90 dash
22 no-host configure.yash 176,867 0 0 0 3,624 0 855 93 osh-native
30 no-host configure.yash 177,164 0 0 0 3,624 0 855 97 osh-nosouffle
38 no-host configure.yash 173,499 0 0 0 3,616 0 856 91 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 394 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 182 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-be34e2f1
osh-nosouffle osh-f0b10185
osh-static osh-static-1d20161f
host label host id
no-host no-host-9c670df1