Filter record (v3)

Revision 3 of this benchmark created on


Description

1000 records

Setup

[{"id":1,"level":"0"},
{"id":2,"level":"0"},
{"id":3,"level":"0"},
{"id":4,"level":"0"},
{"id":5,"level":"0"},
{"id":6,"level":"0"},
{"id":7,"level":"0"},
{"id":8,"level":"0"},
{"id":9,"level":"0"},
{"id":10,"level":"0"},
{"id":11,"level":"0"},
{"id":12,"level":"0"},
{"id":13,"level":"0"},
{"id":14,"level":"0"},
{"id":15,"level":"0"},
{"id":16,"level":"0"},
{"id":17,"level":"0"},
{"id":18,"level":"0"},
{"id":19,"level":"0"},
{"id":20,"level":"0"},
{"id":21,"level":"0"},
{"id":22,"level":"0"},
{"id":23,"level":"0"},
{"id":24,"level":"0"},
{"id":25,"level":"0"},
{"id":26,"level":"0"},
{"id":27,"level":"0"},
{"id":28,"level":"0"},
{"id":29,"level":"0"},
{"id":30,"level":"0"},
{"id":31,"level":"0"},
{"id":32,"level":"0"},
{"id":33,"level":"0"},
{"id":34,"level":"0"},
{"id":35,"level":"0"},
{"id":36,"level":"0"},
{"id":37,"level":"0"},
{"id":38,"level":"0"},
{"id":39,"level":"0"},
{"id":40,"level":"0"},
{"id":41,"level":"0"},
{"id":42,"level":"0"},
{"id":43,"level":"0"},
{"id":44,"level":"0"},
{"id":45,"level":"0"},
{"id":46,"level":"0"},
{"id":47,"level":"0"},
{"id":48,"level":"0"},
{"id":49,"level":"0"},
{"id":50,"level":"0"},
{"id":51,"level":"0"},
{"id":52,"level":"0"},
{"id":53,"level":"0"},
{"id":54,"level":"0"},
{"id":55,"level":"0"},
{"id":56,"level":"0"},
{"id":57,"level":"0"},
{"id":58,"level":"0"},
{"id":59,"level":"0"},
{"id":60,"level":"0"},
{"id":61,"level":"0"},
{"id":62,"level":"0"},
{"id":63,"level":"0"},
{"id":64,"level":"0"},
{"id":65,"level":"0"},
{"id":66,"level":"0"},
{"id":67,"level":"0"},
{"id":68,"level":"0"},
{"id":69,"level":"0"},
{"id":70,"level":"0"},
{"id":71,"level":"0"},
{"id":72,"level":"0"},
{"id":73,"level":"0"},
{"id":74,"level":"0"},
{"id":75,"level":"0"},
{"id":76,"level":"0"},
{"id":77,"level":"0"},
{"id":78,"level":"0"},
{"id":79,"level":"0"},
{"id":80,"level":"0"},
{"id":81,"level":"0"},
{"id":82,"level":"0"},
{"id":83,"level":"0"},
{"id":84,"level":"0"},
{"id":85,"level":"0"},
{"id":86,"level":"0"},
{"id":87,"level":"0"},
{"id":88,"level":"0"},
{"id":89,"level":"0"},
{"id":90,"level":"0"},
{"id":91,"level":"0"},
{"id":92,"level":"0"},
{"id":93,"level":"0"},
{"id":94,"level":"0"},
{"id":95,"level":"0"},
{"id":96,"level":"0"},
{"id":97,"level":"0"},
{"id":98,"level":"0"},
{"id":99,"level":"0"},
{"id":100,"level":"0"},
{"id":101,"level":"0"},
{"id":102,"level":"0"},
{"id":103,"level":"0"},
{"id":104,"level":"0"},
{"id":105,"level":"0"},
{"id":106,"level":"0"},
{"id":107,"level":"0"},
{"id":108,"level":"0"},
{"id":109,"level":"0"},
{"id":110,"level":"0"},
{"id":111,"level":"0"},
{"id":112,"level":"0"},
{"id":113,"level":"0"},
{"id":114,"level":"0"},
{"id":115,"level":"0"},
{"id":116,"level":"0"},
{"id":117,"level":"0"},
{"id":118,"level":"0"},
{"id":119,"level":"0"},
{"id":120,"level":"0"},
{"id":121,"level":"0"},
{"id":122,"level":"0"},
{"id":123,"level":"0"},
{"id":124,"level":"0"},
{"id":125,"level":"0"},
{"id":126,"level":"0"},
{"id":127,"level":"0"},
{"id":128,"level":"0"},
{"id":129,"level":"0"},
{"id":130,"level":"0"},
{"id":131,"level":"0"},
{"id":132,"level":"0"},
{"id":133,"level":"0"},
{"id":134,"level":"0"},
{"id":135,"level":"0"},
{"id":136,"level":"0"},
{"id":137,"level":"0"},
{"id":138,"level":"0"},
{"id":139,"level":"0"},
{"id":140,"level":"0"},
{"id":141,"level":"0"},
{"id":142,"level":"0"},
{"id":143,"level":"0"},
{"id":144,"level":"0"},
{"id":145,"level":"0"},
{"id":146,"level":"0"},
{"id":147,"level":"0"},
{"id":148,"level":"0"},
{"id":149,"level":"0"},
{"id":150,"level":"0"},
{"id":151,"level":"0"},
{"id":152,"level":"0"},
{"id":153,"level":"0"},
{"id":154,"level":"0"},
{"id":155,"level":"0"},
{"id":156,"level":"0"},
{"id":157,"level":"0"},
{"id":158,"level":"0"},
{"id":159,"level":"0"},
{"id":160,"level":"0"},
{"id":161,"level":"0"},
{"id":162,"level":"0"},
{"id":163,"level":"0"},
{"id":164,"level":"0"},
{"id":165,"level":"0"},
{"id":166,"level":"0"},
{"id":167,"level":"0"},
{"id":168,"level":"0"},
{"id":169,"level":"0"},
{"id":170,"level":"0"},
{"id":171,"level":"0"},
{"id":172,"level":"0"},
{"id":173,"level":"0"},
{"id":174,"level":"0"},
{"id":175,"level":"0"},
{"id":176,"level":"0"},
{"id":177,"level":"0"},
{"id":178,"level":"0"},
{"id":179,"level":"0"},
{"id":180,"level":"0"},
{"id":181,"level":"0"},
{"id":182,"level":"0"},
{"id":183,"level":"0"},
{"id":184,"level":"0"},
{"id":185,"level":"0"},
{"id":186,"level":"0"},
{"id":187,"level":"0"},
{"id":188,"level":"0"},
{"id":189,"level":"0"},
{"id":190,"level":"0"},
{"id":191,"level":"0"},
{"id":192,"level":"0"},
{"id":193,"level":"0"},
{"id":194,"level":"0"},
{"id":195,"level":"0"},
{"id":196,"level":"0"},
{"id":197,"level":"0"},
{"id":198,"level":"0"},
{"id":199,"level":"0"},
{"id":200,"level":"0"},
{"id":201,"level":"0"},
{"id":202,"level":"0"},
{"id":203,"level":"0"},
{"id":204,"level":"0"},
{"id":205,"level":"0"},
{"id":206,"level":"0"},
{"id":207,"level":"0"},
{"id":208,"level":"0"},
{"id":209,"level":"0"},
{"id":210,"level":"0"},
{"id":211,"level":"0"},
{"id":212,"level":"0"},
{"id":213,"level":"0"},
{"id":214,"level":"0"},
{"id":215,"level":"0"},
{"id":216,"level":"0"},
{"id":217,"level":"0"},
{"id":218,"level":"0"},
{"id":219,"level":"0"},
{"id":220,"level":"0"},
{"id":221,"level":"0"},
{"id":222,"level":"0"},
{"id":223,"level":"0"},
{"id":224,"level":"0"},
{"id":225,"level":"0"},
{"id":226,"level":"0"},
{"id":227,"level":"0"},
{"id":228,"level":"0"},
{"id":229,"level":"0"},
{"id":230,"level":"0"},
{"id":231,"level":"0"},
{"id":232,"level":"0"},
{"id":233,"level":"0"},
{"id":234,"level":"0"},
{"id":235,"level":"0"},
{"id":236,"level":"0"},
{"id":237,"level":"0"},
{"id":238,"level":"0"},
{"id":239,"level":"0"},
{"id":240,"level":"0"},
{"id":241,"level":"0"},
{"id":242,"level":"0"},
{"id":243,"level":"0"},
{"id":244,"level":"0"},
{"id":245,"level":"0"},
{"id":246,"level":"0"},
{"id":247,"level":"0"},
{"id":248,"level":"0"},
{"id":249,"level":"0"},
{"id":250,"level":"0"},
{"id":251,"level":"0"},
{"id":252,"level":"0"},
{"id":253,"level":"0"},
{"id":254,"level":"0"},
{"id":255,"level":"0"},
{"id":256,"level":"0"},
{"id":257,"level":"0"},
{"id":258,"level":"0"},
{"id":259,"level":"0"},
{"id":260,"level":"0"},
{"id":261,"level":"0"},
{"id":262,"level":"0"},
{"id":263,"level":"0"},
{"id":264,"level":"0"},
{"id":265,"level":"0"},
{"id":266,"level":"0"},
{"id":267,"level":"0"},
{"id":268,"level":"0"},
{"id":269,"level":"0"},
{"id":270,"level":"0"},
{"id":271,"level":"0"},
{"id":272,"level":"0"},
{"id":273,"level":"0"},
{"id":274,"level":"0"},
{"id":275,"level":"0"},
{"id":276,"level":"0"},
{"id":277,"level":"0"},
{"id":278,"level":"0"},
{"id":279,"level":"0"},
{"id":280,"level":"0"},
{"id":281,"level":"0"},
{"id":282,"level":"0"},
{"id":283,"level":"0"},
{"id":284,"level":"0"},
{"id":285,"level":"0"},
{"id":286,"level":"0"},
{"id":287,"level":"0"},
{"id":288,"level":"0"},
{"id":289,"level":"0"},
{"id":290,"level":"0"},
{"id":291,"level":"0"},
{"id":292,"level":"0"},
{"id":293,"level":"0"},
{"id":294,"level":"0"},
{"id":295,"level":"0"},
{"id":296,"level":"0"},
{"id":297,"level":"0"},
{"id":298,"level":"0"},
{"id":299,"level":"0"},
{"id":300,"level":"0"},
{"id":301,"level":"0"},
{"id":302,"level":"0"},
{"id":303,"level":"0"},
{"id":304,"level":"0"},
{"id":305,"level":"0"},
{"id":306,"level":"0"},
{"id":307,"level":"0"},
{"id":308,"level":"0"},
{"id":309,"level":"0"},
{"id":310,"level":"0"},
{"id":311,"level":"0"},
{"id":312,"level":"0"},
{"id":313,"level":"0"},
{"id":314,"level":"0"},
{"id":315,"level":"0"},
{"id":316,"level":"0"},
{"id":317,"level":"0"},
{"id":318,"level":"0"},
{"id":319,"level":"0"},
{"id":320,"level":"0"},
{"id":321,"level":"0"},
{"id":322,"level":"0"},
{"id":323,"level":"0"},
{"id":324,"level":"0"},
{"id":325,"level":"0"},
{"id":326,"level":"0"},
{"id":327,"level":"0"},
{"id":328,"level":"0"},
{"id":329,"level":"0"},
{"id":330,"level":"0"},
{"id":331,"level":"0"},
{"id":332,"level":"0"},
{"id":333,"level":"0"},
{"id":334,"level":"0"},
{"id":335,"level":"0"},
{"id":336,"level":"0"},
{"id":337,"level":"0"},
{"id":338,"level":"0"},
{"id":339,"level":"0"},
{"id":340,"level":"0"},
{"id":341,"level":"0"},
{"id":342,"level":"0"},
{"id":343,"level":"0"},
{"id":344,"level":"0"},
{"id":345,"level":"0"},
{"id":346,"level":"0"},
{"id":347,"level":"0"},
{"id":348,"level":"0"},
{"id":349,"level":"0"},
{"id":350,"level":"0"},
{"id":351,"level":"0"},
{"id":352,"level":"0"},
{"id":353,"level":"0"},
{"id":354,"level":"0"},
{"id":355,"level":"0"},
{"id":356,"level":"0"},
{"id":357,"level":"0"},
{"id":358,"level":"0"},
{"id":359,"level":"0"},
{"id":360,"level":"0"},
{"id":361,"level":"0"},
{"id":362,"level":"0"},
{"id":363,"level":"0"},
{"id":364,"level":"0"},
{"id":365,"level":"0"},
{"id":366,"level":"0"},
{"id":367,"level":"0"},
{"id":368,"level":"0"},
{"id":369,"level":"0"},
{"id":370,"level":"0"},
{"id":371,"level":"0"},
{"id":372,"level":"0"},
{"id":373,"level":"0"},
{"id":374,"level":"0"},
{"id":375,"level":"0"},
{"id":376,"level":"0"},
{"id":377,"level":"0"},
{"id":378,"level":"0"},
{"id":379,"level":"0"},
{"id":380,"level":"0"},
{"id":381,"level":"0"},
{"id":382,"level":"0"},
{"id":383,"level":"0"},
{"id":384,"level":"0"},
{"id":385,"level":"0"},
{"id":386,"level":"0"},
{"id":387,"level":"0"},
{"id":388,"level":"0"},
{"id":389,"level":"0"},
{"id":390,"level":"0"},
{"id":391,"level":"0"},
{"id":392,"level":"0"},
{"id":393,"level":"0"},
{"id":394,"level":"0"},
{"id":395,"level":"0"},
{"id":396,"level":"0"},
{"id":397,"level":"0"},
{"id":398,"level":"0"},
{"id":399,"level":"0"},
{"id":400,"level":"0"},
{"id":401,"level":"0"},
{"id":402,"level":"0"},
{"id":403,"level":"0"},
{"id":404,"level":"0"},
{"id":405,"level":"0"},
{"id":406,"level":"0"},
{"id":407,"level":"0"},
{"id":408,"level":"0"},
{"id":409,"level":"0"},
{"id":410,"level":"0"},
{"id":411,"level":"0"},
{"id":412,"level":"0"},
{"id":413,"level":"0"},
{"id":414,"level":"0"},
{"id":415,"level":"0"},
{"id":416,"level":"0"},
{"id":417,"level":"0"},
{"id":418,"level":"0"},
{"id":419,"level":"0"},
{"id":420,"level":"0"},
{"id":421,"level":"0"},
{"id":422,"level":"0"},
{"id":423,"level":"0"},
{"id":424,"level":"0"},
{"id":425,"level":"0"},
{"id":426,"level":"0"},
{"id":427,"level":"0"},
{"id":428,"level":"0"},
{"id":429,"level":"0"},
{"id":430,"level":"0"},
{"id":431,"level":"0"},
{"id":432,"level":"0"},
{"id":433,"level":"0"},
{"id":434,"level":"0"},
{"id":435,"level":"0"},
{"id":436,"level":"0"},
{"id":437,"level":"0"},
{"id":438,"level":"0"},
{"id":439,"level":"0"},
{"id":440,"level":"0"},
{"id":441,"level":"0"},
{"id":442,"level":"0"},
{"id":443,"level":"0"},
{"id":444,"level":"0"},
{"id":445,"level":"0"},
{"id":446,"level":"0"},
{"id":447,"level":"0"},
{"id":448,"level":"0"},
{"id":449,"level":"0"},
{"id":450,"level":"0"},
{"id":451,"level":"0"},
{"id":452,"level":"0"},
{"id":453,"level":"0"},
{"id":454,"level":"0"},
{"id":455,"level":"0"},
{"id":456,"level":"0"},
{"id":457,"level":"0"},
{"id":458,"level":"0"},
{"id":459,"level":"0"},
{"id":460,"level":"0"},
{"id":461,"level":"0"},
{"id":462,"level":"0"},
{"id":463,"level":"0"},
{"id":464,"level":"0"},
{"id":465,"level":"0"},
{"id":466,"level":"0"},
{"id":467,"level":"0"},
{"id":468,"level":"0"},
{"id":469,"level":"0"},
{"id":470,"level":"0"},
{"id":471,"level":"0"},
{"id":472,"level":"0"},
{"id":473,"level":"0"},
{"id":474,"level":"0"},
{"id":475,"level":"0"},
{"id":476,"level":"0"},
{"id":477,"level":"0"},
{"id":478,"level":"0"},
{"id":479,"level":"0"},
{"id":480,"level":"0"},
{"id":481,"level":"0"},
{"id":482,"level":"0"},
{"id":483,"level":"0"},
{"id":484,"level":"0"},
{"id":485,"level":"0"},
{"id":486,"level":"0"},
{"id":487,"level":"0"},
{"id":488,"level":"0"},
{"id":489,"level":"0"},
{"id":490,"level":"0"},
{"id":491,"level":"0"},
{"id":492,"level":"0"},
{"id":493,"level":"0"},
{"id":494,"level":"0"},
{"id":495,"level":"0"},
{"id":496,"level":"0"},
{"id":497,"level":"0"},
{"id":498,"level":"0"},
{"id":499,"level":"0"},
{"id":500,"level":"0"},
{"id":501,"level":"0"},
{"id":502,"level":"0"},
{"id":503,"level":"0"},
{"id":504,"level":"0"},
{"id":505,"level":"0"},
{"id":506,"level":"0"},
{"id":507,"level":"0"},
{"id":508,"level":"0"},
{"id":509,"level":"0"},
{"id":510,"level":"0"},
{"id":511,"level":"0"},
{"id":512,"level":"0"},
{"id":513,"level":"0"},
{"id":514,"level":"0"},
{"id":515,"level":"0"},
{"id":516,"level":"0"},
{"id":517,"level":"0"},
{"id":518,"level":"0"},
{"id":519,"level":"0"},
{"id":520,"level":"0"},
{"id":521,"level":"0"},
{"id":522,"level":"0"},
{"id":523,"level":"0"},
{"id":524,"level":"0"},
{"id":525,"level":"0"},
{"id":526,"level":"0"},
{"id":527,"level":"0"},
{"id":528,"level":"0"},
{"id":529,"level":"0"},
{"id":530,"level":"0"},
{"id":531,"level":"0"},
{"id":532,"level":"0"},
{"id":533,"level":"0"},
{"id":534,"level":"0"},
{"id":535,"level":"0"},
{"id":536,"level":"0"},
{"id":537,"level":"0"},
{"id":538,"level":"0"},
{"id":539,"level":"0"},
{"id":540,"level":"0"},
{"id":541,"level":"0"},
{"id":542,"level":"0"},
{"id":543,"level":"0"},
{"id":544,"level":"0"},
{"id":545,"level":"0"},
{"id":546,"level":"0"},
{"id":547,"level":"0"},
{"id":548,"level":"0"},
{"id":549,"level":"0"},
{"id":550,"level":"0"},
{"id":551,"level":"0"},
{"id":552,"level":"0"},
{"id":553,"level":"0"},
{"id":554,"level":"0"},
{"id":555,"level":"0"},
{"id":556,"level":"0"},
{"id":557,"level":"0"},
{"id":558,"level":"0"},
{"id":559,"level":"0"},
{"id":560,"level":"0"},
{"id":561,"level":"0"},
{"id":562,"level":"0"},
{"id":563,"level":"0"},
{"id":564,"level":"0"},
{"id":565,"level":"0"},
{"id":566,"level":"0"},
{"id":567,"level":"0"},
{"id":568,"level":"0"},
{"id":569,"level":"0"},
{"id":570,"level":"0"},
{"id":571,"level":"0"},
{"id":572,"level":"0"},
{"id":573,"level":"0"},
{"id":574,"level":"0"},
{"id":575,"level":"0"},
{"id":576,"level":"0"},
{"id":577,"level":"0"},
{"id":578,"level":"0"},
{"id":579,"level":"0"},
{"id":580,"level":"0"},
{"id":581,"level":"0"},
{"id":582,"level":"0"},
{"id":583,"level":"0"},
{"id":584,"level":"0"},
{"id":585,"level":"0"},
{"id":586,"level":"0"},
{"id":587,"level":"0"},
{"id":588,"level":"0"},
{"id":589,"level":"0"},
{"id":590,"level":"0"},
{"id":591,"level":"0"},
{"id":592,"level":"0"},
{"id":593,"level":"0"},
{"id":594,"level":"0"},
{"id":595,"level":"0"},
{"id":596,"level":"0"},
{"id":597,"level":"0"},
{"id":598,"level":"0"},
{"id":599,"level":"0"},
{"id":600,"level":"0"},
{"id":601,"level":"0"},
{"id":602,"level":"0"},
{"id":603,"level":"0"},
{"id":604,"level":"0"},
{"id":605,"level":"0"},
{"id":606,"level":"0"},
{"id":607,"level":"0"},
{"id":608,"level":"0"},
{"id":609,"level":"0"},
{"id":610,"level":"0"},
{"id":611,"level":"0"},
{"id":612,"level":"0"},
{"id":613,"level":"0"},
{"id":614,"level":"0"},
{"id":615,"level":"0"},
{"id":616,"level":"0"},
{"id":617,"level":"0"},
{"id":618,"level":"0"},
{"id":619,"level":"0"},
{"id":620,"level":"0"},
{"id":621,"level":"0"},
{"id":622,"level":"0"},
{"id":623,"level":"0"},
{"id":624,"level":"0"},
{"id":625,"level":"0"},
{"id":626,"level":"0"},
{"id":627,"level":"0"},
{"id":628,"level":"0"},
{"id":629,"level":"0"},
{"id":630,"level":"0"},
{"id":631,"level":"0"},
{"id":632,"level":"0"},
{"id":633,"level":"0"},
{"id":634,"level":"0"},
{"id":635,"level":"0"},
{"id":636,"level":"0"},
{"id":637,"level":"0"},
{"id":638,"level":"0"},
{"id":639,"level":"0"},
{"id":640,"level":"0"},
{"id":641,"level":"0"},
{"id":642,"level":"0"},
{"id":643,"level":"0"},
{"id":644,"level":"0"},
{"id":645,"level":"0"},
{"id":646,"level":"0"},
{"id":647,"level":"0"},
{"id":648,"level":"0"},
{"id":649,"level":"0"},
{"id":650,"level":"0"},
{"id":651,"level":"0"},
{"id":652,"level":"0"},
{"id":653,"level":"0"},
{"id":654,"level":"0"},
{"id":655,"level":"0"},
{"id":656,"level":"0"},
{"id":657,"level":"0"},
{"id":658,"level":"0"},
{"id":659,"level":"0"},
{"id":660,"level":"0"},
{"id":661,"level":"0"},
{"id":662,"level":"0"},
{"id":663,"level":"0"},
{"id":664,"level":"0"},
{"id":665,"level":"0"},
{"id":666,"level":"0"},
{"id":667,"level":"0"},
{"id":668,"level":"0"},
{"id":669,"level":"0"},
{"id":670,"level":"0"},
{"id":671,"level":"0"},
{"id":672,"level":"0"},
{"id":673,"level":"0"},
{"id":674,"level":"0"},
{"id":675,"level":"0"},
{"id":676,"level":"0"},
{"id":677,"level":"0"},
{"id":678,"level":"0"},
{"id":679,"level":"0"},
{"id":680,"level":"0"},
{"id":681,"level":"0"},
{"id":682,"level":"0"},
{"id":683,"level":"0"},
{"id":684,"level":"0"},
{"id":685,"level":"0"},
{"id":686,"level":"0"},
{"id":687,"level":"0"},
{"id":688,"level":"0"},
{"id":689,"level":"0"},
{"id":690,"level":"0"},
{"id":691,"level":"0"},
{"id":692,"level":"0"},
{"id":693,"level":"0"},
{"id":694,"level":"0"},
{"id":695,"level":"0"},
{"id":696,"level":"0"},
{"id":697,"level":"0"},
{"id":698,"level":"0"},
{"id":699,"level":"0"},
{"id":700,"level":"0"},
{"id":701,"level":"0"},
{"id":702,"level":"0"},
{"id":703,"level":"0"},
{"id":704,"level":"0"},
{"id":705,"level":"0"},
{"id":706,"level":"0"},
{"id":707,"level":"0"},
{"id":708,"level":"0"},
{"id":709,"level":"0"},
{"id":710,"level":"0"},
{"id":711,"level":"0"},
{"id":712,"level":"0"},
{"id":713,"level":"0"},
{"id":714,"level":"0"},
{"id":715,"level":"0"},
{"id":716,"level":"0"},
{"id":717,"level":"0"},
{"id":718,"level":"0"},
{"id":719,"level":"0"},
{"id":720,"level":"0"},
{"id":721,"level":"0"},
{"id":722,"level":"0"},
{"id":723,"level":"0"},
{"id":724,"level":"0"},
{"id":725,"level":"0"},
{"id":726,"level":"0"},
{"id":727,"level":"0"},
{"id":728,"level":"0"},
{"id":729,"level":"0"},
{"id":730,"level":"0"},
{"id":731,"level":"0"},
{"id":732,"level":"0"},
{"id":733,"level":"0"},
{"id":734,"level":"0"},
{"id":735,"level":"0"},
{"id":736,"level":"0"},
{"id":737,"level":"0"},
{"id":738,"level":"0"},
{"id":739,"level":"0"},
{"id":740,"level":"0"},
{"id":741,"level":"0"},
{"id":742,"level":"0"},
{"id":743,"level":"0"},
{"id":744,"level":"0"},
{"id":745,"level":"0"},
{"id":746,"level":"0"},
{"id":747,"level":"0"},
{"id":748,"level":"0"},
{"id":749,"level":"0"},
{"id":750,"level":"0"},
{"id":751,"level":"0"},
{"id":752,"level":"0"},
{"id":753,"level":"0"},
{"id":754,"level":"0"},
{"id":755,"level":"0"},
{"id":756,"level":"0"},
{"id":757,"level":"0"},
{"id":758,"level":"0"},
{"id":759,"level":"0"},
{"id":760,"level":"0"},
{"id":761,"level":"0"},
{"id":762,"level":"0"},
{"id":763,"level":"0"},
{"id":764,"level":"0"},
{"id":765,"level":"0"},
{"id":766,"level":"0"},
{"id":767,"level":"0"},
{"id":768,"level":"0"},
{"id":769,"level":"0"},
{"id":770,"level":"0"},
{"id":771,"level":"0"},
{"id":772,"level":"0"},
{"id":773,"level":"0"},
{"id":774,"level":"0"},
{"id":775,"level":"0"},
{"id":776,"level":"0"},
{"id":777,"level":"0"},
{"id":778,"level":"0"},
{"id":779,"level":"0"},
{"id":780,"level":"0"},
{"id":781,"level":"0"},
{"id":782,"level":"0"},
{"id":783,"level":"0"},
{"id":784,"level":"0"},
{"id":785,"level":"0"},
{"id":786,"level":"0"},
{"id":787,"level":"0"},
{"id":788,"level":"0"},
{"id":789,"level":"0"},
{"id":790,"level":"0"},
{"id":791,"level":"0"},
{"id":792,"level":"0"},
{"id":793,"level":"0"},
{"id":794,"level":"0"},
{"id":795,"level":"0"},
{"id":796,"level":"0"},
{"id":797,"level":"0"},
{"id":798,"level":"0"},
{"id":799,"level":"0"},
{"id":800,"level":"0"},
{"id":801,"level":"0"},
{"id":802,"level":"0"},
{"id":803,"level":"0"},
{"id":804,"level":"0"},
{"id":805,"level":"0"},
{"id":806,"level":"0"},
{"id":807,"level":"0"},
{"id":808,"level":"0"},
{"id":809,"level":"0"},
{"id":810,"level":"0"},
{"id":811,"level":"0"},
{"id":812,"level":"0"},
{"id":813,"level":"0"},
{"id":814,"level":"0"},
{"id":815,"level":"0"},
{"id":816,"level":"0"},
{"id":817,"level":"0"},
{"id":818,"level":"0"},
{"id":819,"level":"0"},
{"id":820,"level":"0"},
{"id":821,"level":"0"},
{"id":822,"level":"0"},
{"id":823,"level":"0"},
{"id":824,"level":"0"},
{"id":825,"level":"0"},
{"id":826,"level":"0"},
{"id":827,"level":"0"},
{"id":828,"level":"0"},
{"id":829,"level":"0"},
{"id":830,"level":"0"},
{"id":831,"level":"0"},
{"id":832,"level":"0"},
{"id":833,"level":"0"},
{"id":834,"level":"0"},
{"id":835,"level":"0"},
{"id":836,"level":"0"},
{"id":837,"level":"0"},
{"id":838,"level":"0"},
{"id":839,"level":"0"},
{"id":840,"level":"0"},
{"id":841,"level":"0"},
{"id":842,"level":"0"},
{"id":843,"level":"0"},
{"id":844,"level":"0"},
{"id":845,"level":"0"},
{"id":846,"level":"0"},
{"id":847,"level":"0"},
{"id":848,"level":"0"},
{"id":849,"level":"0"},
{"id":850,"level":"0"},
{"id":851,"level":"0"},
{"id":852,"level":"0"},
{"id":853,"level":"0"},
{"id":854,"level":"0"},
{"id":855,"level":"0"},
{"id":856,"level":"0"},
{"id":857,"level":"0"},
{"id":858,"level":"0"},
{"id":859,"level":"0"},
{"id":860,"level":"0"},
{"id":861,"level":"0"},
{"id":862,"level":"0"},
{"id":863,"level":"0"},
{"id":864,"level":"0"},
{"id":865,"level":"0"},
{"id":866,"level":"0"},
{"id":867,"level":"0"},
{"id":868,"level":"0"},
{"id":869,"level":"0"},
{"id":870,"level":"0"},
{"id":871,"level":"0"},
{"id":872,"level":"0"},
{"id":873,"level":"0"},
{"id":874,"level":"0"},
{"id":875,"level":"0"},
{"id":876,"level":"0"},
{"id":877,"level":"0"},
{"id":878,"level":"0"},
{"id":879,"level":"0"},
{"id":880,"level":"0"},
{"id":881,"level":"0"},
{"id":882,"level":"0"},
{"id":883,"level":"0"},
{"id":884,"level":"0"},
{"id":885,"level":"0"},
{"id":886,"level":"0"},
{"id":887,"level":"0"},
{"id":888,"level":"0"},
{"id":889,"level":"0"},
{"id":890,"level":"0"},
{"id":891,"level":"0"},
{"id":892,"level":"0"},
{"id":893,"level":"0"},
{"id":894,"level":"0"},
{"id":895,"level":"0"},
{"id":896,"level":"0"},
{"id":897,"level":"0"},
{"id":898,"level":"0"},
{"id":899,"level":"0"},
{"id":900,"level":"0"},
{"id":901,"level":"0"},
{"id":902,"level":"0"},
{"id":903,"level":"0"},
{"id":904,"level":"0"},
{"id":905,"level":"0"},
{"id":906,"level":"0"},
{"id":907,"level":"0"},
{"id":908,"level":"0"},
{"id":909,"level":"0"},
{"id":910,"level":"0"},
{"id":911,"level":"0"},
{"id":912,"level":"0"},
{"id":913,"level":"0"},
{"id":914,"level":"0"},
{"id":915,"level":"0"},
{"id":916,"level":"0"},
{"id":917,"level":"0"},
{"id":918,"level":"0"},
{"id":919,"level":"0"},
{"id":920,"level":"0"},
{"id":921,"level":"0"},
{"id":922,"level":"0"},
{"id":923,"level":"0"},
{"id":924,"level":"0"},
{"id":925,"level":"0"},
{"id":926,"level":"0"},
{"id":927,"level":"0"},
{"id":928,"level":"0"},
{"id":929,"level":"0"},
{"id":930,"level":"0"},
{"id":931,"level":"0"},
{"id":932,"level":"0"},
{"id":933,"level":"0"},
{"id":934,"level":"0"},
{"id":935,"level":"0"},
{"id":936,"level":"0"},
{"id":937,"level":"0"},
{"id":938,"level":"0"},
{"id":939,"level":"0"},
{"id":940,"level":"0"},
{"id":941,"level":"0"},
{"id":942,"level":"0"},
{"id":943,"level":"0"},
{"id":944,"level":"0"},
{"id":945,"level":"0"},
{"id":946,"level":"0"},
{"id":947,"level":"0"},
{"id":948,"level":"0"},
{"id":949,"level":"0"},
{"id":950,"level":"0"},
{"id":951,"level":"0"},
{"id":952,"level":"0"},
{"id":953,"level":"0"},
{"id":954,"level":"0"},
{"id":955,"level":"0"},
{"id":956,"level":"0"},
{"id":957,"level":"0"},
{"id":958,"level":"0"},
{"id":959,"level":"0"},
{"id":960,"level":"0"},
{"id":961,"level":"0"},
{"id":962,"level":"0"},
{"id":963,"level":"0"},
{"id":964,"level":"0"},
{"id":965,"level":"0"},
{"id":966,"level":"0"},
{"id":967,"level":"0"},
{"id":968,"level":"0"},
{"id":969,"level":"0"},
{"id":970,"level":"0"},
{"id":971,"level":"0"},
{"id":972,"level":"0"},
{"id":973,"level":"0"},
{"id":974,"level":"0"},
{"id":975,"level":"0"},
{"id":976,"level":"0"},
{"id":977,"level":"0"},
{"id":978,"level":"0"},
{"id":979,"level":"0"},
{"id":980,"level":"0"},
{"id":981,"level":"0"},
{"id":982,"level":"0"},
{"id":983,"level":"0"},
{"id":984,"level":"0"},
{"id":985,"level":"0"},
{"id":986,"level":"0"},
{"id":987,"level":"0"},
{"id":988,"level":"0"},
{"id":989,"level":"0"},
{"id":990,"level":"0"},
{"id":991,"level":"0"},
{"id":992,"level":"0"},
{"id":993,"level":"0"},
{"id":994,"level":"0"},
{"id":995,"level":"0"},
{"id":996,"level":"0"},
{"id":997,"level":"0"},
{"id":998,"level":"0"},
{"id":999,"level":"0"},
{"id":1000,"level":"0"},
{"id":1001,"level":"1"},
{"id":1002,"level":"1"}]

