LINK : https://hwanseung.github.io/DOMMatrixPerformanceTest
- this test performed multiply() function many time.
- (polyfill is refered https://github.com/css-typed-om/typed-om/blob/master/src/dom-matrix-readonly.js)
when perform many times, polyfill is faster than native about 40 times.
| count | polyfill | native |
|---|---|---|
| 10 | 1.5950000000000273ms | 5.57000000000005ms |
| 100 | 8.620000000000005ms | 26.49000000000001ms |
| 1000 | 11.659999999999968ms | 268.0799999999999ms |
| 10000 | 58.2650000000001ms | 2676.46ms |
| 100000 | 512.6850000000002ms | 21326.345ms |
| (in my local computer) |
when perform many times, polyfill is faster than native about 2 times.
| count | polyfill | native |
|---|---|---|
| 10 | 0.14500000000043656ms | 0.2900000000008731ms |
| 100 | 1.110000000000582ms | 0.9949999999953434ms |
| 1000 | 4.959999999999127ms | 7.989999999997963ms |
| 10000 | 53.06999999999971ms | 83.79500000000553ms |
| 100000 | 480.7350000000006ms | 851.5449999999983ms |
| 1000000 | 4807.380000000005ms | 9599.649999999994ms |
| (in my local computer) |