Skip to content

Commit

Permalink
Update benchmark results
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinkarthik committed Apr 29, 2018
1 parent ab165c7 commit 18d4669
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions benchmark/README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
```

0 comments on commit 18d4669

Please sign in to comment.