md5_perf.html 984 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright 2011 The Closure Library Authors. All Rights Reserved.
  5. Use of this source code is governed by the Apache License, Version 2.0.
  6. See the COPYING file for details.
  7. -->
  8. <head>
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <title>Closure Performance Tests - goog.crypt.Md5</title>
  11. <link rel="stylesheet" type="text/css" href="../testing/performancetable.css"/>
  12. <script src="../base.js"></script>
  13. <script>
  14. goog.require('goog.crypt.Md5');
  15. goog.require('goog.crypt.hashTester')
  16. goog.require('goog.testing.PerformanceTable');
  17. goog.require('goog.testing.PseudoRandom');
  18. goog.require('goog.testing.jsunit');
  19. </script>
  20. </head>
  21. <body>
  22. <h1>Closure Performance Tests - goog.crypt.Md5</h1>
  23. <p>
  24. <strong>User-agent:</strong>
  25. <script>document.write(navigator.userAgent);</script>
  26. </p>
  27. <script>
  28. function testHashing() {
  29. goog.crypt.hashTester.runPerfTests(function() {
  30. return new goog.crypt.Md5();
  31. }, 'MD5');
  32. }
  33. </script>
  34. </body>
  35. </html>