Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Fly Json ODM - 1.19.0 - Full
(version: 0)
Benchmark using Fly Json ODM in browser for 1million array objects.
Comparing performance of:
SET + WHERE vs SET + WHERE (Shallow Mode)
Created:
2 years ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/fly-json-odm@1.19.0/dist/flyjson.min.js"></script>
Script Preparation code:
var nosql = new FlyJson(); var data = []; var start = 1; var end = 1000000; for(var i =start;i<=end;i++) { data.push({ id:i, name:'user_'+i }); }
Tests:
SET + WHERE
var result = nosql.set(data).where('id',1000000).exec();
SET + WHERE (Shallow Mode)
var result = nosql.setMode('shallow').set(data).where('id',1000000).exec();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
SET + WHERE
SET + WHERE (Shallow Mode)
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
Let's break down the benchmark and explain what's being tested. **What is being tested?** The benchmark measures the performance of Fly Json ODM, a NoSQL database library for JavaScript, in a browser environment. Specifically, it tests the execution speed of two queries: `SET + WHERE` and `SET + WHERE (Shallow Mode)`. **Options compared:** There are two options being compared: 1. **`SET + WHERE`**: This query sets data in the NoSQL database using the `set()` method and then filters the results using the `where()` method. 2. **`SET + WHERE (Shallow Mode)`**: This query sets data in the NoSQL database using the `setMode('shallow')` method, which enables shallow mode. Shallow mode is a optimization technique that allows for faster filtering of large datasets. **Pros and cons:** * **`SET + WHERE`**: + Pros: Does not require any additional configuration or setup. + Cons: May be slower due to the need to perform filtering on the entire dataset. * **`SET + WHERE (Shallow Mode)`**: + Pros: Can be faster than `SET + WHERE` for large datasets, as it allows for faster filtering. + Cons: Requires enabling shallow mode, which may add complexity. **Other considerations:** The benchmark also includes a script preparation code that creates an array of 1 million objects and pushes them onto the `data` array. The HTML preparation code includes a reference to the Fly Json ODM library. **Library:** Fly Json ODM is a JavaScript library for working with JSON data in NoSQL databases. It provides methods for setting, filtering, and executing queries on the data. In this benchmark, it's used to create a sample dataset and execute the `SET + WHERE` and `SET + WHERE (Shallow Mode)` queries. **Special JS feature:** There is no special JavaScript feature or syntax being tested in this benchmark. It's focused on the performance of the Fly Json ODM library itself. **Alternatives:** If you're looking for alternatives to Fly Json ODM, here are a few options: 1. **MongoDB JavaScript Driver**: A popular driver for working with MongoDB databases from JavaScript. 2. **PouchDB**: A lightweight, offline-first NoSQL database that can be used in web applications. 3. **LevelUp.js**: A NoSQL database library for JavaScript that provides a simple and efficient way to work with data. Keep in mind that each of these alternatives has its own strengths and weaknesses, and may not offer the same performance as Fly Json ODM in certain scenarios.
Related benchmarks:
Fly Json ODM - 1.16.0
Fly Json ODM - 1.18.2 - Medium Size
Fly Json ODM - 1.21.0
Fly Json ODM - 1.21.0 - Medium Size
Comments
Confirm delete:
Do you really want to delete benchmark?