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 18 1.31 1.16
bin-true no-host 613 443 810 813 658 1.32 1.07
configure.cpython no-host 13,855 13,887 13,532 13,631 13,056 0.98 0.94
configure.ocaml no-host 3,664 3,660 3,710 3,735 3,676 1.01 1.00
configure.tcc no-host 45 41 47 47 43 1.04 0.97
configure.util-linux no-host 12,554 13,432 12,811 12,846 12,174 1.02 0.97
configure.yash no-host 1,697 1,650 1,722 1,730 1,669 1.01 0.98
hello-world no-host 1 1 3 3 1 2.38 1.06

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,362 1,176 3,318 3,407 2,810 1.40 1.19
bin-true no-host 100,462 49,385 133,040 132,367 111,679 1.32 1.11
configure.cpython no-host 1,621,778 1,636,642 1,594,233 1,594,528 1,517,294 0.98 0.94
configure.ocaml no-host 298,759 280,618 306,600 307,183 300,002 1.03 1.00
configure.tcc no-host 5,229 4,205 5,607 5,683 5,131 1.07 0.98
configure.util-linux no-host 1,541,696 1,703,458 1,526,007 1,522,246 1,469,648 0.99 0.95
configure.yash no-host 173,313 159,529 176,215 177,297 173,049 1.02 1.00
hello-world no-host 151 84 393 400 182 2.60 1.21

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.0 6.4 2.00 1.36
bin-true no-host 3.1 1.6 8.8 9.2 5.1 2.79 1.62
configure.cpython no-host 34.5 34.7 34.5 34.3 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.6 28.5 1.00 1.00
configure.tcc no-host 26.2 26.4 26.2 26.0 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.6 39.6 39.6 1.00 1.00
configure.yash no-host 33.3 33.4 33.2 33.1 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.4 6.9 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,910 3,910 0 722 1,918 1,270 2 0 50,000 0
bin-true no-host 810 1 2 3.5 8.8 151,895 10,758 2,972 14,781 72,392 64,722 3,008 3 50,000 0
configure.cpython no-host 13,532 1 67 14.8 34.5 1,750,822 35,393 28,948 93,077 869,759 787,986 25,789 61 50,000 0
configure.util-linux no-host 12,811 3 67 21.6 39.6 2,705,388 37,465 66,336 119,745 1,291,869 1,293,774 32,527 42 132,672 1
configure.ocaml no-host 3,710 1 2 2.8 28.7 149,695 12,650 6,565 9,213 70,292 70,190 1,693 3 50,000 0
configure.tcc no-host 47 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,722 1 2 2.7 33.2 143,471 11,502 6,619 7,167 70,522 65,782 2,095 3 50,000 0
abuild-print-help no-host 20 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 3 0 0 0.3 6.9 3,909 3,909 0 721 1,918 1,270 2 0 50,000 0
bin-true no-host 813 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 13,631 1 67 14.8 34.3 1,750,821 35,398 28,953 93,076 869,759 787,986 25,789 61 50,000 0
configure.util-linux no-host 12,846 3 67 21.6 39.6 2,705,388 37,471 66,342 119,745 1,291,869 1,293,774 32,527 42 132,684 1
configure.ocaml no-host 3,735 1 2 2.8 28.6 149,695 12,655 6,570 9,213 70,292 70,190 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,546 30,546 0 1,680 14,470 14,396 271 0 50,000 0
configure.yash no-host 1,730 1 2 2.7 33.1 143,471 11,506 6,623 7,167 70,522 65,782 2,095 3 50,000 0
abuild-print-help no-host 21 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 16 9 7 4.7 bash
15 no-host abuild-print-help 9 6 3 3.9 dash
23 no-host abuild-print-help 20 10 11 9.4 osh-native
31 no-host abuild-print-help 21 9 13 10.0 osh-nosouffle
39 no-host abuild-print-help 18 9 10 6.4 osh-static
1 no-host bin-true 613 311 339 3.1 bash
9 no-host bin-true 443 281 168 1.6 dash
17 no-host bin-true 810 302 525 8.8 osh-native
25 no-host bin-true 813 294 536 9.2 osh-nosouffle
33 no-host bin-true 658 330 343 5.1 osh-static
2 no-host configure.cpython 13,855 7,645 6,552 34.5 bash
10 no-host configure.cpython 13,887 7,620 6,662 34.7 dash
18 no-host configure.cpython 13,532 7,175 6,640 34.5 osh-native
26 no-host configure.cpython 13,631 7,249 6,657 34.3 osh-nosouffle
34 no-host configure.cpython 13,056 7,237 6,048 34.4 osh-static
4 no-host configure.ocaml 3,664 1,472 1,231 28.7 bash
12 no-host configure.ocaml 3,660 1,479 1,205 28.7 dash
20 no-host configure.ocaml 3,710 1,438 1,312 28.7 osh-native
28 no-host configure.ocaml 3,735 1,480 1,290 28.6 osh-nosouffle
36 no-host configure.ocaml 3,676 1,480 1,226 28.5 osh-static
5 no-host configure.tcc 45 19 26 26.2 bash
13 no-host configure.tcc 41 26 16 26.4 dash
21 no-host configure.tcc 47 28 19 26.2 osh-native
29 no-host configure.tcc 47 22 26 26.0 osh-nosouffle
37 no-host configure.tcc 43 21 23 26.2 osh-static
3 no-host configure.util-linux 12,554 6,612 6,388 39.6 bash
11 no-host configure.util-linux 13,432 6,594 7,320 39.7 dash
19 no-host configure.util-linux 12,811 6,348 6,683 39.6 osh-native
27 no-host configure.util-linux 12,846 6,297 6,769 39.6 osh-nosouffle
35 no-host configure.util-linux 12,174 6,244 6,145 39.6 osh-static
6 no-host configure.yash 1,697 947 757 33.3 bash
14 no-host configure.yash 1,650 944 707 33.4 dash
22 no-host configure.yash 1,722 960 764 33.2 osh-native
30 no-host configure.yash 1,730 961 770 33.1 osh-nosouffle
38 no-host configure.yash 1,669 954 717 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.4 osh-native
24 no-host hello-world 3 2 1 6.9 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,362 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,176 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,318 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,407 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,810 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,462 0 0 0 8 0 1,998 68 bash
9 no-host bin-true 49,385 0 0 0 8 0 2,994 50 dash
17 no-host bin-true 133,040 0 0 0 16 0 1,997 76 osh-native
25 no-host bin-true 132,367 0 0 0 16 0 1,997 83 osh-nosouffle
33 no-host bin-true 111,679 0 0 0 8 0 2,000 73 osh-static
2 no-host configure.cpython 1,621,778 0 0 0 25,272 0 14,082 1,023 bash
10 no-host configure.cpython 1,636,642 0 0 0 25,272 0 14,136 1,026 dash
18 no-host configure.cpython 1,594,233 0 0 0 25,280 0 11,304 856 osh-native
26 no-host configure.cpython 1,594,528 0 0 0 25,280 0 11,315 810 osh-nosouffle
34 no-host configure.cpython 1,517,294 0 0 0 25,272 0 11,307 833 osh-static
4 no-host configure.ocaml 298,759 0 0 0 4,432 0 2,013 185 bash
12 no-host configure.ocaml 280,618 0 0 0 4,432 0 2,103 203 dash
20 no-host configure.ocaml 306,600 0 0 0 4,440 0 1,999 203 osh-native
28 no-host configure.ocaml 307,183 0 0 0 4,440 0 2,000 197 osh-nosouffle
36 no-host configure.ocaml 300,002 0 0 0 4,432 0 2,001 226 osh-static
5 no-host configure.tcc 5,229 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,205 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,607 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,683 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,131 0 0 0 88 0 44 3 osh-static
3 no-host configure.util-linux 1,541,696 2 0 0 35,944 0 19,015 1,004 bash
11 no-host configure.util-linux 1,703,458 0 0 336 35,936 0 17,108 1,161 dash
19 no-host configure.util-linux 1,526,007 2 0 0 35,952 0 16,129 951 osh-native
27 no-host configure.util-linux 1,522,246 0 0 0 35,944 0 16,192 942 osh-nosouffle
35 no-host configure.util-linux 1,469,648 4 0 0 35,936 0 16,219 964 osh-static
6 no-host configure.yash 173,313 0 0 0 3,616 0 879 97 bash
14 no-host configure.yash 159,529 0 0 0 3,624 0 1,002 102 dash
22 no-host configure.yash 176,215 0 0 0 3,632 0 860 105 osh-native
30 no-host configure.yash 177,297 0 0 0 3,624 0 859 95 osh-nosouffle
38 no-host configure.yash 173,049 0 0 0 3,616 0 858 99 osh-static
0 no-host hello-world 151 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 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 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-6f2a375b
osh-nosouffle osh-c9086385
osh-static osh-static-46dc6ec9
host label host id
no-host no-host-9c670df1