MCPcopy Create free account
hub / github.com/tensorflow/tfjs / formatForFirestore

Function formatForFirestore

e2e/benchmarks/browserstack-benchmark/firestore.js:80–88  ·  view source on GitHub ↗

* This functions calls other formatting functions on a benchmark result so that * every Firestore entry is compatable and contains desired information * * @param result Individual result in a list of fulfilled promises

(
  result, makeCompatable = makeCompatableWithFirestore,
  getDate = getReadableDate)

Source from the content-addressed store, hash-verified

78 * @param result Individual result in a list of fulfilled promises
79 */
80function formatForFirestore(
81 result, makeCompatable = makeCompatableWithFirestore,
82 getDate = getReadableDate) {
83 let firestoreMap = {};
84 firestoreMap.benchmarkInfo = makeCompatable(result);
85 firestoreMap.date = getDate();
86
87 return firestoreMap;
88}
89
90/**
91 * This function makes the result object returned from benchmark app aligned

Callers 2

addResultToFirestoreFunction · 0.85
app_node_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…