Skip to content

Commit cc29aed

Browse files
author
Pawan Rawal
committed
Updating bin files and benchmark results.
1 parent 4b5c9e8 commit cc29aed

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

query/benchmark/README.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,23 @@ BenchmarkToPB_1000_Director 300 3980677 ns/op 395600 B/op 7376
4545

4646
We can see that ToProtocolBuffer method allocates less memory and takes lesser
4747
time than ToJson method.
48+
49+
20 May 2016
50+
These are the benchmarking results after changing type of Value in x.DirectedEdge,
51+
type of ObjectValue in NQuad to []byte and using the byte slice directly from
52+
flatbuffers instead of parsing into an interface.(Commit SHA - 480b1337f). We
53+
can see tremendous improvement(>50% on an average) for all metrics. For exact
54+
percentage change, we can run benchcmp to compare the metrics.
55+
56+
BenchmarkToJSON_10_Actor-4 50000 27497 ns/op 7626 B/op 113 allocs/op
57+
BenchmarkToJSON_10_Director-4 30000 54688 ns/op 16229 B/op 228 allocs/op
58+
BenchmarkToJSON_100_Actor-4 10000 137853 ns/op 37333 B/op 619 allocs/op
59+
BenchmarkToJSON_100_Director-4 5000 334310 ns/op 92971 B/op 1428 allocs/op
60+
BenchmarkToJSON_1000_Actor-4 2000 780858 ns/op 240419 B/op 3863 allocs/op
61+
BenchmarkToJSON_1000_Director-4 500 3599711 ns/op 986670 B/op 15867 allocs/op
62+
BenchmarkToPB_10_Actor-4 500000 3252 ns/op 664 B/op 15 allocs/op
63+
BenchmarkToPB_10_Director-4 300000 4991 ns/op 976 B/op 21 allocs/op
64+
BenchmarkToPB_100_Actor-4 30000 44771 ns/op 8008 B/op 145 allocs/op
65+
BenchmarkToPB_100_Director-4 20000 60952 ns/op 10672 B/op 218 allocs/op
66+
BenchmarkToPB_1000_Actor-4 5000 366134 ns/op 56217 B/op 958 allocs/op
67+
BenchmarkToPB_1000_Director-4 2000 908611 ns/op 150163 B/op 3080 allocs/op

query/benchmark/actors10.bin

-564 Bytes
Binary file not shown.

query/benchmark/actors100.bin

-4.25 KB
Binary file not shown.

query/benchmark/actors1000.bin

-40.3 KB
Binary file not shown.

query/benchmark/directors10.bin

-152 Bytes
Binary file not shown.

query/benchmark/directors100.bin

-1.19 KB
Binary file not shown.

query/benchmark/directors1000.bin

1.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)