Test name | Executions per second |
---|---|
Ramda | 55032.2 Ops/sec |
JSON.stringify | 339413.9 Ops/sec |
<script src="https://cdnjs.cloudflare.com/ajax/libs/ramda/0.25.0/ramda.min.js"></script>
var data = [{foo: {bar: {foo: {bar: ''}}}}, {}, {}];
var result = R.toString(data, [{foo: {bar: {foo: {bar: ''}}}}, {}, {}]);
var result = JSON.stringify(data) === JSON.stringify([{foo: {bar: {foo: {bar: ''}}}}, {}, {}]);