Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
Last active January 16, 2026 09:03
Show Gist options
  • Select an option

  • Save xuwei-k/3640c997850c3f548ebb6a42ca45aaf6 to your computer and use it in GitHub Desktop.

Select an option

Save xuwei-k/3640c997850c3f548ebb6a42ca45aaf6 to your computer and use it in GitHub Desktop.
FilterHeadOption 0.389
FilterEmpty 0.388
ReverseFind 0.387
OptionPartial 0.386
DropTakeToSlice 0.386
NonUnitStatements 0.385
RedundantIsInstanceOf 0.384
RedundantConversions 0.384
ThreadSleep 0.383
SizeToLength 0.383
ForeachEntry 0.383
GetGetOrElse 0.382
SortedMaxMin 0.381
SeqUpdated 0.381
ReverseTakeReverse 0.381
FilterSize 0.381
GetOrElseNull 0.38
ListAppend 0.378
IterableOps 0.378
EnumValueOf 0.378
TryPartial 0.377
CollectHeadOption 0.377
ArrayEquals 0.376
FinalCaseClass 0.375
SortedMaxMinOption 0.37
EitherProjectionPartial 0.37
MapUnit 0.369
RedundantAsInstanceOf 0.368
ReverseIterator 0.365
SortFilter 0.36
SizeIs 0.357
ImplicitParameter 0.336
LeakingSealed 0.275
MapContains 0.267
Return 0.264
FinalVal 0.264
SeqApply 0.263
ListUnapply 0.261
JavaNetURLConstructors 0.258
CaseClassPrivateApply 0.258
ToString 0.257
PartialFunctionApply 0.257
MutableDataStructures 0.257
AnyVal 0.257
Recursion 0.256
Any 0.256
Nothing 0.255
NoNeedImport 0.255
While 0.254
Var 0.254
DefaultArguments 0.254
Product 0.252
IsInstanceOf 0.252
AutoUnboxing 0.252
Enumeration 0.25
Serializable 0.249
ScalaApp 0.249
ObjectThrowable 0.249
ImplicitConversion 0.249
ArrayToString 0.248
ListUnapplySeq 0.246
Throw 0.244
AsInstanceOf 0.242
Overloading 0.238
TripleQuestionMark 0.204
Option2Iterable 0.188
GlobalExecutionContext 0.162
Equals 0.109
PlatformDefault 0.1
StringPlusAny 0.073
Null 0.07
[info] Benchmark Mode Cnt Score Error Units
[info] Any.lowLevelReflection thrpt 3 0.256 ± 0.082 ops/s
[info] AnyVal.lowLevelReflection thrpt 3 0.257 ± 0.014 ops/s
[info] ArrayEquals.lowLevelReflection thrpt 3 0.376 ± 0.040 ops/s
[info] ArrayToString.lowLevelReflection thrpt 3 0.248 ± 0.086 ops/s
[info] AsInstanceOf.lowLevelReflection thrpt 3 0.242 ± 0.029 ops/s
[info] AutoUnboxing.lowLevelReflection thrpt 3 0.252 ± 0.054 ops/s
[info] CaseClassPrivateApply.lowLevelReflection thrpt 3 0.258 ± 0.025 ops/s
[info] CollectHeadOption.lowLevelReflection thrpt 3 0.377 ± 0.119 ops/s
[info] DefaultArguments.lowLevelReflection thrpt 3 0.254 ± 0.078 ops/s
[info] DropTakeToSlice.lowLevelReflection thrpt 3 0.386 ± 0.108 ops/s
[info] EitherProjectionPartial.lowLevelReflection thrpt 3 0.370 ± 0.181 ops/s
[info] EnumValueOf.lowLevelReflection thrpt 3 0.378 ± 0.195 ops/s
[info] Enumeration.lowLevelReflection thrpt 3 0.250 ± 0.025 ops/s
[info] Equals.lowLevelReflection thrpt 3 0.109 ± 0.021 ops/s
[info] FilterEmpty.lowLevelReflection thrpt 3 0.388 ± 0.108 ops/s
[info] FilterHeadOption.lowLevelReflection thrpt 3 0.389 ± 0.134 ops/s
[info] FilterSize.lowLevelReflection thrpt 3 0.381 ± 0.021 ops/s
[info] FinalCaseClass.lowLevelReflection thrpt 3 0.375 ± 0.201 ops/s
[info] FinalVal.lowLevelReflection thrpt 3 0.264 ± 0.055 ops/s
[info] ForeachEntry.lowLevelReflection thrpt 3 0.383 ± 0.071 ops/s
[info] GetGetOrElse.lowLevelReflection thrpt 3 0.382 ± 0.072 ops/s
[info] GetOrElseNull.lowLevelReflection thrpt 3 0.380 ± 0.063 ops/s
[info] GlobalExecutionContext.lowLevelReflection thrpt 3 0.162 ± 0.041 ops/s
[info] ImplicitConversion.lowLevelReflection thrpt 3 0.249 ± 0.080 ops/s
[info] ImplicitParameter.lowLevelReflection thrpt 3 0.336 ± 0.127 ops/s
[info] IsInstanceOf.lowLevelReflection thrpt 3 0.252 ± 0.047 ops/s
[info] IterableOps.lowLevelReflection thrpt 3 0.378 ± 0.119 ops/s
[info] JavaNetURLConstructors.lowLevelReflection thrpt 3 0.258 ± 0.105 ops/s
[info] LeakingSealed.lowLevelReflection thrpt 3 0.275 ± 0.022 ops/s
[info] ListAppend.lowLevelReflection thrpt 3 0.378 ± 0.116 ops/s
[info] ListUnapply.lowLevelReflection thrpt 3 0.261 ± 0.058 ops/s
[info] ListUnapplySeq.lowLevelReflection thrpt 3 0.246 ± 0.040 ops/s
[info] MapContains.lowLevelReflection thrpt 3 0.267 ± 0.022 ops/s
[info] MapUnit.lowLevelReflection thrpt 3 0.369 ± 0.098 ops/s
[info] MutableDataStructures.lowLevelReflection thrpt 3 0.257 ± 0.044 ops/s
[info] NoNeedImport.lowLevelReflection thrpt 3 0.255 ± 0.076 ops/s
[info] NonUnitStatements.lowLevelReflection thrpt 3 0.385 ± 0.185 ops/s
[info] Nothing.lowLevelReflection thrpt 3 0.255 ± 0.070 ops/s
[info] Null.lowLevelReflection thrpt 3 0.070 ± 0.023 ops/s
[info] ObjectThrowable.lowLevelReflection thrpt 3 0.249 ± 0.030 ops/s
[info] Option2Iterable.lowLevelReflection thrpt 3 0.188 ± 0.024 ops/s
[info] OptionPartial.lowLevelReflection thrpt 3 0.386 ± 0.216 ops/s
[info] Overloading.lowLevelReflection thrpt 3 0.238 ± 0.073 ops/s
[info] PartialFunctionApply.lowLevelReflection thrpt 3 0.257 ± 0.017 ops/s
[info] PlatformDefault.lowLevelReflection thrpt 3 0.100 ± 0.018 ops/s
[info] Product.lowLevelReflection thrpt 3 0.252 ± 0.036 ops/s
[info] Recursion.lowLevelReflection thrpt 3 0.256 ± 0.021 ops/s
[info] RedundantAsInstanceOf.lowLevelReflection thrpt 3 0.368 ± 0.060 ops/s
[info] RedundantConversions.lowLevelReflection thrpt 3 0.384 ± 0.118 ops/s
[info] RedundantIsInstanceOf.lowLevelReflection thrpt 3 0.384 ± 0.069 ops/s
[info] Return.lowLevelReflection thrpt 3 0.264 ± 0.053 ops/s
[info] ReverseFind.lowLevelReflection thrpt 3 0.387 ± 0.045 ops/s
[info] ReverseIterator.lowLevelReflection thrpt 3 0.365 ± 0.102 ops/s
[info] ReverseTakeReverse.lowLevelReflection thrpt 3 0.381 ± 0.182 ops/s
[info] ScalaApp.lowLevelReflection thrpt 3 0.249 ± 0.043 ops/s
[info] SeqApply.lowLevelReflection thrpt 3 0.263 ± 0.094 ops/s
[info] SeqUpdated.lowLevelReflection thrpt 3 0.381 ± 0.144 ops/s
[info] Serializable.lowLevelReflection thrpt 3 0.249 ± 0.048 ops/s
[info] SizeIs.lowLevelReflection thrpt 3 0.357 ± 0.109 ops/s
[info] SizeToLength.lowLevelReflection thrpt 3 0.383 ± 0.020 ops/s
[info] SortFilter.lowLevelReflection thrpt 3 0.360 ± 0.081 ops/s
[info] SortedMaxMin.lowLevelReflection thrpt 3 0.381 ± 0.136 ops/s
[info] SortedMaxMinOption.lowLevelReflection thrpt 3 0.370 ± 0.097 ops/s
[info] StringPlusAny.lowLevelReflection thrpt 3 0.073 ± 0.012 ops/s
[info] ThreadSleep.lowLevelReflection thrpt 3 0.383 ± 0.060 ops/s
[info] Throw.lowLevelReflection thrpt 3 0.244 ± 0.071 ops/s
[info] ToString.lowLevelReflection thrpt 3 0.257 ± 0.020 ops/s
[info] TripleQuestionMark.lowLevelReflection thrpt 3 0.204 ± 0.008 ops/s
[info] TryPartial.lowLevelReflection thrpt 3 0.377 ± 0.094 ops/s
[info] Var.lowLevelReflection thrpt 3 0.254 ± 0.076 ops/s
[info] While.lowLevelReflection thrpt 3 0.254 ± 0.029 ops/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment