Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add benchmark for Binding.scala #94

Merged
merged 7 commits into from
Dec 6, 2016
Merged

Conversation

Atry
Copy link
Contributor

@Atry Atry commented Dec 2, 2016

Ping @mweststrate @trueadm

This is an interesting benchmark. Thanks to Binding.scala's Precise data-binding algorithm, all Binding.scala's delta operations are much faster than all other frameworks.

@Atry
Copy link
Contributor Author

Atry commented Dec 2, 2016

When I talking about delta operations, I means the benchmark 03, 04, 05 and 06.

@Atry
Copy link
Contributor Author

Atry commented Dec 5, 2016

Any feedback? @krausest

@krausest krausest merged commit 417d1ef into krausest:master Dec 6, 2016
@krausest
Copy link
Owner

krausest commented Dec 6, 2016

Thanks - results are here

@Atry
Copy link
Contributor Author

Atry commented Dec 7, 2016

There may be some wrong in the result. binding.scala-v10.0.1_06_remove-one-1k should not be as slow as the result.

On my computer, binding.scala-v10.0.1_06_remove-one-1k is 10 times faster than vanillajs_06_remove-one-1k !

after initialized  06_remove-one-1k 0 binding.scala-v10.0.1
after run  06_remove-one-1k 0 binding.scala-v10.0.1
result binding.scala-v10.0.1_06_remove-one-1k [ { type: 'click', ts: 138156995841, dur: 348, end: 138156996189 },
  { type: 'paint', ts: 138157055751, dur: 1099, end: 138157056850 },
  { type: 'gc', ts: 138156900336, mem: 36.346763610839844 } ]
after initialized  06_remove-one-1k 0 vanillajs
after run  06_remove-one-1k 0 vanillajs
result vanillajs_06_remove-one-1k [ { type: 'click', ts: 138258041670, dur: 3743, end: 138258045413 },
  { type: 'paint', ts: 138258123467, dur: 1444, end: 138258124911 },
  { type: 'gc', ts: 138258135172, mem: 41.954978942871094 } ]

I suspect that vanillajs_06_remove-one-1k benchmark was running on a different Chrome version, which is the cause of the difference.

@yyx990803
Copy link
Contributor

Wait what? I thought binding.Scala is (quote) several times faster than Inferno and 4~20 times faster than Vue (/quote)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants