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 21 21 18 1.34 1.18
bin-true no-host 614 437 786 807 649 1.28 1.06
configure.cpython no-host 13,472 13,437 13,046 13,048 12,492 0.97 0.93
configure.ocaml no-host 3,590 3,521 3,619 3,617 3,571 1.01 0.99
configure.tcc no-host 45 40 46 46 42 1.02 0.94
configure.util-linux no-host 12,511 12,932 12,140 12,198 11,708 0.97 0.94
configure.yash no-host 1,636 1,580 1,643 1,640 1,612 1.00 0.98
hello-world no-host 1 1 3 3 1 2.38 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,153 3,337 3,434 2,843 1.40 1.19
bin-true no-host 102,428 49,418 128,944 136,701 111,711 1.26 1.09
configure.cpython no-host 1,621,579 1,632,608 1,592,648 1,608,448 1,523,615 0.98 0.94
configure.ocaml no-host 299,337 280,477 306,475 307,081 300,259 1.02 1.00
configure.tcc no-host 5,207 4,200 5,603 5,656 5,142 1.08 0.99
configure.util-linux no-host 1,537,252 1,695,162 1,521,404 1,519,077 1,447,181 0.99 0.94
configure.yash no-host 173,266 159,533 176,487 177,261 172,954 1.02 1.00
hello-world no-host 152 84 389 398 180 2.56 1.18

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 3.9 9.6 10.1 6.3 1.97 1.30
bin-true no-host 3.3 1.4 8.9 9.2 5.2 2.72 1.60
configure.cpython no-host 34.6 34.4 34.6 34.8 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.3 26.3 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.8 39.6 1.00 1.00
configure.yash no-host 33.3 33.4 33.4 33.4 33.3 1.00 1.00
hello-world no-host 3.1 1.4 6.4 7.1 3.3 2.04 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.4 3,913 3,913 0 723 1,921 1,269 2 0 50,000 0
bin-true no-host 786 1 2 3.5 8.9 151,898 10,761 2,975 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 13,046 1 62 14.8 34.6 1,750,825 35,396 28,951 93,078 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 12,140 3 62 21.6 39.6 2,705,391 37,468 66,339 119,746 1,291,872 1,293,773 32,527 42 132,678 1
configure.ocaml no-host 3,619 1 2 2.8 28.7 149,698 12,653 6,568 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,643 1 2 2.7 33.4 143,474 11,505 6,622 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,232 65,798 42,005 4,977 54,599 57,656 277 3 84,010 1
hello-world no-host 3 0 0 0.3 7.1 3,912 3,912 0 722 1,921 1,269 2 0 50,000 0
bin-true no-host 807 1 2 3.5 9.2 151,898 10,765 2,979 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 13,048 1 62 14.8 34.8 1,750,824 35,401 28,956 93,077 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 12,198 3 62 21.6 39.8 2,705,391 37,474 66,345 119,746 1,291,872 1,293,773 32,527 42 132,690 1
configure.ocaml no-host 3,617 1 2 2.8 28.7 149,698 12,658 6,573 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,640 1 2 2.7 33.4 143,474 11,509 6,626 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,232 65,802 42,009 4,977 54,599 57,656 277 3 84,018 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 8 8 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 21 12 10 9.6 osh-native
31 no-host abuild-print-help 21 11 11 10.1 osh-nosouffle
39 no-host abuild-print-help 18 11 7 6.3 osh-static
1 no-host bin-true 614 311 339 3.3 bash
9 no-host bin-true 437 269 174 1.4 dash
17 no-host bin-true 786 300 500 8.9 osh-native
25 no-host bin-true 807 311 512 9.2 osh-nosouffle
33 no-host bin-true 649 318 343 5.2 osh-static
2 no-host configure.cpython 13,472 7,424 6,423 34.6 bash
10 no-host configure.cpython 13,437 7,428 6,404 34.4 dash
18 no-host configure.cpython 13,046 6,955 6,331 34.6 osh-native
26 no-host configure.cpython 13,048 6,902 6,430 34.8 osh-nosouffle
34 no-host configure.cpython 12,492 6,980 5,746 34.5 osh-static
4 no-host configure.ocaml 3,590 1,383 1,247 28.7 bash
12 no-host configure.ocaml 3,521 1,409 1,136 28.7 dash
20 no-host configure.ocaml 3,619 1,441 1,217 28.7 osh-native
28 no-host configure.ocaml 3,617 1,444 1,213 28.7 osh-nosouffle
36 no-host configure.ocaml 3,571 1,425 1,177 28.7 osh-static
5 no-host configure.tcc 45 26 20 26.2 bash
13 no-host configure.tcc 40 22 18 26.3 dash
21 no-host configure.tcc 46 27 19 26.3 osh-native
29 no-host configure.tcc 46 26 20 26.1 osh-nosouffle
37 no-host configure.tcc 42 24 18 26.2 osh-static
3 no-host configure.util-linux 12,511 6,374 6,306 39.6 bash
11 no-host configure.util-linux 12,932 6,263 7,121 39.6 dash
19 no-host configure.util-linux 12,140 6,006 6,349 39.6 osh-native
27 no-host configure.util-linux 12,198 6,142 6,275 39.8 osh-nosouffle
35 no-host configure.util-linux 11,708 5,988 5,929 39.6 osh-static
6 no-host configure.yash 1,636 912 733 33.3 bash
14 no-host configure.yash 1,580 895 687 33.4 dash
22 no-host configure.yash 1,643 921 725 33.4 osh-native
30 no-host configure.yash 1,640 893 751 33.4 osh-nosouffle
38 no-host configure.yash 1,612 947 667 33.3 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 1 1 6.4 osh-native
24 no-host hello-world 3 0 3 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,385 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,153 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,337 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,434 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,843 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 102,428 0 0 0 8 0 1,995 55 bash
9 no-host bin-true 49,418 0 0 0 8 0 2,996 48 dash
17 no-host bin-true 128,944 0 0 0 16 0 1,998 82 osh-native
25 no-host bin-true 136,701 0 0 0 16 0 1,998 103 osh-nosouffle
33 no-host bin-true 111,711 0 0 0 8 0 1,997 81 osh-static
2 no-host configure.cpython 1,621,579 0 0 0 25,272 0 14,078 1,024 bash
10 no-host configure.cpython 1,632,608 0 0 0 25,272 0 14,110 1,004 dash
18 no-host configure.cpython 1,592,648 0 0 0 25,280 0 11,305 800 osh-native
26 no-host configure.cpython 1,608,448 0 0 0 25,280 0 11,326 870 osh-nosouffle
34 no-host configure.cpython 1,523,615 0 0 0 25,272 0 11,302 815 osh-static
4 no-host configure.ocaml 299,337 0 0 0 4,432 0 2,021 193 bash
12 no-host configure.ocaml 280,477 0 0 0 4,432 0 2,107 201 dash
20 no-host configure.ocaml 306,475 0 0 0 4,440 0 1,999 206 osh-native
28 no-host configure.ocaml 307,081 0 0 0 4,440 0 2,003 201 osh-nosouffle
36 no-host configure.ocaml 300,259 0 0 0 4,432 0 2,000 218 osh-static
5 no-host configure.tcc 5,207 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,200 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,603 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,656 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,142 0 0 0 88 0 46 1 osh-static
3 no-host configure.util-linux 1,537,252 1 0 0 35,944 0 18,932 1,018 bash
11 no-host configure.util-linux 1,695,162 3 0 336 35,936 0 17,107 1,222 dash
19 no-host configure.util-linux 1,521,404 0 0 0 35,952 0 16,212 943 osh-native
27 no-host configure.util-linux 1,519,077 1 0 0 35,944 0 16,159 898 osh-nosouffle
35 no-host configure.util-linux 1,447,181 0 0 0 35,936 0 16,174 899 osh-static
6 no-host configure.yash 173,266 0 0 0 3,616 0 873 90 bash
14 no-host configure.yash 159,533 0 0 0 3,616 0 1,001 105 dash
22 no-host configure.yash 176,487 0 0 0 3,624 0 859 102 osh-native
30 no-host configure.yash 177,261 0 0 0 3,624 0 857 98 osh-nosouffle
38 no-host configure.yash 172,954 0 0 0 3,616 0 859 101 osh-static
0 no-host hello-world 152 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 389 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 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-ef7b4d5c
osh-nosouffle osh-68dc5b70
osh-static osh-static-0446a249
host label host id
no-host no-host-9c670df1