1
0
Commit Graph

5 Commits

Author SHA1 Message Date
Markus Wüstenberg
c615204215
Put .PHONY in front of each target in Makefile (#118) 2022-11-15 22:32:01 +01:00
Markus Wüstenberg
44c2744837
Test using Go 1.17 (#91)
Also set the new `-shuffle` flag when testing.
2021-10-06 20:51:31 +02:00
Markus Wüstenberg
d34b28be56
Bump Go version to 1.16 in CI (#72) 2021-05-07 14:35:47 +02:00
Markus Wüstenberg
92ba5904c1
Remove fmt.Sprintf call in attribute Render (#38)
Just concatenating the strings is much faster.

Before:

```
make benchmark
go test -bench=.
goos: darwin
goarch: amd64
pkg: github.com/maragudk/gomponents
BenchmarkAttr/boolean_attributes-8         	 8194791	       139 ns/op
BenchmarkAttr/name-value_attributes-8      	 5143292	       229 ns/op
PASS
ok  	github.com/maragudk/gomponents	2.841s
```

After:

```
make benchmark
go test -bench=.
goos: darwin
goarch: amd64
pkg: github.com/maragudk/gomponents
BenchmarkAttr/boolean_attributes-8         	16755404	        67.0 ns/op
BenchmarkAttr/name-value_attributes-8      	10208625	       116 ns/op
PASS
ok  	github.com/maragudk/gomponents	2.702s
```
2020-10-29 15:40:14 +01:00
Markus Wüstenberg
15d2cc9373
Add Makefile (#4) 2020-09-18 13:57:04 +02:00