We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d2971f commit d533339Copy full SHA for d533339
benchmarking/benchmarking-app/src/assets/data-sets/json-smaller.js
@@ -0,0 +1,17 @@
1
+const TAXI_JSON_DATA = require('./taxi.json');
2
+const fs = require('fs');
3
+
4
+function jsonSmaller() {
5
+ // Convert JSON data to a string
6
+ const jsonString = JSON.stringify(TAXI_JSON_DATA.slice(0, 100000));
7
8
+ // Specify the file path
9
+ const filePath = 'output.json';
10
11
+ // Write the JSON string to the file
12
+ fs.writeFileSync(filePath, jsonString, 'utf-8');
13
14
+ console.log(`JSON data has been written to ${filePath}`);
15
+}
16
17
+jsonSmaller();
benchmarking/benchmarking-app/src/assets/data-sets/output.json
0 commit comments