Test runner

Ready to run.

Testing in
TestOps/sec
Using filter
try{
	const rdata = 	data.filter((r) => r.level === '1');
if(rdata.length>1)
throw new Error('error');
}
catch(e){
	console.log(e);
}
ready
Using for loop
try{
	let selectedRecords = data;
	if (selectedRecords.length > 0) {
					let parentRec = null;
					let multiParent = false;
					for (let i = 0; i < selectedRecords.length; i++) {
						let record = selectedRecords[i];
						if (record.childLevel === '1') {
							if (parentRec) {
								multiParent = true;
								break;
							}
							parentRec = record;
						}
					}
					if (!parentRec || multiParent) {
						throw new Error('error');
					}
}
}
catch(e){
	console.log(e);
}
ready
using forEach 1
try{
	let parentRec = null;
	data.forEach((r)=>{
		if (r.childLevel === '1' && parentRec == null)  parentRec = r;
		else if(r.childLevel === '1') throw new Error('error');
	});
}
catch(e){
	console.log(e);
}
ready
using forEach 2
try{
	let parentRec = null;
	data.forEach((r)=>{
		if (r.childLevel === '1'){
			if(parentRec == null)
			parentRec = r;
			else
			throw new Error('error');
		}
		
	});
}
catch(e){
	console.log(e);
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.