4 ms·
Could you tell me exactly what is the issue? sumNullsValhalla and sumOptionalValhalla returns 584,967 us/op and 572,833 us/op respectively sumSimpleValhalla a
by kasperni 4y ago
Could you tell me exactly what is the issue?
sumNullsValhalla and sumOptionalValhalla returns 584,967 us/op and 572,833 us/op respectively
sumSimpleValhalla and sumOptionalLongValhalla returns 327,927 us/op and 326,949 us/op respectively
- deleted 4y ago[deleted]
- rkuska 4y agoMaybe the person missed the difference because how your numbers are formatted: - OptionBenchmark.sumOptional avgt 5 2223,887 us/op vs - OptionBenchmark.sumOptionalValhalla avgt 5 572,833 us/op At least to me after the first read it seemed like comparison of two similair 5kish values.
- karmakaze 4y agoI was also confused by 2223,887 us/op Is there a missing comma or is comma being used here as a decimal point?
- kasperni 4y agoRight, it is the output from JMH (Java Microbenchmark Harness) which includes the number of non-warmup-runs before the actual score. The original article included them as well so thought I would just post the numbers in the same format here.
- stonemetal12 4y agosumOptionalLong 1,201,987 us/op | 326,949 us/op Sum Optional long is about 4x faster. 1.2Million microseconds per operation (pre Valhalla) vs 300K microseconds per operation (post Valhalla).