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-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 20 10 469 23 23.90 1.19
bin-true no-host 683 548 2,338 852 3.42 1.25
configure.cpython no-host 15,555 15,567 29,694 16,004 1.91 1.03
configure.ocaml no-host 3,952 3,927 4,897 3,996 1.24 1.01
configure.tcc no-host 48 43 203 51 4.20 1.05
configure.util-linux no-host 14,429 15,459 32,510 15,265 2.25 1.06
configure.yash no-host 1,867 1,855 2,614 1,922 1.40 1.03
hello-world no-host 2 1 52 3 34.17 1.87

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,544 1,105 22,826 3,160 8.97 1.24
bin-true no-host 106,383 66,377 750,250 126,142 7.05 1.19
configure.cpython no-host 2,219,127 2,250,670 6,152,350 2,222,796 2.77 1.00
configure.ocaml no-host 410,561 391,043 637,645 413,713 1.55 1.01
configure.tcc no-host 6,549 5,469 23,240 6,977 3.55 1.07
configure.util-linux no-host 2,095,924 2,253,251 5,295,110 1,997,338 2.53 0.95
configure.yash no-host 256,003 245,155 384,685 257,881 1.50 1.01
hello-world no-host 153 80 3,723 351 24.33 2.29

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-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.5 21.8 8.9 4.88 2.00
bin-true no-host 2.9 1.4 17.4 8.0 6.05 2.77
configure.cpython no-host 27.4 27.5 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.1 19.4 19.3 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.2 1.01 1.00
hello-world no-host 2.9 1.4 17.4 6.3 6.05 2.18

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.3 3,727 3,727 0 681 1,877 1,169 2 0 50,000 0
bin-true no-host 852 1 2 2.6 8.0 154,692 12,992 2,799 9,731 78,346 66,615 5,012 3 50,000 0
configure.cpython no-host 16,004 1 65 15.0 27.5 1,772,668 49,197 28,508 86,378 908,098 778,192 42,399 60 50,000 0
configure.util-linux no-host 15,265 3 68 21.3 30.3 2,703,513 44,766 65,792 109,670 1,320,632 1,273,211 49,086 41 131,584 1
configure.ocaml no-host 3,996 1 2 2.6 20.4 150,038 11,045 5,138 7,510 71,634 70,894 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,527 30,527 0 1,501 14,801 14,225 350 0 50,000 0
configure.yash no-host 1,922 1 2 2.6 24.2 139,695 7,964 6,600 6,317 70,306 63,072 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,270 64,455 42,663 4,552 54,546 57,172 478 3 85,326 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 20 17 3 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 469 430 42 21.8 osh-cpython
31 no-host abuild-print-help 23 20 4 8.9 osh-native
1 no-host bin-true 683 503 213 2.9 bash
9 no-host bin-true 548 417 138 1.4 dash
17 no-host bin-true 2,338 1,499 1,100 17.4 osh-cpython
25 no-host bin-true 852 605 262 8.0 osh-native
2 no-host configure.cpython 15,555 9,439 6,532 27.4 bash
10 no-host configure.cpython 15,567 9,460 6,546 27.5 dash
18 no-host configure.cpython 29,694 17,638 13,973 27.4 osh-cpython
26 no-host configure.cpython 16,004 9,452 6,840 27.5 osh-native
4 no-host configure.ocaml 3,952 1,669 1,314 20.6 bash
12 no-host configure.ocaml 3,927 1,696 1,252 20.6 dash
20 no-host configure.ocaml 4,897 2,279 1,838 20.6 osh-cpython
28 no-host configure.ocaml 3,996 1,782 1,257 20.4 osh-native
5 no-host configure.tcc 48 32 17 19.1 bash
13 no-host configure.tcc 43 22 21 19.4 dash
21 no-host configure.tcc 203 133 73 19.3 osh-cpython
29 no-host configure.tcc 51 26 25 19.3 osh-native
3 no-host configure.util-linux 14,429 8,973 5,941 30.1 bash
11 no-host configure.util-linux 15,459 9,284 6,684 30.3 dash
19 no-host configure.util-linux 32,510 21,541 12,090 30.1 osh-cpython
27 no-host configure.util-linux 15,265 9,180 6,285 30.3 osh-native
6 no-host configure.yash 1,867 1,107 767 24.2 bash
14 no-host configure.yash 1,855 1,098 761 24.4 dash
22 no-host configure.yash 2,614 1,574 1,086 24.4 osh-cpython
30 no-host configure.yash 1,922 1,118 809 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 52 28 23 17.4 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native

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,544 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,826 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,160 0 0 0 16 0 39 7 osh-native
1 no-host bin-true 106,383 0 0 0 8 0 1,984 78 bash
9 no-host bin-true 66,377 0 0 0 8 0 1,987 44 dash
17 no-host bin-true 750,250 0 0 0 8 0 1,992 151 osh-cpython
25 no-host bin-true 126,142 0 0 0 16 0 1,997 167 osh-native
2 no-host configure.cpython 2,219,127 0 0 0 32,928 0 14,564 1,090 bash
10 no-host configure.cpython 2,250,670 0 0 0 32,992 0 14,697 1,111 dash
18 no-host configure.cpython 6,152,350 0 0 0 27,512 0 13,291 1,223 osh-cpython
26 no-host configure.cpython 2,222,796 0 0 0 27,520 0 13,341 1,160 osh-native
4 no-host configure.ocaml 410,561 0 0 0 5,120 0 1,975 142 bash
12 no-host configure.ocaml 391,043 0 0 0 5,112 0 1,901 145 dash
20 no-host configure.ocaml 637,645 0 0 0 5,112 0 1,871 189 osh-cpython
28 no-host configure.ocaml 413,713 0 0 0 5,120 0 1,925 154 osh-native
5 no-host configure.tcc 6,549 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,240 0 0 0 96 0 53 17 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 0 osh-native
3 no-host configure.util-linux 2,095,924 1 0 0 42,400 0 18,743 1,272 bash
11 no-host configure.util-linux 2,253,251 0 0 0 42,592 0 17,476 1,176 dash
19 no-host configure.util-linux 5,295,110 16 0 0 39,120 0 17,089 1,300 osh-cpython
27 no-host configure.util-linux 1,997,338 0 0 0 39,144 0 17,016 1,052 osh-native
6 no-host configure.yash 256,003 0 0 0 4,120 0 870 88 bash
14 no-host configure.yash 245,155 0 0 0 3,720 0 866 87 dash
22 no-host configure.yash 384,685 0 0 0 3,728 0 848 96 osh-cpython
30 no-host configure.yash 257,881 0 0 0 3,736 0 848 90 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,723 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-e9bc3393
dash dash-308ec8e6
osh-cpython osh-3fb84e50
osh-native osh-889b1892
host label host id
no-host no-host-556df3ee