Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
State Key Creation (With Preparation Code)
my test benchmark
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Browser:
Chrome 141
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one month ago
(select 198766*667891 from DUAL)
1/s
MmzHrrdb
1/s
MmzHrrdb
1/s
MmzHrrdb
1/s
MmzHrrdb
1/s
MmzHrrdb
1/s
MmzHrrdb
1/s
View exact numbers
Test name
Executions per second
✓
(select 198766*667891 from DUAL)
1 Ops/sec
✓
MmzHrrdb
1 Ops/sec
✓
MmzHrrdb
1 Ops/sec
✓
MmzHrrdb
1 Ops/sec
✓
MmzHrrdb
1 Ops/sec
✓
MmzHrrdb
1 Ops/sec
✓
MmzHrrdb
1 Ops/sec
Script Preparation code:
const usableCount = 5; const itemCount = 10; const type = Math.floor(Math.random() * 100); const usables = new Array(usableCount).fill(0).map(_ => Math.floor(Math.random() * 100)); const items = new Array(itemCount).fill(0).map(_ => Math.floor(Math.random() * 100));
Tests:
Nested Join + Join (Join x3)
const key = [type, usables.join(), items.join()].join ("|");
Loop Push + Join (Join x1 with string)
let data = [type, "|"]; const usableCountMinusOne = usableCount - 1; for (let i = 0 ; i < usableCountMinusOne ; i++) data.push (usables[i], ","); data.push (usables[usableCountMinusOne], "|"); const itemCountMinusOne = itemCount - 1; for (let i = 0 ; i < itemCountMinusOne ; i++) data.push (items[i], ","); data.push (items[itemCountMinusOne]); const key = data.join ("");
Simple Join (Join x1 with arrays)
const key = [type, usables, items].join ("|");
Loop Concatenate (string only)
let key = type + "|"; const usableCountMinusOne = usableCount - 1; for (let i = 0 ; i < usableCountMinusOne ; i++) key += usables[i] + ","; key += usables[9] + "|"; const itemCountMinusOne = itemCount - 1; for (let i = 0 ; i < itemCountMinusOne ; i++) key += items[i] + ","; key += items[9];
Template Literal (template literal string with arrays)
const key = `${type}|${usables}|${items}`;
Template Literal + Join (template literal string with join)
const key = `${type}|${usables.join()}|${items.join}`;
Simple Concatenate + Join
const key = type + "|" + usables.join() + "|" + items.join();