GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - monoculum/formam-benchmark: Benchmark about formam package (compared with built-in JSON, ajg/form and gorilla/schema)

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
formam_1_test.go
formam_1_test.go
 
 
formam_2_test.go
formam_2_test.go
 
 
formam_3_test.go
formam_3_test.go
 
 

Repository files navigation

formam-benchmark

Benchmark about formam package (compared with ajg/form, gorilla/schema, go-playground/form and built-in/json)

In a iMac 2.8GHz i7, 8GB 1067MHz DDR3 and Go 1.7beta1

SCENARIOS

The follow scenarios are real examples that can be seen in many projects.

SIMPLE

BenchmarkAJGFormTestSIMPLE-8   	   50000	     26575 ns/op	    3153 B/op	      66 allocs/op
BenchmarkSchemaTestSIMPLE-8    	  200000	      9879 ns/op	    1376 B/op	      48 allocs/op
BenchmarkFormamTestSIMPLE-8    	  200000	      7031 ns/op	     612 B/op	      42 allocs/op
BenchmarkFormTestSIMPLE-8      	  200000	      6899 ns/op	     904 B/op	      29 allocs/op

BenchmarkJSONTestSIMPLE-8      	  200000	      9685 ns/op	     848 B/op	      17 allocs/op

formam is three times faster than ajg/form, two times faster than gorilla/schema, slightly more slowly than go-playground/form, and faster than built-in/json. go-playground/form has the least allocations.

MEDIUM

NOTE: gorilla/schema not support map...

BenchmarkAJGFormTestMEDIUM-8   	   30000	     44443 ns/op	    5907 B/op	     120 allocs/op
BenchmarkFormamTestMEDIUM-8    	  100000	     17434 ns/op	    5770 B/op	      84 allocs/op
BenchmarkFormTestMEDIUM-8      	   50000	     26513 ns/op	    3977 B/op	     136 allocs/op

BenchmarkJSONTestMEDIUM-8      	  100000	     16324 ns/op	    1696 B/op	      32 allocs/op

formam is the fastest and has the least allocations.

COMPLEX

BenchmarkFormamTestCOMPLEX-8   	    5000	    278635 ns/op	   42564 B/op	    1797 allocs/op
BenchmarkFormTestCOMPLEX-8     	    3000	    568477 ns/op	   90193 B/op	    2028 allocs/op

formam is the fastest and has the least allocations.

About

Benchmark about formam package (compared with built-in JSON, ajg/form and gorilla/schema)

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.