Benchmarks and performance enhancements (#209)
[poolifier.git] / benchmarks / versus-external-pools / functions / json-stringify.js
diff --git a/benchmarks/versus-external-pools/functions/json-stringify.js b/benchmarks/versus-external-pools/functions/json-stringify.js
new file mode 100644 (file)
index 0000000..4b00910
--- /dev/null
@@ -0,0 +1,10 @@
+module.exports = function (data) {
+  for (let i = 0; i <= 5000; i++) {
+    const o = {
+      a: i
+    }
+    JSON.stringify(o)
+  }
+  // console.log('STRINGIFY FUNCTION FINISHED')
+  return { ok: 1 }
+}