Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
asdfsa dfd
(version: 1)
Comparing performance of:
ts1 vs ts2
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ async function globalMeasureThatScriptPrepareFunction() { // This function is optional, feel free to remove it. // await someThing(); } var arr = []; for (var i = 0; i < 10000000; ++i) { arr[i] = i; }
Tests:
ts1
var t = arr.values().filter(v => v % 20 === 0).map(v => v + 1).map(v => v / 2).toArray()
ts2
var t = arr.filter(v => v % 20 === 0).map(v => v + 1).map(v => v / 2)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
ts1
ts2
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Browser/OS:
Chrome 136 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
ts1
3.0 Ops/sec
ts2
7.5 Ops/sec
Related benchmarks:
For with and without external variables
For with and without external variables
For with and without external variables
For with and without external variables
for loop vs. lodash range foreach222
IfElse or logical AND with OR
Test1212312415
asdfsa dfd2
test slice czourhgirzjgprz
Comments
Confirm delete:
Do you really want to delete benchmark?