Skip to content

huytd/go-reactjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React.js server-side rendering with Go

This experiment is based on otto, a Javascript interpreter for Go.

To run:

go build ./...
./go-reactjs

To benchmark:

go test -bench=.

The results on my MacBook Pro (2.4 GHz i5):

BenchmarkRender1	     100	  17128739 ns/op
BenchmarkRender5	      50	  47324904 ns/op
BenchmarkRender10	      20	  79839996 ns/op
BenchmarkRender20	      10	 164226676 ns/op
BenchmarkRender50	       2	 612836671 ns/op
BenchmarkRender100	     1	1777275883 ns/op
BenchmarkRender200	     1	4190131936 ns/op
BenchmarkRender500	     1	20789000942 ns/op

ok  	github.com/101loops/go-reactjs	39.314s

About

React.js server-side rendering with Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 58.2%
  • JavaScript 41.8%