3 ms·
That runtime doesn't make any sense. This script creates a 1,000,000 line CSV string and then parses it into JSON in 700ms with Bun, and this is doing both thin
by dcre 3y ago
That runtime doesn't make any sense. This script creates a 1,000,000 line CSV string and then parses it into JSON in 700ms with Bun, and this is doing both things the slow way, creating the string with a giant array map and join, and parsing with a giant split('\n') on newline and map.
https://gist.github.com/david-crespo/8fea68cb38ea89edceb161d6b479bccd https://gist.github.com/david-crespo/8fea68cb38ea89edceb161d...