Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new benchmark for gola #13

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

wengwei-ola
Copy link

gola is a new golang orm supporting go generic.

May I add its benchmark for reference?

@wengwei-ola
Copy link
Author

wengwei-ola commented Sep 7, 2022

benchmark result on my local mac with go 1.18.5:

goos: darwin
goarch: amd64
pkg: github.com/volatiletech/boilbench
cpu: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
BenchmarkGORMDelete/gorm-12      	  205321	      5839 ns/op	    4379 B/op	      57 allocs/op
BenchmarkGOLADelete/gola-12      	 2263915	       535.7 ns/op	     128 B/op	       5 allocs/op
BenchmarkGORPDelete/gorp-12      	 1000000	      1010 ns/op	     336 B/op	      12 allocs/op
BenchmarkXORMDelete/xorm-12      	  154161	      8470 ns/op	    3274 B/op	     108 allocs/op
BenchmarkBoilDelete/boil-12      	 1718780	       652.0 ns/op	     152 B/op	       7 allocs/op
BenchmarkPOPDelete/pop-12        	  161558	      7346 ns/op	     760 B/op	      72 allocs/op
BenchmarkGORMInsert/gorm-12      	  114314	     10660 ns/op	    7310 B/op	      90 allocs/op
BenchmarkGOLAInsert/gola-12      	 1000000	      1011 ns/op	     616 B/op	       6 allocs/op
BenchmarkGORPInsert/gorp-12      	  398194	      2969 ns/op	    1368 B/op	      31 allocs/op
BenchmarkXORMInsert/xorm-12      	  128451	     10281 ns/op	    4603 B/op	      97 allocs/op
BenchmarkBoilInsert/boil-12      	  627290	      2057 ns/op	     920 B/op	      19 allocs/op
BenchmarkPOPInsert/pop-12        	   32815	     36925 ns/op	    8246 B/op	     298 allocs/op
BenchmarkGORMRawBind/gorm-12     	   55443	     22245 ns/op	    8439 B/op	     191 allocs/op
BenchmarkGOLARawBind/gola-12     	  229987	      5196 ns/op	    2456 B/op	      31 allocs/op
BenchmarkGORPRawBind/gorp-12     	   59994	     19955 ns/op	    7221 B/op	     218 allocs/op
BenchmarkXORMRawBind/xorm-12     	   27597	     44416 ns/op	   14059 B/op	     394 allocs/op
BenchmarkBoilRawBind/boil-12     	  197064	      6208 ns/op	    3939 B/op	      34 allocs/op
BenchmarkPopRawBind/pop-12       	  101695	     11989 ns/op	    5149 B/op	      50 allocs/op
BenchmarkGORMSelectAll/gorm-12   	   57400	     21264 ns/op	    9056 B/op	     180 allocs/op
BenchmarkGOLASelectAll/gola-12   	  220464	      5591 ns/op	    2682 B/op	      35 allocs/op
BenchmarkGORPSelectAll/gorp-12   	   58017	     20590 ns/op	    7221 B/op	     218 allocs/op
BenchmarkXORMSelectAll/xorm-12   	   25374	     45769 ns/op	   14744 B/op	     409 allocs/op
BenchmarkBoilSelectAll/boil-12   	  179629	      6670 ns/op	    2846 B/op	      47 allocs/op
BenchmarkPopSelectAll/pop-12     	   46228	     26318 ns/op	    6650 B/op	     133 allocs/op
BenchmarkGORMSelectSubset/gorm-12         	   67755	     17519 ns/op	    8872 B/op	     151 allocs/op
BenchmarkGOLASelectSubset/gola-12         	  274694	      4471 ns/op	    2297 B/op	      35 allocs/op
BenchmarkGORPSelectSubset/gorp-12         	   74900	     16459 ns/op	    6549 B/op	     180 allocs/op
BenchmarkXORMSelectSubset/xorm-12         	   32335	     36284 ns/op	   11530 B/op	     350 allocs/op
BenchmarkBoilSelectSubset/boil-12         	  198560	      5991 ns/op	    2787 B/op	      51 allocs/op
BenchmarkPopSelectSubset/pop-12           	   53630	     22574 ns/op	    6152 B/op	     136 allocs/op
BenchmarkGORMSelectComplex/gorm-12        	   50648	     23817 ns/op	   10784 B/op	     216 allocs/op
BenchmarkGOLASelectComplex/gola-12        	  249832	      4849 ns/op	    2618 B/op	      39 allocs/op
BenchmarkGORPSelectComplex/gorp-12        	   56638	     20872 ns/op	    7510 B/op	     221 allocs/op
BenchmarkXORMSelectComplex/xorm-12        	   22922	     50756 ns/op	   15930 B/op	     445 allocs/op
BenchmarkBoilSelectComplex/boil-12        	  131221	      9008 ns/op	    3857 B/op	      70 allocs/op
BenchmarkPopSelectComplex/pop-12          	   41217	     26778 ns/op	    7102 B/op	     153 allocs/op
BenchmarkGORMUpdate/gorm-12               	  164503	      7694 ns/op	    5332 B/op	      63 allocs/op
BenchmarkGOLAUpdate/gola-12               	 1220782	       953.8 ns/op	     304 B/op	      10 allocs/op
BenchmarkGORPUpdate/gorp-12               	  402994	      2982 ns/op	    1480 B/op	      32 allocs/op
BenchmarkXORMUpdate/xorm-12               	  136105	      8914 ns/op	    3467 B/op	     110 allocs/op
BenchmarkBoilUpdate/boil-12               	  800906	      1557 ns/op	     880 B/op	      15 allocs/op
BenchmarkPopUpdate/pop-12                 	   36982	     31205 ns/op	    7782 B/op	     289 allocs/op
PASS
ok  	github.com/volatiletech/boilbench	61.279s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant