Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Commit

Permalink
Updated the notes to mention the latest Dart version improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedrosa committed Nov 22, 2011
1 parent a7c95a8 commit d59b696
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions notes.md
@@ -1,4 +1,20 @@

Using even more char codes now in the Dart version has resulted in bigger performance gains:

$ time ./luhny.dart 100 < sample.txt > /dev/null

real 0m0.617s
user 0m0.604s
sys 0m0.008s

$ time ./luhny.dart < mega_sample.txt > /dev/null

real 0m0.659s
user 0m0.648s
sys 0m0.008s

==========

Having found I/O performance degradation when using the default StringInputStream for the Dart version, I've managed to skip using it in favor of a custom method. The numbers when using the mega_sample.txt file are these:

$ time ./luhny.dart < mega_sample.txt > /dev/null
Expand Down

0 comments on commit d59b696

Please sign in to comment.