Git Product home page Git Product logo

bolt-bench-diff's Introduction

➔ cat native.out
Benchmark_CreatePerTx-4                  	     500	   3006573 ns/op
Benchmark_PutDataByBatch-4               	  200000	    331578 ns/op
Benchmark_PutDataConcurrentlyByBatch-4   	  200000	    327767 ns/op
--- BENCH: Benchmark_PutDataConcurrentlyByBatch-4
	bench_test.go:186: count keys = 5
	bench_test.go:186: count keys = 104
	bench_test.go:186: count keys = 10004
	bench_test.go:186: count keys = 200004
Benchmark_GetData-4                      	 1000000	      1021 ns/op
Benchmark_Cursor-4                       	20000000	        54.5 ns/op
PASS
ok  	command-line-arguments	231.569s


➔ cat encrypt.out
Benchmark_CreatePerTx-4                  	     500	   3344007 ns/op
Benchmark_PutDataByBatch-4               	  100000	    160170 ns/op
Benchmark_PutDataConcurrentlyByBatch-4   	  100000	    160146 ns/op
--- BENCH: Benchmark_PutDataConcurrentlyByBatch-4
	bolt_encrypt_bench_test.go:192: count keys = 5
	bolt_encrypt_bench_test.go:192: count keys = 104
	bolt_encrypt_bench_test.go:192: count keys = 10004
	bolt_encrypt_bench_test.go:192: count keys = 100004
Benchmark_GetData-4                      	   50000	     32058 ns/op
Benchmark_Cursor-4                       	 2000000	       918 ns/op
PASS
ok  	command-line-arguments	62.841s

➔ benchcmp native.out encrypt.out
benchmark                                  old ns/op     new ns/op     delta
Benchmark_CreatePerTx-4                    3006573       3344007       +11.22%
Benchmark_PutDataByBatch-4                 331578        160170        -51.69%
Benchmark_PutDataConcurrentlyByBatch-4     327767        160146        -51.14%
Benchmark_GetData-4                        1021          32058         +3039.86%
Benchmark_Cursor-4                         54.5          918           +1584.40%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.