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 19 1.30 1.18
bin-true no-host 619 441 795 811 654 1.28 1.06
configure.cpython no-host 13,566 13,591 13,166 13,198 12,662 0.97 0.93
configure.ocaml no-host 3,599 3,556 3,644 3,647 3,610 1.01 1.00
configure.tcc no-host 45 41 46 46 42 1.02 0.94
configure.util-linux no-host 12,312 13,076 12,271 12,301 11,907 1.00 0.97
configure.yash no-host 1,652 1,605 1,651 1,659 1,638 1.00 0.99
hello-world no-host 1 1 3 3 1 2.48 1.07

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,388 1,167 3,349 3,394 2,834 1.40 1.19
bin-true no-host 100,476 49,438 130,287 136,361 112,032 1.30 1.12
configure.cpython no-host 1,624,536 1,641,761 1,592,032 1,600,776 1,516,911 0.98 0.93
configure.ocaml no-host 299,315 280,615 306,574 306,910 300,161 1.02 1.00
configure.tcc no-host 5,240 4,213 5,599 5,676 5,125 1.07 0.98
configure.util-linux no-host 1,534,712 1,696,781 1,509,521 1,513,649 1,479,590 0.98 0.96
configure.yash no-host 173,295 159,524 176,710 176,742 172,838 1.02 1.00
hello-world no-host 150 84 395 400 183 2.63 1.22

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.0 6.2 1.97 1.27
bin-true no-host 3.3 1.6 8.7 9.2 5.1 2.64 1.56
configure.cpython no-host 34.4 34.4 34.6 34.7 34.6 1.01 1.01
configure.ocaml no-host 28.5 28.6 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.1 26.3 26.2 26.3 1.00 1.00
configure.util-linux no-host 39.7 39.6 39.8 39.4 39.6 1.00 1.00
configure.yash no-host 33.5 33.1 33.4 33.4 33.1 1.00 0.99
hello-world no-host 3.1 1.4 6.7 6.9 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 3 0 0 0.3 6.7 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 795 1 2 3.5 8.7 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,166 1 62 14.8 34.6 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,271 3 63 21.6 39.8 2,705,398 37,471 66,342 119,749 1,291,874 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,644 1 2 2.8 28.7 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 46 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,651 1 2 2.7 33.4 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,239 65,801 42,008 4,980 54,601 57,658 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 811 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,198 1 64 14.9 34.7 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,301 3 62 21.6 39.4 2,705,398 37,477 66,348 119,749 1,291,874 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,647 1 2 2.8 28.7 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,659 1 2 2.7 33.4 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,239 65,805 42,012 4,980 54,601 57,658 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 16 9 8 4.8 bash
15 no-host abuild-print-help 9 5 4 4.1 dash
23 no-host abuild-print-help 20 12 9 9.6 osh-native
31 no-host abuild-print-help 21 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 19 10 9 6.2 osh-static
1 no-host bin-true 619 320 336 3.3 bash
9 no-host bin-true 441 266 181 1.6 dash
17 no-host bin-true 795 304 506 8.7 osh-native
25 no-host bin-true 811 298 530 9.2 osh-nosouffle
33 no-host bin-true 654 321 350 5.1 osh-static
2 no-host configure.cpython 13,566 7,444 6,513 34.4 bash
10 no-host configure.cpython 13,591 7,394 6,602 34.4 dash
18 no-host configure.cpython 13,166 7,098 6,337 34.6 osh-native
26 no-host configure.cpython 13,198 7,029 6,450 34.7 osh-nosouffle
34 no-host configure.cpython 12,662 6,993 5,907 34.6 osh-static
4 no-host configure.ocaml 3,599 1,471 1,169 28.5 bash
12 no-host configure.ocaml 3,556 1,461 1,120 28.6 dash
20 no-host configure.ocaml 3,644 1,443 1,241 28.7 osh-native
28 no-host configure.ocaml 3,647 1,470 1,219 28.7 osh-nosouffle
36 no-host configure.ocaml 3,610 1,472 1,169 28.7 osh-static
5 no-host configure.tcc 45 25 20 26.3 bash
13 no-host configure.tcc 41 27 14 26.1 dash
21 no-host configure.tcc 46 28 18 26.3 osh-native
29 no-host configure.tcc 46 31 16 26.2 osh-nosouffle
37 no-host configure.tcc 42 24 19 26.3 osh-static
3 no-host configure.util-linux 12,312 6,455 6,327 39.7 bash
11 no-host configure.util-linux 13,076 6,426 7,140 39.6 dash
19 no-host configure.util-linux 12,271 6,083 6,408 39.8 osh-native
27 no-host configure.util-linux 12,301 6,130 6,401 39.4 osh-nosouffle
35 no-host configure.util-linux 11,907 6,069 6,056 39.6 osh-static
6 no-host configure.yash 1,652 926 735 33.5 bash
14 no-host configure.yash 1,605 928 679 33.1 dash
22 no-host configure.yash 1,651 925 729 33.4 osh-native
30 no-host configure.yash 1,659 939 723 33.4 osh-nosouffle
38 no-host configure.yash 1,638 926 715 33.1 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 2 1 6.7 osh-native
24 no-host hello-world 3 1 2 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,388 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,167 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 3,349 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,394 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,834 0 0 0 8 0 38 3 osh-static
1 no-host bin-true 100,476 0 0 0 8 0 1,997 57 bash
9 no-host bin-true 49,438 0 0 0 8 0 2,998 47 dash
17 no-host bin-true 130,287 0 0 0 16 0 2,000 80 osh-native
25 no-host bin-true 136,361 0 0 0 16 0 1,998 68 osh-nosouffle
33 no-host bin-true 112,032 0 0 0 8 0 2,000 64 osh-static
2 no-host configure.cpython 1,624,536 0 0 0 25,272 0 14,080 965 bash
10 no-host configure.cpython 1,641,761 0 0 0 25,272 0 14,114 1,137 dash
18 no-host configure.cpython 1,592,032 0 0 0 25,280 0 11,310 808 osh-native
26 no-host configure.cpython 1,600,776 0 0 0 25,280 0 11,296 863 osh-nosouffle
34 no-host configure.cpython 1,516,911 1 0 0 25,272 0 11,314 867 osh-static
4 no-host configure.ocaml 299,315 0 0 0 4,432 0 2,019 186 bash
12 no-host configure.ocaml 280,615 0 0 0 4,432 0 2,110 199 dash
20 no-host configure.ocaml 306,574 0 0 0 4,440 0 2,003 209 osh-native
28 no-host configure.ocaml 306,910 0 0 0 4,440 0 2,000 187 osh-nosouffle
36 no-host configure.ocaml 300,161 0 0 0 4,432 0 2,000 217 osh-static
5 no-host configure.tcc 5,240 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,599 0 0 0 96 0 44 2 osh-native
29 no-host configure.tcc 5,676 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,125 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,534,712 1 0 0 35,936 0 19,002 1,031 bash
11 no-host configure.util-linux 1,696,781 1 0 0 35,936 0 17,084 1,166 dash
19 no-host configure.util-linux 1,509,521 4 0 0 35,960 0 16,161 949 osh-native
27 no-host configure.util-linux 1,513,649 0 0 0 35,952 0 16,224 965 osh-nosouffle
35 no-host configure.util-linux 1,479,590 0 0 0 35,944 0 16,132 905 osh-static
6 no-host configure.yash 173,295 0 0 0 3,616 0 877 97 bash
14 no-host configure.yash 159,524 0 0 0 3,624 0 1,002 108 dash
22 no-host configure.yash 176,710 0 0 0 3,624 0 857 102 osh-native
30 no-host configure.yash 176,742 0 0 0 3,624 0 858 88 osh-nosouffle
38 no-host configure.yash 172,838 0 0 0 3,616 0 856 102 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 395 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 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-b67945d7
osh-nosouffle osh-272d8775
osh-static osh-static-cb933009
host label host id
no-host no-host-bba74091