Commit 8ea7d61
committed
Buffer: add benchmarks for a showdown against the Go standard library
Currently we see
```shell
name old time/op new time/op delta
WriteByte-8 16.8µs ± 4% 16.7µs ± 9% ~ (p=0.400 n=9+10)
BufferFullSmallReads-8 61.1µs ± 6% 46.4µs ± 3% -24.06% (p=0.000 n=10+10)
BufferNotEmptyWriteRead-8 417µs ± 3% 182µs ± 5% -56.28% (p=0.000 n=10+10)
name old speed new speed delta
WriteByte-8 244MB/s ± 3% 245MB/s ± 8% ~ (p=0.400 n=9+10)
name old alloc/op new alloc/op delta
WriteByte-8 0.00B 0.00B ~ (all equal)
BufferFullSmallReads-8 0.00B 0.00B ~ (all equal)
BufferNotEmptyWriteRead-8 0.90B ±122% 0.00B -100.00% (p=0.011 n=10+10)
name old allocs/op new allocs/op delta
WriteByte-8 0.00 0.00 ~ (all equal)
BufferFullSmallReads-8 0.00 0.00 ~ (all equal)
BufferNotEmptyWriteRead-8 0.00 0.00 ~ (all equal)
```1 parent 4ac51de commit 8ea7d61
1 file changed
+51
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
363 | | - | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
365 | 377 | | |
366 | 378 | | |
367 | 379 | | |
| |||
372 | 384 | | |
373 | 385 | | |
374 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
375 | 395 | | |
| 396 | + | |
| 397 | + | |
376 | 398 | | |
377 | | - | |
378 | | - | |
| 399 | + | |
379 | 400 | | |
380 | | - | |
381 | | - | |
| 401 | + | |
| 402 | + | |
382 | 403 | | |
| 404 | + | |
383 | 405 | | |
384 | 406 | | |
385 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
386 | 416 | | |
387 | | - | |
| 417 | + | |
388 | 418 | | |
| 419 | + | |
389 | 420 | | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
394 | 424 | | |
395 | 425 | | |
396 | | - | |
397 | | - | |
| 426 | + | |
| 427 | + | |
398 | 428 | | |
| 429 | + | |
399 | 430 | | |
400 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
0 commit comments