Permalink
Browse files

added benchmark in version 1 too

  • Loading branch information...
WebReflection committed Mar 2, 2016
1 parent fef8f6d commit 7d3de547c032e36ba5a262cdbc47663a373cc03e
Showing with 31 additions and 3 deletions.
  1. +11 −1 preview-svg.html
  2. +9 −1 preview-template.html
  3. +11 −1 preview.html
View
@@ -691,6 +691,8 @@
<li>&#x1F63E;</li>
<li>&#x1F63F;</li>
<li>&#x1F640;</li>
<li>&#x1F641;</li>
<li>&#x1F642;</li>
<li>&#x1F645;</li>
<li>&#x1F646;</li>
<li>&#x1F647;</li>
@@ -903,7 +905,15 @@
<li>&#xE50A;</li>
</ul>
<script>
twemoji.parse(document.getElementsByTagName('ul')[0], {"folder":"svg","ext":".svg","base":""});
var ul = document.getElementsByTagName('ul')[0];
var total = ul.getElementsByTagName('li').length;
var elapsed = +new Date;
twemoji.parse(ul, {"folder":"svg","ext":".svg","base":""});
elapsed = (+new Date) - elapsed;
document.body.insertBefore(
document.createTextNode(total + ' emoji parsed in ' + elapsed + 'ms'),
document.body.firstChild
);
(function (img, metaKey, i) {
function copyToClipboard(e) {
prompt('Copy to clipboard via ' + metaKey + '+C and Enter', this.alt);
View
@@ -32,7 +32,15 @@
{{emoji-list}}
</ul>
<script>
twemoji.parse(document.getElementsByTagName('ul')[0], {{emoji-options}});
var ul = document.getElementsByTagName('ul')[0];
var total = ul.getElementsByTagName('li').length;
var elapsed = +new Date;
twemoji.parse(ul, {{emoji-options}});
elapsed = (+new Date) - elapsed;
document.body.insertBefore(
document.createTextNode(total + ' emoji parsed in ' + elapsed + 'ms'),
document.body.firstChild
);
(function (img, metaKey, i) {
function copyToClipboard(e) {
prompt('Copy to clipboard via ' + metaKey + '+C and Enter', this.alt);
View
@@ -691,6 +691,8 @@
<li>&#x1F63E;</li>
<li>&#x1F63F;</li>
<li>&#x1F640;</li>
<li>&#x1F641;</li>
<li>&#x1F642;</li>
<li>&#x1F645;</li>
<li>&#x1F646;</li>
<li>&#x1F647;</li>
@@ -903,7 +905,15 @@
<li>&#xE50A;</li>
</ul>
<script>
twemoji.parse(document.getElementsByTagName('ul')[0], {"size":72});
var ul = document.getElementsByTagName('ul')[0];
var total = ul.getElementsByTagName('li').length;
var elapsed = +new Date;
twemoji.parse(ul, {"size":72});
elapsed = (+new Date) - elapsed;
document.body.insertBefore(
document.createTextNode(total + ' emoji parsed in ' + elapsed + 'ms'),
document.body.firstChild
);
(function (img, metaKey, i) {
function copyToClipboard(e) {
prompt('Copy to clipboard via ' + metaKey + '+C and Enter', this.alt);

0 comments on commit 7d3de54

Please sign in to comment.