Skip to content

Instantly share code, notes, and snippets.

@TonnyXu
Created February 27, 2010 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TonnyXu/316538 to your computer and use it in GitHub Desktop.
Save TonnyXu/316538 to your computer and use it in GitHub Desktop.
3611 ticks. ReverseByAPI(Length:1), runs 10000 times.
3581 ticks. ReverseByXor(Length:1), runs 10000 times.
===============
4955 ticks. ReverseByAPI(Length:10), runs 10000 times.
5349 ticks. ReverseByXor(Length:10), runs 10000 times.
===============
9553 ticks. ReverseByAPI(Length:100), runs 10000 times.
27669 ticks. ReverseByXor(Length:100), runs 10000 times.
===============
120702 ticks. ReverseByAPI(Length:1000), runs 10000 times.
497344 ticks. ReverseByXor(Length:1000), runs 10000 times.
===============
193732 ticks. ReverseByAPI(Length:5000), runs 10000 times.
1110407 ticks. ReverseByXor(Length:5000), runs 10000 times.
===============
435374 ticks. ReverseByAPI(Length:10000), runs 10000 times.
2165682 ticks. ReverseByXor(Length:10000), runs 10000 times.
===============
3299944 ticks. ReverseByAPI(Length:50000), runs 10000 times.
11932840 ticks. ReverseByXor(Length:50000), runs 10000 times.
===============
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment