|
INTRODUCTION:
For the people
that can only trust raw numbers, or for the people who just might want to
simply see the performance benefits of using CsvReader over what they've been
using, simple benchmarks are provided below to attempt to give a rough picture
of the comparisons. These results should be very reproducible. A very simple
test file format was used just to test raw file processing power and to exclude
differences in functionality across the different packages. Keep in mind that
each package has its own features and syntax, and all that's being compared
here is raw processing speed under a specific situation.
TEST FILE CREATION:
VB.NET:
Dim writer As New CsvWriter("C:\verylarge.csv")
Dim random As New Random
For j As Integer = 0 To 19
For i As Integer = 0 To 65535
writer.Write(random.Next().ToString(), True)
writer.Write(random.Next().ToString(), True)
writer.Write(random.Next().ToString(), True)
writer.Write(random.Next().ToString(), True)
writer.Write(random.Next().ToString(), True)
writer.EndRecord()
Next
Next
writer.Close()
writer.Dispose()
C#:
using (CsvWriter writer = new CsvWriter(@"C:\verylarge.csv"))
{
Random random = new Random();
for (int j = 0; j < 20; j++)
{
for (int i = 0; i < 65536; i++)
{
writer.Write(random.Next().ToString(), true);
writer.Write(random.Next().ToString(), true);
writer.Write(random.Next().ToString(), true);
writer.Write(random.Next().ToString(), true);
writer.Write(random.Next().ToString(), true);
writer.EndRecord();
}
}
}
TEST FILE FORMAT:
930086460,84532493,1388180560,1221957350,806121496
1264133231,1643331990,1681813010,1337239887,408125903
123472240,490484808,1530589550,1089858148,1702568686
...
TEST FILE SIZE:
68.37 MB
QUESTIONS / COMMENTS:
For questions or
comments, email bruce@csvreader.com
|