Closed danakj closed 1 year ago
Linux Intel results:
| ns/op | op/s | err% | total | benchmark
|--------------------:|--------------------:|--------:|----------:|:----------
[ RUN ] BenchVecMap.CopyAndMultiplyInts_1000
| 813.17 | 1,229,760.77 | 1.2% | 1.95 | `std::vector::push_back, n = 1000`
| 720.52 | 1,387,891.30 | 0.7% | 1.72 | `std::vector collect, n = 1000`
| 1,410.21 | 709,113.27 | 0.8% | 3.39 | `sus::Vec::push, n = 1000`
| 191.53 | 5,221,035.75 | 1.7% | 0.46 | `sus::Vec collect, n = 1000`
[ OK ] BenchVecMap.CopyAndMultiplyInts_1000 (7516 ms)
[ RUN ] BenchVecMap.CopyAndMultiplyInts_100_000
| 79,179.06 | 12,629.60 | 0.3% | 51.14 | `std::vector::push_back, n = 100000`
| 71,074.21 | 14,069.80 | 0.4% | 46.03 | `std::vector collect, n = 100000`
| 136,507.21 | 7,325.62 | 0.1% | 88.39 | `sus::Vec::push, n = 100000`
| 34,552.37 | 28,941.58 | 0.4% | 22.43 | `sus::Vec collect, n = 100000`
[ OK ] BenchVecMap.CopyAndMultiplyInts_100_000 (207986 ms)
[ RUN ] BenchVecMap.CopyAndMultiplyInts_10_000_000
| 18,403,985.25 | 54.34 | 0.7% | 6.63 | `std::vector::push_back, n = 10000000`
| 17,599,240.32 | 56.82 | 1.2% | 6.33 | `std::vector collect, n = 10000000`
| 24,142,655.09 | 41.42 | 0.4% | 8.69 | `sus::Vec::push, n = 10000000`
| 15,998,039.23 | 62.51 | 1.1% | 5.75 | `sus::Vec collect, n = 10000000`
[ OK ] BenchVecMap.CopyAndMultiplyInts_10_000_000 (27422 ms)
[ RUN ] BenchVecMap.TransformToIndices_1000
| 657.54 | 1,520,823.11 | 0.7% | 1.57 | `std::vector::push_back, n = 1000`
| 652.53 | 1,532,502.56 | 1.7% | 1.56 | `std::vector collect, n = 1000`
| 1,212.27 | 824,901.72 | 0.4% | 2.89 | `sus::Vec::push, n = 1000`
| 353.19 | 2,831,338.80 | 1.2% | 0.84 | `sus::Vec collect, n = 1000`
[ OK ] BenchVecMap.TransformToIndices_1000 (6856 ms)
[ RUN ] BenchVecMap.TransformToIndices_100_000
| 67,182.40 | 14,884.85 | 0.4% | 43.77 | `std::vector::push_back, n = 100000`
| 67,273.65 | 14,864.66 | 0.4% | 43.53 | `std::vector collect, n = 100000`
| 170,414.69 | 5,868.04 | 0.3% | 110.39 | `sus::Vec::push, n = 100000`
| 57,919.65 | 17,265.30 | 0.7% | 37.50 | `sus::Vec collect, n = 100000`
[ OK ] BenchVecMap.TransformToIndices_100_000 (235189 ms)
[ RUN ] BenchVecMap.TransformToIndices_10_000_000
| 28,772,225.53 | 34.76 | 0.9% | 10.35 | `std::vector::push_back, n = 10000000`
| 28,611,047.73 | 34.95 | 0.9% | 10.28 | `std::vector collect, n = 10000000`
| 37,878,064.61 | 26.40 | 1.2% | 13.64 | `sus::Vec::push, n = 10000000`
| 28,274,931.94 | 35.37 | 0.4% | 10.17 | `sus::Vec collect, n = 10000000`
[ OK ] BenchVecMap.TransformToIndices_10_000_000 (44469 ms)
[ RUN ] BenchVecMap.MoreExpensiveIntTransformation_1000
| 20,342.91 | 49,157.17 | 3.7% | 0.01 | `std::vector::push_back, n = 1000`
| 21,017.31 | 47,579.83 | 6.0% | 0.01 | :wavy_dash: `std::vector collect, n = 1000` (Unstable with ~51.4 iters. Increase `minEpochIterations` to e.g. 514)
| 21,336.73 | 46,867.53 | 3.2% | 0.01 | `sus::Vec::push, n = 1000`
| 20,000.06 | 49,999.85 | 1.2% | 0.01 | `sus::Vec collect, n = 1000`
[ OK ] BenchVecMap.MoreExpensiveIntTransformation_1000 (51 ms)
[ RUN ] BenchVecMap.MoreExpensiveIntTransformation_100_000
| 2,071,106.00 | 482.83 | 2.7% | 0.02 | `std::vector::push_back, n = 100000`
| 2,012,205.00 | 496.97 | 2.4% | 0.02 | `std::vector collect, n = 100000`
| 2,142,206.00 | 466.81 | 2.3% | 0.02 | `sus::Vec::push, n = 100000`
| 2,047,406.00 | 488.42 | 4.9% | 0.02 | `sus::Vec collect, n = 100000`
[ OK ] BenchVecMap.MoreExpensiveIntTransformation_100_000 (92 ms)
[ RUN ] BenchVecMap.MoreExpensiveIntTransformation_10_000_000
| 216,995,117.00 | 4.61 | 0.3% | 2.38 | `std::vector::push_back, n = 10000000`
| 218,283,387.00 | 4.58 | 1.5% | 2.42 | `std::vector collect, n = 10000000`
| 234,275,067.00 | 4.27 | 0.5% | 2.58 | `sus::Vec::push, n = 10000000`
| 213,848,110.00 | 4.68 | 0.6% | 2.37 | `sus::Vec collect, n = 10000000`
[ OK ] BenchVecMap.MoreExpensiveIntTransformation_10_000_000 (9780 ms)
[----------] 9 tests from BenchVecMap (539365 ms total)```
Apple M1 results