Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
class declaration vs class expression
(version: 1)
Comparing performance of:
class declaration vs class expression
Created:
one year ago
by:
Guest
Go to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Tests:
class declaration
class a { static b = 'c' d = 'e' } new a
class expression
let a = class { static b = 'c' d = 'e' } new a
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
class declaration
class expression
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
9 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Browser/OS:
Chrome 144 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
class expression
431K/s
class declaration
411K/s
View exact numbers
Test name
Executions per second
✓
class expression
430,574 Ops/sec
class declaration
410,749 Ops/sec
Related benchmarks
Class vs Function
InstanceOf vs flag
instanceof vs in
Dynamic class vs object
class declaration vs class expression 2
Comments
Confirm delete:
Do you really want to delete benchmark?