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 21 18 1.32 1.19
bin-true no-host 611 445 792 799 646 1.30 1.06
configure.cpython no-host 13,569 13,628 13,202 13,269 12,760 0.97 0.94
configure.ocaml no-host 3,631 3,559 3,661 3,655 3,610 1.01 0.99
configure.tcc no-host 45 40 46 46 42 1.02 0.94
configure.util-linux no-host 12,311 13,050 12,259 12,331 11,977 1.00 0.97
configure.yash no-host 1,661 1,609 1,665 1,665 1,636 1.00 0.98
hello-world no-host 1 1 3 3 1 2.49 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,365 1,179 3,317 3,419 2,848 1.40 1.20
bin-true no-host 101,454 49,457 132,931 133,347 111,732 1.31 1.10
configure.cpython no-host 1,628,178 1,646,985 1,586,084 1,599,943 1,526,010 0.97 0.94
configure.ocaml no-host 298,901 280,513 306,286 307,257 300,304 1.02 1.00
configure.tcc no-host 5,254 4,223 5,601 5,647 5,143 1.07 0.98
configure.util-linux no-host 1,541,027 1,702,041 1,498,022 1,518,736 1,452,470 0.97 0.94
configure.yash no-host 173,337 159,514 176,636 176,582 172,982 1.02 1.00
hello-world no-host 153 90 393 400 183 2.57 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 4.7 3.9 9.4 10.1 6.4 2.00 1.36
bin-true no-host 3.3 1.6 8.9 8.9 5.2 2.72 1.60
configure.cpython no-host 34.6 34.5 34.4 34.7 34.5 0.99 1.00
configure.ocaml no-host 28.7 28.6 28.6 28.8 28.6 1.00 1.00
configure.tcc no-host 26.2 26.3 26.3 26.0 26.2 1.01 1.00
configure.util-linux no-host 39.6 40.0 39.8 39.5 39.6 1.00 1.00
configure.yash no-host 33.4 33.3 33.3 33.4 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 3.4 2.08 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.6 3,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 792 1 2 3.5 8.9 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,202 1 62 14.8 34.4 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,259 3 61 21.6 39.8 2,705,290 37,455 66,328 119,745 1,291,807 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,661 1 2 2.8 28.6 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,665 1 2 2.7 33.3 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 3 0 0 0.3 7.1 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 799 1 2 3.5 8.9 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,269 2 65 14.8 34.7 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,331 3 63 21.6 39.5 2,705,290 37,461 66,334 119,745 1,291,807 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,655 1 2 2.8 28.8 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.0 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,665 1 2 2.7 33.4 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,223 65,793 42,003 4,975 54,597 57,651 277 3 84,006 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 7 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 20 10 10 9.4 osh-native
31 no-host abuild-print-help 21 15 7 10.1 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.4 osh-static
1 no-host bin-true 611 308 342 3.3 bash
9 no-host bin-true 445 280 169 1.6 dash
17 no-host bin-true 792 303 504 8.9 osh-native
25 no-host bin-true 799 309 507 8.9 osh-nosouffle
33 no-host bin-true 646 332 331 5.2 osh-static
2 no-host configure.cpython 13,569 7,481 6,463 34.6 bash
10 no-host configure.cpython 13,628 7,482 6,542 34.5 dash
18 no-host configure.cpython 13,202 7,061 6,408 34.4 osh-native
26 no-host configure.cpython 13,269 7,063 6,487 34.7 osh-nosouffle
34 no-host configure.cpython 12,760 7,069 5,928 34.5 osh-static
4 no-host configure.ocaml 3,631 1,432 1,239 28.7 bash
12 no-host configure.ocaml 3,559 1,474 1,108 28.6 dash
20 no-host configure.ocaml 3,661 1,475 1,218 28.6 osh-native
28 no-host configure.ocaml 3,655 1,453 1,244 28.8 osh-nosouffle
36 no-host configure.ocaml 3,610 1,447 1,195 28.6 osh-static
5 no-host configure.tcc 45 25 20 26.2 bash
13 no-host configure.tcc 40 23 18 26.3 dash
21 no-host configure.tcc 46 26 20 26.3 osh-native
29 no-host configure.tcc 46 30 17 26.0 osh-nosouffle
37 no-host configure.tcc 42 22 21 26.2 osh-static
3 no-host configure.util-linux 12,311 6,463 6,309 39.6 bash
11 no-host configure.util-linux 13,050 6,405 7,130 40.0 dash
19 no-host configure.util-linux 12,259 6,104 6,373 39.8 osh-native
27 no-host configure.util-linux 12,331 6,172 6,381 39.5 osh-nosouffle
35 no-host configure.util-linux 11,977 5,996 6,189 39.6 osh-static
6 no-host configure.yash 1,661 937 733 33.4 bash
14 no-host configure.yash 1,609 898 713 33.3 dash
22 no-host configure.yash 1,665 900 767 33.3 osh-native
30 no-host configure.yash 1,665 918 750 33.4 osh-nosouffle
38 no-host configure.yash 1,636 918 720 33.3 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 7.1 osh-nosouffle
32 no-host hello-world 1 1 1 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,365 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,179 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,317 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,419 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,848 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,454 0 0 0 8 0 2,000 63 bash
9 no-host bin-true 49,457 0 0 0 8 0 2,996 45 dash
17 no-host bin-true 132,931 0 0 0 16 0 1,999 91 osh-native
25 no-host bin-true 133,347 0 0 0 16 0 1,998 87 osh-nosouffle
33 no-host bin-true 111,732 0 0 0 8 0 1,997 52 osh-static
2 no-host configure.cpython 1,628,178 0 0 0 25,272 0 14,081 1,003 bash
10 no-host configure.cpython 1,646,985 0 0 0 25,280 0 14,106 983 dash
18 no-host configure.cpython 1,586,084 0 0 0 25,280 0 11,293 852 osh-native
26 no-host configure.cpython 1,599,943 0 0 0 25,280 0 11,328 854 osh-nosouffle
34 no-host configure.cpython 1,526,010 0 0 0 25,272 0 11,312 823 osh-static
4 no-host configure.ocaml 298,901 0 0 0 4,432 0 2,018 184 bash
12 no-host configure.ocaml 280,513 0 0 0 4,432 0 2,108 187 dash
20 no-host configure.ocaml 306,286 0 0 0 4,440 0 1,999 211 osh-native
28 no-host configure.ocaml 307,257 0 0 0 4,440 0 1,999 179 osh-nosouffle
36 no-host configure.ocaml 300,304 0 0 0 4,432 0 1,996 186 osh-static
5 no-host configure.tcc 5,254 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,223 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,601 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,647 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,143 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,541,027 0 0 232 35,944 0 18,923 1,091 bash
11 no-host configure.util-linux 1,702,041 0 0 0 35,936 0 17,077 1,214 dash
19 no-host configure.util-linux 1,498,022 0 0 0 35,952 0 16,204 939 osh-native
27 no-host configure.util-linux 1,518,736 0 0 0 35,944 0 16,220 892 osh-nosouffle
35 no-host configure.util-linux 1,452,470 1 0 0 35,944 0 16,191 980 osh-static
6 no-host configure.yash 173,337 0 0 0 3,616 0 877 105 bash
14 no-host configure.yash 159,514 0 0 0 3,624 0 1,002 101 dash
22 no-host configure.yash 176,636 0 0 0 3,624 0 858 102 osh-native
30 no-host configure.yash 176,582 0 0 0 3,624 0 857 98 osh-nosouffle
38 no-host configure.yash 172,982 0 0 0 3,616 0 858 99 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 90 0 0 0 8 0 1 0 dash
16 no-host hello-world 393 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-f730b813
osh-nosouffle osh-0559a5e2
osh-static osh-static-6c4c38ca
host label host id
no-host no-host-9c670df1