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
Jump 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:
6 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
Test name
Executions per second
class declaration
410748.8 Ops/sec
class expression
430574.1 Ops/sec
Related benchmarks:
instanceof vs type
Testing Var vs Return
Class vs Function
InstanceOf vs String type 2
normal vs eval
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?