(schemaMismatch)
| 618 | } |
| 619 | |
| 620 | function createForyBenchmarks(schemaMismatch) { |
| 621 | const fory = new Fory({ |
| 622 | compatible: true, |
| 623 | ref: false, |
| 624 | }); |
| 625 | const writerSerializers = registerForySchemas(fory, createSchemas()); |
| 626 | if (!schemaMismatch) { |
| 627 | return { writerSerializers, readerSerializers: writerSerializers }; |
| 628 | } |
| 629 | const reader = new Fory({ |
| 630 | compatible: true, |
| 631 | ref: false, |
| 632 | }); |
| 633 | return { |
| 634 | writerSerializers, |
| 635 | readerSerializers: registerForySchemas(reader, createSchemasV2()), |
| 636 | }; |
| 637 | } |
| 638 | |
| 639 | function createDatasets(root, schemaMismatch) { |
| 640 | const StructType = root.lookupType("protobuf.NumericStruct"); |
no test coverage detected