| 99 | == wl_benchmark (WARPLab 7.3.0 and later)== |
| 100 | File source: [browser:ResearchApps/PHY/WARPLAB/WARPLab7/M_Code_Reference/util/wl_benchmark.m wl_benchmark.m] |
| 101 | |
| 102 | With the release of WARPLab 7.3.0, wl_benchmark is now available to perform some basic WARPLab benchmarks on your system setup. The current benchmarks are: |
| 103 | * Available in WARPLab 7.3.0 or later |
| 104 | * Read IQ: 'read_iq' |
| 105 | * Write IQ: 'write_iq' |
| 106 | |
| 107 | As more benchmarks are developed, these will be added to the wl_benchmark utility. To run the utility, you must pass in: |
| 108 | * Array of [wiki:../Architecture/Classes#Node wl_node] objects |
| 109 | * Benchmark to be run |
| 110 | * Number of trials to be run |
| 111 | * Number of samples to be used as part of the benchmark |
| 112 | * For WARP v2 hardware, this is between 1 and 16384 |
| 113 | * For WARP v3 hardware, this is between 1 and 32768 |
| 114 | * Can use the keyword 'max' to run the maximum number of samples for the hardware |
| 115 | |
| 116 | For more information on the WARPLab benchmarks, please visit the [wiki:WARPLab/Benchmarks Benchmarks] page. |
| 117 | |
| 118 | |
| 119 | Examples: |
| 120 | |
| 121 | NOTE: This was performed after running [wiki:WARPLab/Reference/Utility#wl_setup wl_setup] to configure the [wiki:WARPLab/Framework/Modules#Transport Transport] and Ethernet Packet Size. |
| 122 | |
| 123 | {{{ |
| 124 | >> nodes = wl_initNodes(1); |
| 125 | >> results = wl_benchmark( nodes, 'read_iq', 1000, 'max' ); |
| 126 | ------------------------------------------------------------ |
| 127 | Running on node 1 of 1: ID = 0 Serial Number = W3-a-00006 |
| 128 | ------------------------------------------------------------ |
| 129 | Displaying results of 1 nodes: |
| 130 | |
| 131 | ------------------------------------------------------------------------------------------------------------- |
| 132 | | ID | WLVER | Serial # | Transport | Pkt Size (B) | Num Samples | Num Trials | Avg Read IQ per sec | |
| 133 | ------------------------------------------------------------------------------------------------------------- |
| 134 | | 0 | 7.3.0 | W3-a-00006 | Java UDP | 8960 | 32768 | 1000 | 71.0523 | |
| 135 | ------------------------------------------------------------------------------------------------------------- |
| 136 | }}} |
| 137 | |
| 138 | or |
| 139 | |
| 140 | {{{ |
| 141 | >> nodes = wl_initNodes(1); |
| 142 | >> results = wl_benchmark( nodes, 'write_iq', 1000, 1000 ); |
| 143 | ------------------------------------------------------------ |
| 144 | Running on node 1 of 1: ID = 0 Serial Number = W3-a-00006 |
| 145 | ------------------------------------------------------------ |
| 146 | Displaying results of 1 nodes: |
| 147 | |
| 148 | ------------------------------------------------------------------------------------------------------------- |
| 149 | | ID | WLVER | Serial # | Transport | Pkt Size (B) | Num Samples | Num Trials | Avg Write IQ per sec | |
| 150 | ------------------------------------------------------------------------------------------------------------- |
| 151 | | 0 | 7.3.0 | W3-a-00006 | Java UDP | 1464 | 1000 | 1000 | 330.0903 | |
| 152 | ------------------------------------------------------------------------------------------------------------- |
| 153 | }}} |
| 154 | |
| 155 | |