Re: [go-nuts] Looking for a SQLite statement parser

2024-11-26 Thread 'Jim Idle' via golang-nuts
I revamped the Go code generation not so long ago - performance is sound with reasonably well written grammars, and very good with good grammars. Unfortunately the sample grammars for SQL are poor and will give massive performance problems with all targets (Java, C++, etc). I decided not to spen

[go-nuts] Get a benchmark parallelism inside the benchmark?

2024-11-26 Thread 'Константин Иванов' via golang-nuts
Hello. Is there a way to determine current parallelism inside a BenchmarkXX function? The problem. I need to run some tests using P connections with P parallelism. Using `-cpu=1,2,4,etc` flag I can set the P. But can't get it inside my benchmark funciton. Using `b.SetParallelism(P)` I can onl