Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

52 строки
1.3 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>SVG.js benchmarker</title>
  5. <style>
  6. @import url('https://fonts.googleapis.com/css?family=Inconsolata');
  7. body {
  8. font-family: 'Inconsolata', 'Menlo', monospace;
  9. font-weight: 300;
  10. color: #999;
  11. font-size: 14px;
  12. }
  13. svg {
  14. width: 2px;
  15. height: 2px;
  16. overflow: hidden;
  17. position: fixed;
  18. right: 0;
  19. }
  20. span.name {
  21. color: #B7CD3E;
  22. }
  23. span.ms {
  24. color: #FF0066;
  25. }
  26. h1 {
  27. font-size: 1.2em;
  28. }
  29. .test {
  30. text-indent: 1em;
  31. }
  32. .skipped {
  33. color: #FBCB72;
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. <div id="draw"></div>
  39. <svg id="native" width="100" height="100" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs"></svg>
  40. <script src="../dist/svg.js"></script>
  41. <script src="https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js"></script>
  42. <script src="svg.bench.js"></script>
  43. <!-- <script src="tests/10000-each.js"></script>
  44. <script src="tests/10000-rects.js"></script>
  45. <script src="tests/10000-circles.js"></script>
  46. <script src="tests/10000-paths.js"></script>-->
  47. <script src="tests/10000-polysPointRead.js"></script>
  48. <script>
  49. SVG.bench.run()
  50. </script>
  51. </body>
  52. </html>