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 452 22 22.98 1.14
bin-true no-host 678 546 2,249 819 3.32 1.21
configure.cpython no-host 15,223 15,394 28,546 15,127 1.88 0.99
configure.ocaml no-host 3,893 3,788 4,632 3,803 1.19 0.98
configure.tcc no-host 48 42 191 48 3.99 1.01
configure.util-linux no-host 14,333 15,135 31,155 14,301 2.17 1.00
configure.yash no-host 1,857 1,814 2,423 1,819 1.30 0.98
hello-world no-host 2 1 50 3 31.48 1.76

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,533 1,115 23,682 3,209 9.35 1.27
bin-true no-host 105,343 65,449 758,579 127,243 7.20 1.21
configure.cpython no-host 2,217,880 2,241,356 6,136,828 2,230,046 2.77 1.01
configure.ocaml no-host 410,580 391,463 637,822 413,088 1.55 1.01
configure.tcc no-host 6,564 5,477 23,147 6,974 3.53 1.06
configure.util-linux no-host 2,096,558 2,263,882 5,308,911 2,013,920 2.53 0.96
configure.yash no-host 255,263 245,016 385,212 258,355 1.51 1.01
hello-world no-host 155 79 3,670 346 23.68 2.23

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.3 3.4 21.4 8.9 4.94 2.06
bin-true no-host 2.9 1.6 17.4 7.9 6.05 2.73
configure.cpython no-host 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.1 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.0 30.3 30.1 30.3 1.00 1.01
configure.yash no-host 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.3 17.3 6.2 6.00 2.14

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.2 3,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 819 1 2 2.7 7.9 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 15,127 1 60 15.8 27.4 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,301 3 59 22.2 30.3 2,703,274 42,775 65,816 126,121 1,320,501 1,256,652 49,081 41 131,632 1
configure.ocaml no-host 3,803 1 2 2.7 20.6 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,819 1 2 2.6 24.4 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,272 64,459 42,667 4,610 54,550 57,112 478 3 85,334 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 14 6 4.3 bash
15 no-host abuild-print-help 10 8 3 3.4 dash
23 no-host abuild-print-help 452 405 50 21.4 osh-cpython
31 no-host abuild-print-help 22 8 15 8.9 osh-native
1 no-host bin-true 678 514 194 2.9 bash
9 no-host bin-true 546 418 136 1.6 dash
17 no-host bin-true 2,249 1,436 1,076 17.4 osh-cpython
25 no-host bin-true 819 575 259 7.9 osh-native
2 no-host configure.cpython 15,223 9,093 6,522 27.4 bash
10 no-host configure.cpython 15,394 9,185 6,618 27.4 dash
18 no-host configure.cpython 28,546 17,050 13,317 27.5 osh-cpython
26 no-host configure.cpython 15,127 8,981 6,402 27.4 osh-native
4 no-host configure.ocaml 3,893 1,722 1,203 20.6 bash
12 no-host configure.ocaml 3,788 1,564 1,243 20.4 dash
20 no-host configure.ocaml 4,632 2,181 1,654 20.6 osh-cpython
28 no-host configure.ocaml 3,803 1,685 1,156 20.6 osh-native
5 no-host configure.tcc 48 27 21 19.4 bash
13 no-host configure.tcc 42 32 10 19.1 dash
21 no-host configure.tcc 191 143 52 19.4 osh-cpython
29 no-host configure.tcc 48 23 26 19.3 osh-native
3 no-host configure.util-linux 14,333 8,969 5,840 30.0 bash
11 no-host configure.util-linux 15,135 9,321 6,300 30.3 dash
19 no-host configure.util-linux 31,155 20,604 11,627 30.1 osh-cpython
27 no-host configure.util-linux 14,301 8,635 5,858 30.3 osh-native
6 no-host configure.yash 1,857 1,124 742 24.2 bash
14 no-host configure.yash 1,814 1,064 754 24.4 dash
22 no-host configure.yash 2,423 1,515 949 24.4 osh-cpython
30 no-host configure.yash 1,819 1,090 732 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 50 34 16 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,533 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,115 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,682 0 0 0 8 0 47 18 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 105,343 0 0 0 8 0 1,984 111 bash
9 no-host bin-true 65,449 0 0 0 8 0 1,982 46 dash
17 no-host bin-true 758,579 0 0 0 8 0 1,992 165 osh-cpython
25 no-host bin-true 127,243 0 0 0 16 0 1,987 103 osh-native
2 no-host configure.cpython 2,217,880 0 0 0 32,928 0 14,433 1,131 bash
10 no-host configure.cpython 2,241,356 0 0 0 32,992 0 14,621 1,189 dash
18 no-host configure.cpython 6,136,828 0 0 0 27,512 0 13,251 1,176 osh-cpython
26 no-host configure.cpython 2,230,046 0 0 0 27,520 0 13,304 1,210 osh-native
4 no-host configure.ocaml 410,580 0 0 0 5,120 0 1,964 171 bash
12 no-host configure.ocaml 391,463 0 0 0 5,112 0 1,942 128 dash
20 no-host configure.ocaml 637,822 0 0 0 5,112 0 1,858 203 osh-cpython
28 no-host configure.ocaml 413,088 0 0 0 5,120 0 1,934 166 osh-native
5 no-host configure.tcc 6,564 0 0 0 104 0 48 1 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,147 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,974 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,096,558 1 0 0 42,400 0 18,598 1,132 bash
11 no-host configure.util-linux 2,263,882 5 0 0 42,584 0 17,507 1,084 dash
19 no-host configure.util-linux 5,308,911 6 0 0 39,112 0 17,068 1,215 osh-cpython
27 no-host configure.util-linux 2,013,920 0 0 0 39,120 0 17,047 1,037 osh-native
6 no-host configure.yash 255,263 0 0 0 4,120 0 870 83 bash
14 no-host configure.yash 245,016 0 0 0 3,720 0 866 93 dash
22 no-host configure.yash 385,212 0 0 0 3,728 0 858 109 osh-cpython
30 no-host configure.yash 258,355 0 0 0 3,736 0 852 254 osh-native
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,670 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-f4e6e782
dash dash-308ec8e6
osh-cpython osh-74b0c53e
osh-native osh-d84cc45e
host label host id
no-host no-host-1c33b689