test

package module
v0.0.0-...-d765518 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2024 License: CC-BY-4.0 Imports: 2 Imported by: 0

README

Generate 100k records and group each 10k

Inspired from https://avi.im/blag/2021/fast-sqlite-inserts/#io-time

I tried to implement a record generator that generate 100k and groups each 10k. The test doesn't include database inserting.

It's not fair to compare my result with them, without inconsistent running machine and purpose. Just for fun.

run make

goos: darwin
goarch: amd64
pkg: github.com/ledongthuc/notes/go/generate-100k-fields
cpu: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
BenchmarkChannel-8             1        24091777075 ns/op
BenchmarkNative-8              1        29403914453 ns/op
BenchmarkThreaded-8            1        58827834681 ns/op

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL