# Aurelia perf example: Sierpinski triangle

**URL:** <https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879>\
**Category:** Uncategorized\
**Created:** [March 8, 2018, 9:27am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879 "2018-03-08T09:27:47Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [March 8, 2018, 9:27am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/1 "2018-03-08T09:27:47Z")

</div>

Online demo:

[http://aurelia-thousand-nodes.bigopon.surge.sh/](http://aurelia-thousand-nodes.bigopon.surge.sh/)

Github repo:

> **[bigopon/aurelia-sierpinski-triangle](https://github.com/bigopon/aurelia-sierpinski-triangle)**
>
> Sierpinski triangle example with Aurelia. Contribute to bigopon/aurelia-sierpinski-triangle development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 8, 2018, 10:24am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/2 "2018-03-08T10:24:44Z")

</div>

Well mister… this is all great… But how would I know what that is?  
Please, add a small note on what it is and why it is so cool.

60fps without ‘have fun’ and 40 with… on my machine…  
pretty awesome.

Although I still don’t understand what it is…  
(-:

---

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [March 8, 2018, 11:00am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/3 "2018-03-08T11:00:18Z")

</div>

I was reading a comment somewhere saying that he / she is not going use Aurelia as long as it doesn’t have virtual DOM, and today I got a friend showing me example of the same thing done in React, pointing out the superior performance of React Fiber compared to previous version. ([https://claudiopro.github.io/react-fiber-vs-stack-demo](https://claudiopro.github.io/react-fiber-vs-stack-demo) and repo [https://github.com/claudiopro/react-fiber-vs-stack-demo](https://github.com/claudiopro/react-fiber-vs-stack-demo)) So I made Aurelia version of that.

That said, I agree with you, @Alexander-Taran, I don’t think I can understand what it is either without the above context.

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 8, 2018, 11:15am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/4 "2018-03-08T11:15:21Z")

</div>

Ah… so you mocked the guy? saying we had all the cookies from the start?  
I think The team had performance on their minds from the get go.  
Sad that his demo does not have ‘have fun’ checkbox.

> **[aurelia/benchmarks](https://github.com/aurelia/benchmarks)**
>
> Performance benchmarks for Aurelia. Contribute to aurelia/benchmarks development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 8, 2018, 11:24am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/5 "2018-03-08T11:24:50Z")

</div>

Can’t understand how have fun works…  
It changes seconnds… but there are no dependency on seconds in tick.  
Can you explain, please?

Ah… never mind… it is passed down the line.  
Got it.

---

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [March 8, 2018, 11:26am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/6 "2018-03-08T11:26:14Z")

</div>

My friend (@jsobell) is not the owner of that repo. His friend showed him that so we made it.

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 8, 2018, 11:28am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/7 "2018-03-08T11:28:36Z")

</div>

I wonder if we clone it and modify to have that button… what would the perf be.  
Any guesses?

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 8, 2018, 11:31am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/8 "2018-03-08T11:31:05Z")

</div>

do you think  
`background: this.state.hover ? '#ff0' : dotStyle.background`  
this is intentional? like not using `.dot:hover` and doing it in code?

ok that is intentional. Because they reuse it in dot text

> <https://github.com/claudiopro/react-fiber-vs-stack-demo/issues/5>

---

<div class="post-metadata">

**Author:** ![jsobell](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/jsobell/32/87_2.png) [@jsobell](https://discourse.aurelia.io/u/jsobell)\
**Post date:** [March 8, 2018, 11:52am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/9 "2018-03-08T11:52:13Z")

</div>

I left a question there asking about performance:  
[https://github.com/claudiopro/react-fiber-vs-stack-demo/issues/4](https://github.com/claudiopro/react-fiber-vs-stack-demo/issues/4)  
Let’s see what they say

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 8, 2018, 11:56am UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/10 "2018-03-08T11:56:59Z")

</div>

Yeah…  
That could only end one way…  
!!! Relegious war !!!

---

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [March 8, 2018, 12:05pm UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/11 "2018-03-08T12:05:43Z")

</div>

well … starting war cannot bring fun, let’s be dark matter devs / community

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 8, 2018, 12:18pm UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/12 "2018-03-08T12:18:09Z")

</div>

> [@bigopon](#):
>
> let’s be dark matter devs / community

And i thought they said there is nothing like “bad PR”… (-:

---

<div class="post-metadata">

**Author:** ![dannyweldon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/dannyweldon/32/103_2.png) [@dannyweldon](https://discourse.aurelia.io/u/dannyweldon)\
**Post date:** [March 8, 2018, 1:02pm UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/13 "2018-03-08T13:02:37Z")

</div>

How does one work out the fps?

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 8, 2018, 2:02pm UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/14 "2018-03-08T14:02:26Z")

</div>

![image](https://canada1.discourse-cdn.com/flex027/uploads/aurelia/original/1X/6186892f1a8ddb23090963f0ee1b48ce9f46a914.png)

---

<div class="post-metadata">

**Author:** ![zewa666](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/zewa666/32/19_2.png) [@zewa666](https://discourse.aurelia.io/u/zewa666)\
**Post date:** [March 8, 2018, 6:09pm UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/15 "2018-03-08T18:09:10Z")

</div>

Well what should I say … you bad boy 😉

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 8, 2018, 6:19pm UTC](https://discourse.aurelia.io/t/aurelia-perf-example-sierpinski-triangle/879/16 "2018-03-08T18:19:13Z")

</div>

> [@zewa666](#):
>
> Well what should I say … you bad boy

no response so far to the issues.
