Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Test Utagsync
(version: 0)
Comparing performance of:
Array pequeño vs Array grande
Created:
6 years ago
by:
Guest
Jump to the latest result
Tests:
Array pequeño
window.target_data_public = [ "/general/hazte-cliente/abrir-cuenta-bancaria-empresas.html", "/general/hazte-cliente/aviso-negocios-bienvenida.html", "/personas/productos/seguros.html", "/personas/productos/prestamos/prestamo-personal-online.html", "/personas/productos/tarjetas/tarjeta-despues.html", "/personas/productos/tarjetas/tarjeta-joven-despues.html", "/personas/productos/tarjetas/tarjeta-joven-ahora.html", "/personas/productos/tarjetas/tarjeta-joven-antes.html", "/personas/productos/tarjetas/tarjeta-iberia-classic.html", "/personas/productos/tarjetas/tarjeta-iberia-icon.html", "/personas/productos/tarjetas/tarjeta-ahora.html", "/personas/productos/tarjetas/tarjeta-antes.html", "/personas/productos/tarjetas/tarjeta-despues-oro.html", "/personas/productos/tarjetas/tarjeta-dorada-renfe.html", "/personas/productos/tarjetas/tarjeta-repsol-mas-visa-credito.html", "/personas/productos/tarjetas/tarjeta-repsol-mas-visa-debito.html", "/personas/productos/tarjetas/tarjeta-telepeaje-via-t.html", "/personas/productos/tarjetas/tarjeta-viajes.html", "/personas/productos/tarjetas/tarjeta-virtual.html", "/personas.html", "/personas/productos/seguros/viajes.html" ]; function checkArrayPerformance() { //console.log("Inicio: "+Date.now()) if (window.target_data_public.indexOf(document.location.pathname)) { // Just loop the array } //console.log("Fin: "+Date.now()) } checkArrayPerformance()
Array grande
window.target_data_public = [ "/general/hazte-cliente/abrir-cuenta-bancaria-empresas.html", "/general/hazte-cliente/aviso-negocios-bienvenida.html", "/personas/productos/seguros.html", "/personas/productos/prestamos/prestamo-personal-online.html", "/personas/productos/tarjetas/tarjeta-despues.html", "/personas/productos/tarjetas/tarjeta-joven-despues.html", "/personas/productos/tarjetas/tarjeta-joven-ahora.html", "/personas/productos/tarjetas/tarjeta-joven-antes.html", "/personas/productos/tarjetas/tarjeta-iberia-classic.html", "/personas/productos/tarjetas/tarjeta-iberia-icon.html", "/personas/productos/tarjetas/tarjeta-ahora.html", "/personas/productos/tarjetas/tarjeta-antes.html", "/personas/productos/tarjetas/tarjeta-despues-oro.html", "/personas/productos/tarjetas/tarjeta-dorada-renfe.html", "/personas/productos/tarjetas/tarjeta-repsol-mas-visa-credito.html", "/personas/productos/tarjetas/tarjeta-repsol-mas-visa-debito.html", "/personas/productos/tarjetas/tarjeta-telepeaje-via-t.html", "/personas/productos/tarjetas/tarjeta-viajes.html", "/personas/productos/tarjetas/tarjeta-virtual.html", "/personas.html", "/personas/productos/seguros/viajes.html", "/general/hazte-cliente/abrir-cuenta-bancaria-empresas.html", "/general/hazte-cliente/aviso-negocios-bienvenida.html", "/personas/productos/seguros.html", "/personas/productos/prestamos/prestamo-personal-online.html", "/personas/productos/tarjetas/tarjeta-despues.html", "/personas/productos/tarjetas/tarjeta-joven-despues.html", "/personas/productos/tarjetas/tarjeta-joven-ahora.html", "/personas/productos/tarjetas/tarjeta-joven-antes.html", "/personas/productos/tarjetas/tarjeta-iberia-classic.html", "/personas/productos/tarjetas/tarjeta-iberia-icon.html", "/personas/productos/tarjetas/tarjeta-ahora.html", "/personas/productos/tarjetas/tarjeta-antes.html", "/personas/productos/tarjetas/tarjeta-despues-oro.html", "/personas/productos/tarjetas/tarjeta-dorada-renfe.html", "/personas/productos/tarjetas/tarjeta-repsol-mas-visa-credito.html", "/personas/productos/tarjetas/tarjeta-repsol-mas-visa-debito.html", "/personas/productos/tarjetas/tarjeta-telepeaje-via-t.html", "/personas/productos/tarjetas/tarjeta-viajes.html", "/personas/productos/tarjetas/tarjeta-virtual.html", "/personas.html", "/personas/productos/seguros/viajes.html" ]; function checkArrayPerformance() { //console.log("Inicio: "+Date.now()) if (window.target_data_public.indexOf(document.location.pathname)) { // Just loop the array } //console.log("Fin: "+Date.now()) } checkArrayPerformance()
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array pequeño
Array grande
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 its options. **Benchmark Definition** The benchmark definition is an array of URLs that are checked against the `window.target_data_public` variable. This variable contains a list of public data URLs, which are used to filter incoming requests on the client-side. **Options** There are two test cases: 1. **Array pequeño (Small Array)**: The `target_data_public` array has 22 elements. 2. **Array grande (Large Array)**: The `target_data_public` array has approximately 62,000 elements. The benchmark measures the time it takes to execute a function (`checkArrayPerformance`) that loops through each URL in the array and checks if the current request's pathname matches any of the URLs in the array. **Raw Benchmark Results** The latest benchmark results show two runs: 1. **Array pequeño (Small Array)**: 442,747 executions per second 2. **Array grande (Large Array)**: 429,204 executions per second These results indicate that the Chrome browser on a Windows desktop is significantly slower at processing requests against the large array compared to the small array. **Implications** This benchmark highlights the importance of efficient data filtering and caching mechanisms in web applications, especially for large datasets. The results suggest that the performance impact of using a large dataset can be significant, even with modern browsers like Chrome. To mitigate this issue, developers may consider strategies such as: * Caching frequently accessed URLs or data * Implementing data compression or encoding to reduce storage requirements * Optimizing database queries or indexing for faster lookup times * Using alternative data structures or algorithms that can handle large datasets more efficiently By understanding the performance implications of using large datasets, developers can make informed decisions about their application's architecture and design.
Related benchmarks:
sdasdasdasd123123123
Date.now()
Eval ISO vs Epoch
a Web Encrypt API (Decrypt)
js timestamp cost
Comments
Confirm delete:
Do you really want to delete benchmark?