Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Chrome 52
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
detects an empty string as a palindrome 2182746.0 Ops/sec
detects a single character as a palindrome 1858438.0 Ops/sec
detects palindromic word 890442.6 Ops/sec
detects non-palindromic word 1595143.0 Ops/sec
detects palindromic sentence with capitalisation 376856.7 Ops/sec
detects palindromic sentence 442971.0 Ops/sec
detects non-palindromic sentence 1133257.6 Ops/sec
Script Preparation code:
Tests:
  • detects an empty string as a palindrome

  • detects a single character as a palindrome

  • detects palindromic word

  • detects non-palindromic word

  • detects palindromic sentence with capitalisation

  • detects palindromic sentence

  • detects non-palindromic sentence