MCPcopy
hub / github.com/adaltas/node-csv / print

Function print

packages/csv-parse/bench/async.iterator.js:53–85  ·  view source on GitHub ↗
(results)

Source from the content-addressed store, hash-verified

51};
52
53const print = function (results) {
54 console.log("");
55 console.log(
56 [
57 "|",
58 [
59 pad(" length ", 10 + 2),
60 pad(" nanoseconds ", 15 + 2),
61 pad(" throughput ", 15 + 2),
62 ].join("|"),
63 "|",
64 ].join(""),
65 );
66 console.log(
67 ["|", ["-".repeat(12), "-".repeat(17), "-".repeat(17)].join("|"), "|"].join(
68 "",
69 ),
70 );
71 results.forEach(([length, nanoseconds, throughput]) => {
72 console.log(
73 [
74 "|",
75 [
76 ` ${pad(`${length}`, 10)} `,
77 ` ${pad(`${nanoseconds}`, 15)} `,
78 ` ${pad(`${throughput}`, 15)} `,
79 ].join("|"),
80 "|",
81 ].join(""),
82 );
83 });
84 console.log("");
85};
86
87const main = async function () {
88 const tests = [20000, 200000, 2000000, 20000000, 200000000].map((length) => ({

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected