Better HN
topnewbestaskshowjobs
Log inSign up

uncanny

3 karma · joined Feb 9, 2016 (10y ago) · 6 submissions

Submissions

comment 2y ago · link · parent

I just upgraded to the top M3 Max CPU from the top M2 Max CPU.

I benchmarked several test suites to compare the machines. The test suites for two different Rails applications were around 10% faster on the M3 Max. A test suite for a Go web application that does significant integration testing in parallel (i.e. multiple complete stacks of database, application server, and browser) improved by around 20%. The extra P-cores help. Miscellaneous other tests and benchmarks were around 7-10% faster.

Didn't notice any difference in normal usage.

So not likely worth the upgrade unless your workload can really make use of the extra cores.

comment 4y ago · link · parent

Programming Pearls by Jon Bentley

comment 6y ago · link · parent

If it is too hard you’re doing it wrong.

4.

The Context Overridable Global Pattern in Go(jackchristensen.com ↗)

2 points · by uncanny · 6y ago · discuss

comment 6y ago · link · parent

You can use a type that marshals the Go zero value to database null and vice versa. https://godoc.org/github.com/jackc/pgtype/zeronull provides a UUID type with that behavior.