()
| 95 | } |
| 96 | |
| 97 | function printUsage() { |
| 98 | console.log(`Usage: node benchmark.js [OPTIONS] |
| 99 | |
| 100 | Options: |
| 101 | --data <struct|sample|mediacontent|structlist|samplelist|mediacontentlist> |
| 102 | Filter benchmark by data type |
| 103 | --serializer <fory|protobuf|json> |
| 104 | Filter benchmark by serializer |
| 105 | --duration <seconds> Minimum time to run each benchmark |
| 106 | --output <file> Output JSON file |
| 107 | `); |
| 108 | } |
| 109 | |
| 110 | function int32Field(id) { |
| 111 | return Type.int32().setId(id); |