MCPcopy Create free account
hub / github.com/apache/fory / createForyBenchmarks

Function createForyBenchmarks

benchmarks/javascript/benchmark.js:620–637  ·  view source on GitHub ↗
(schemaMismatch)

Source from the content-addressed store, hash-verified

618}
619
620function 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
639function createDatasets(root, schemaMismatch) {
640 const StructType = root.lookupType("protobuf.NumericStruct");

Callers 1

createDatasetsFunction · 0.85

Calls 3

registerForySchemasFunction · 0.85
createSchemasFunction · 0.85
createSchemasV2Function · 0.85

Tested by

no test coverage detected