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 21 22 18 1.31 1.15
bin-true no-host 613 438 814 821 668 1.33 1.09
configure.cpython no-host 13,911 14,011 13,135 13,225 12,670 0.94 0.91
configure.ocaml no-host 3,721 3,640 3,745 3,747 3,694 1.01 0.99
configure.tcc no-host 46 41 47 47 44 1.03 0.95
configure.util-linux no-host 12,719 13,395 10,470 10,521 10,178 0.82 0.80
configure.yash no-host 1,718 1,650 1,709 1,720 1,700 0.99 0.99
hello-world no-host 1 1 3 3 2 2.57 1.25

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,371 1,173 3,476 3,563 2,963 1.47 1.25
bin-true no-host 99,511 49,455 133,495 135,131 112,106 1.34 1.13
configure.cpython no-host 1,628,307 1,635,972 1,529,082 1,541,025 1,460,329 0.94 0.90
configure.ocaml no-host 299,256 280,753 305,487 307,328 300,941 1.02 1.01
configure.tcc no-host 5,243 4,217 5,759 5,810 5,251 1.10 1.00
configure.util-linux no-host 1,540,938 1,695,424 1,241,428 1,254,107 1,211,199 0.81 0.79
configure.yash no-host 173,275 159,499 176,334 177,243 172,881 1.02 1.00
hello-world no-host 153 87 520 528 313 3.40 2.05

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.7 4.1 10.1 10.5 6.9 2.14 1.47
bin-true no-host 3.1 1.6 9.3 9.7 5.8 2.96 1.83
configure.cpython no-host 34.5 34.5 34.4 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.5 28.7 28.7 28.7 28.6 1.01 1.00
configure.tcc no-host 26.2 26.1 26.0 26.1 26.2 0.99 1.00
configure.util-linux no-host 39.6 39.6 39.4 39.5 39.7 0.99 1.00
configure.yash no-host 33.3 33.4 33.2 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 7.1 7.5 3.9 2.16 1.20

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.8 7.1 3,896 3,896 0 720 1,912 1,264 2 0 50,000 0
bin-true no-host 814 1 2 4.1 9.3 151,881 10,750 2,964 14,779 72,386 64,716 3,008 3 50,000 0
configure.cpython no-host 13,135 1 64 14.8 34.4 1,674,700 37,450 28,935 87,942 833,631 753,127 25,001 58 50,000 0
configure.util-linux no-host 10,470 3 64 20.0 39.4 2,673,485 106,817 66,323 110,632 1,301,531 1,261,322 32,420 41 132,646 1
configure.ocaml no-host 3,745 1 2 3.3 28.7 149,681 12,642 6,557 9,211 70,286 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.9 26.0 30,530 30,530 0 1,678 14,463 14,389 271 0 50,000 0
configure.yash no-host 1,709 1 2 3.2 33.2 143,443 11,455 6,611 7,164 70,499 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.7 10.1 117,212 65,784 41,994 4,974 54,587 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.8 7.5 3,895 3,895 0 719 1,912 1,264 2 0 50,000 0
bin-true no-host 821 1 2 4.1 9.7 151,881 10,754 2,968 14,779 72,386 64,716 3,008 3 50,000 0
configure.cpython no-host 13,225 1 65 14.8 34.5 1,674,699 37,455 28,940 87,941 833,631 753,127 25,001 58 50,000 0
configure.util-linux no-host 10,521 3 65 20.0 39.5 2,673,485 106,823 66,329 110,632 1,301,531 1,261,322 32,420 41 132,658 1
configure.ocaml no-host 3,747 1 2 3.3 28.7 149,681 12,647 6,562 9,211 70,286 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.9 26.1 30,530 30,530 0 1,678 14,463 14,389 271 0 50,000 0
configure.yash no-host 1,720 1 2 3.2 33.4 143,443 11,459 6,615 7,164 70,499 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.7 10.5 117,212 65,788 41,998 4,974 54,587 57,651 277 3 83,996 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 7 4.7 bash
15 no-host abuild-print-help 9 5 5 4.1 dash
23 no-host abuild-print-help 21 10 12 10.1 osh-native
31 no-host abuild-print-help 22 11 12 10.5 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.9 osh-static
1 no-host bin-true 613 312 337 3.1 bash
9 no-host bin-true 438 270 175 1.6 dash
17 no-host bin-true 814 296 533 9.3 osh-native
25 no-host bin-true 821 295 543 9.7 osh-nosouffle
33 no-host bin-true 668 319 366 5.8 osh-static
2 no-host configure.cpython 13,911 7,574 6,724 34.5 bash
10 no-host configure.cpython 14,011 7,783 6,631 34.5 dash
18 no-host configure.cpython 13,135 6,948 6,443 34.4 osh-native
26 no-host configure.cpython 13,225 6,970 6,523 34.5 osh-nosouffle
34 no-host configure.cpython 12,670 6,916 5,972 34.5 osh-static
4 no-host configure.ocaml 3,721 1,460 1,305 28.5 bash
12 no-host configure.ocaml 3,640 1,441 1,223 28.7 dash
20 no-host configure.ocaml 3,745 1,495 1,289 28.7 osh-native
28 no-host configure.ocaml 3,747 1,488 1,301 28.7 osh-nosouffle
36 no-host configure.ocaml 3,694 1,487 1,239 28.6 osh-static
5 no-host configure.tcc 46 29 17 26.2 bash
13 no-host configure.tcc 41 23 18 26.1 dash
21 no-host configure.tcc 47 25 23 26.0 osh-native
29 no-host configure.tcc 47 29 18 26.1 osh-nosouffle
37 no-host configure.tcc 44 28 17 26.2 osh-static
3 no-host configure.util-linux 12,719 6,734 6,450 39.6 bash
11 no-host configure.util-linux 13,395 6,653 7,228 39.6 dash
19 no-host configure.util-linux 10,470 5,320 5,247 39.4 osh-native
27 no-host configure.util-linux 10,521 5,310 5,306 39.5 osh-nosouffle
35 no-host configure.util-linux 10,178 5,297 4,970 39.7 osh-static
6 no-host configure.yash 1,718 979 747 33.3 bash
14 no-host configure.yash 1,650 950 701 33.4 dash
22 no-host configure.yash 1,709 972 740 33.2 osh-native
30 no-host configure.yash 1,720 973 749 33.4 osh-nosouffle
38 no-host configure.yash 1,700 946 756 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 7.1 osh-native
24 no-host hello-world 3 1 2 7.5 osh-nosouffle
32 no-host hello-world 2 0 2 3.9 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,371 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,173 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,476 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,563 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,963 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,511 0 0 0 8 0 1,998 54 bash
9 no-host bin-true 49,455 0 0 0 8 0 2,995 54 dash
17 no-host bin-true 133,495 0 0 0 16 0 1,998 92 osh-native
25 no-host bin-true 135,131 0 0 0 16 0 1,998 80 osh-nosouffle
33 no-host bin-true 112,106 0 0 0 8 0 1,999 60 osh-static
2 no-host configure.cpython 1,628,307 0 0 0 25,272 0 14,067 1,019 bash
10 no-host configure.cpython 1,635,972 0 0 0 25,272 0 14,116 995 dash
18 no-host configure.cpython 1,529,082 0 0 0 24,032 0 10,483 795 osh-native
26 no-host configure.cpython 1,541,025 0 0 0 24,040 0 10,505 803 osh-nosouffle
34 no-host configure.cpython 1,460,329 0 0 0 24,032 0 10,495 780 osh-static
4 no-host configure.ocaml 299,256 0 0 0 4,432 0 2,014 230 bash
12 no-host configure.ocaml 280,753 0 0 0 4,432 0 2,110 198 dash
20 no-host configure.ocaml 305,487 0 0 0 4,440 0 1,999 220 osh-native
28 no-host configure.ocaml 307,328 0 0 0 4,440 0 2,000 203 osh-nosouffle
36 no-host configure.ocaml 300,941 0 0 0 4,432 0 2,000 206 osh-static
5 no-host configure.tcc 5,243 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,217 0 0 0 88 0 52 4 dash
21 no-host configure.tcc 5,759 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,810 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,251 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,540,938 1 0 232 35,944 0 18,983 1,047 bash
11 no-host configure.util-linux 1,695,424 2 0 0 35,936 0 17,090 1,303 dash
19 no-host configure.util-linux 1,241,428 1 0 0 24,264 0 7,646 753 osh-native
27 no-host configure.util-linux 1,254,107 1 0 0 24,264 0 7,755 914 osh-nosouffle
35 no-host configure.util-linux 1,211,199 1 0 0 24,256 0 7,647 741 osh-static
6 no-host configure.yash 173,275 0 0 0 3,616 0 878 96 bash
14 no-host configure.yash 159,499 0 0 0 3,616 0 1,002 111 dash
22 no-host configure.yash 176,334 0 0 0 3,624 0 857 95 osh-native
30 no-host configure.yash 177,243 0 0 0 3,624 0 858 112 osh-nosouffle
38 no-host configure.yash 172,881 0 0 0 3,616 0 856 100 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 520 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 528 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 313 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-6f1ee808
osh-nosouffle osh-99a37773
osh-static osh-static-05a93a0b
host label host id
no-host no-host-9c670df1