From 18d4669b576c3e2a402b1e61f8efcec4a64b292f Mon Sep 17 00:00:00 2001 From: aswinkarthik93 Date: Sun, 29 Apr 2018 14:27:57 +0530 Subject: [PATCH] Update benchmark results --- benchmark/README.md | 47 ++++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/benchmark/README.md b/benchmark/README.md index e4d4dcd..e38aa9e 100644 --- a/benchmark/README.md +++ b/benchmark/README.md @@ -1,26 +1,29 @@ -## Comparison with other tools +# Comparison with other tools - -### Setup +## Setup * Using the majestic million data. (Source in credits section) * Both files have 998390 rows and 12 columns. * Only one modification between both files. * Ran on Processor: Intel Core i7 2.5 GHz 4 cores 16 GB RAM -0. csvdiff (this tool) : *0m2.085s* - -```bash -time csvdiff run -b majestic_million.csv -d majestic_million_diff.csv +## Baseline -# Additions: 0 -# Modifications: 1 +0. csvdiff (this tool) : *0m1.159s* -real 0m2.085s -user 0m3.861s -sys 0m0.340s +```bash + time csvdiff majestic_million.csv majestic_million_diff.csv +Additions 0 +Modifications 1 +... + +real 0m1.159s +user 0m2.167s +sys 0m0.222s ``` +## Other tools + 1. [data.table](https://github.com/Rdatatable/data.table) : *0m4.284s* * Join both csvs using `id` column. @@ -71,13 +74,13 @@ $ cd ./pkg/digest $ go test -bench=. -v -benchmem -benchtime=5s -cover ``` -| | | | | | -| ---------------------------- | ---------- | ----------------------- | -------------------- | ------------------- | -| BenchmarkCreate1-8 | 2000000 | 5967 ns/op | 5474 B/op | 21 allocs/op | -| BenchmarkCreate10-8 | 500000 | 16251 ns/op | 10889 B/op | 94 allocs/op | -| BenchmarkCreate100-8 | 100000 | 114219 ns/op | 67139 B/op | 829 allocs/op | -| BenchmarkCreate1000-8 | 10000 | 1042723 ns/op | 674239 B/op | 8078 allocs/op | -| BenchmarkCreate10000-8 | 1000 | 10386850 ns/op | 6533806 B/op | 80306 allocs/op | -| BenchmarkCreate100000-8 | 100 | 108740944 ns/op | 64206718 B/op | 804208 allocs/op | -| BenchmarkCreate1000000-8 | 5 | 1161730558 ns/op | 672048142 B/op | 8039026 allocs/op | -| BenchmarkCreate10000000-8 | 1 | 12721982424 ns/op | 6549111872 B/op| 80308455 allocs/op | +``` +BenchmarkCreate1-8 200000 31794 ns/op 116163 B/op 24 allocs/op +BenchmarkCreate10-8 200000 43351 ns/op 119993 B/op 79 allocs/op +BenchmarkCreate100-8 50000 142645 ns/op 160577 B/op 634 allocs/op +BenchmarkCreate1000-8 10000 907308 ns/op 621694 B/op 6085 allocs/op +BenchmarkCreate10000-8 1000 7998083 ns/op 5117977 B/op 60345 allocs/op +BenchmarkCreate100000-8 100 81260585 ns/op 49106849 B/op 604563 allocs/op +BenchmarkCreate1000000-8 10 788485738 ns/op 520115434 B/op 6042650 allocs/op +BenchmarkCreate10000000-8 1 7878009695 ns/op 5029061632 B/op 60346535 allocs/op +``` \ No newline at end of file