You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think you should use runWithTimingDisabled to eliminate client initialization time. In most of our projects, we should be able to ignore the initialization time.
#3
I think you should use runWithTimingDisabled to eliminate client initialization time. In most of our projects, we should be able to ignore the initialization time.
@test
fun benchmarkCommon() {
benchmarkRule.measureRepeated {
lateinit var gson: Gson
lateinit var json: String
lateinit var clazz: Class<*>
runWithTimingDisabled {
gson = GsonBuilder().create()
json = readJson()
clazz = Foo::class.java
}
gson.fromJson(json, clazz)
}
}
The text was updated successfully, but these errors were encountered:
I think you should use runWithTimingDisabled to eliminate client initialization time. In most of our projects, we should be able to ignore the initialization time.
@test
fun benchmarkCommon() {
benchmarkRule.measureRepeated {
lateinit var gson: Gson
lateinit var json: String
lateinit var clazz: Class<*>
runWithTimingDisabled {
gson = GsonBuilder().create()
json = readJson()
clazz = Foo::class.java
}
gson.fromJson(json, clazz)
}
}
The text was updated successfully, but these errors were encountered: