Packages

c

io.circe.benchmark

NumberParsingBenchmark

class NumberParsingBenchmark extends AnyRef

Compare the performance of JSON number parsing.

The following command will run the benchmarks with reasonable settings:

> sbt "benchmark/jmh:run -i 10 -wi 10 -f 2 -t 1 io.circe.benchmark.NumberParsingBenchmark"

Annotations
@State() @BenchmarkMode() @OutputTimeUnit()
Source
NumberParsingBenchmark.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NumberParsingBenchmark
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new NumberParsingBenchmark()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from NumberParsingBenchmark toany2stringadd[NumberParsingBenchmark] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (NumberParsingBenchmark, B)
    Implicit
    This member is added by an implicit conversion from NumberParsingBenchmark toArrowAssoc[NumberParsingBenchmark] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. val count: Int
  9. def decodeBigDecimal: Either[Error, BigDecimal]
    Annotations
    @Benchmark()
  10. def decodeBigInt: Either[Error, BigInt]
    Annotations
    @Benchmark()
  11. def decodeDouble: Either[Error, Double]
    Annotations
    @Benchmark()
  12. def decodeLong: Either[Error, Long]
    Annotations
    @Benchmark()
  13. def decodeManyBigDecimals: Either[Error, List[BigDecimal]]
    Annotations
    @Benchmark()
  14. def decodeManyBigInts: Either[Error, List[BigInt]]
    Annotations
    @Benchmark()
  15. def decodeManyDoubles: Either[Error, List[Double]]
    Annotations
    @Benchmark()
  16. def decodeManyLongs: Either[Error, List[Long]]
    Annotations
    @Benchmark()
  17. def ensuring(cond: (NumberParsingBenchmark) => Boolean, msg: => Any): NumberParsingBenchmark
    Implicit
    This member is added by an implicit conversion from NumberParsingBenchmark toEnsuring[NumberParsingBenchmark] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (NumberParsingBenchmark) => Boolean): NumberParsingBenchmark
    Implicit
    This member is added by an implicit conversion from NumberParsingBenchmark toEnsuring[NumberParsingBenchmark] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: => Any): NumberParsingBenchmark
    Implicit
    This member is added by an implicit conversion from NumberParsingBenchmark toEnsuring[NumberParsingBenchmark] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): NumberParsingBenchmark
    Implicit
    This member is added by an implicit conversion from NumberParsingBenchmark toEnsuring[NumberParsingBenchmark] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  24. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from NumberParsingBenchmark toStringFormat[NumberParsingBenchmark] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. val inputBigDecimal: String
  28. val inputBigDecimals: String
  29. val inputBigInt: String
  30. val inputBigInts: String
  31. val inputBiggerDecimal: String
  32. val inputBiggerDecimals: String
  33. val inputDouble: String
  34. val inputDoubles: String
  35. val inputLong: String
  36. val inputLongs: String
  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. def parseBigDecimal: Either[Error, Json]
    Annotations
    @Benchmark()
  42. def parseBigInt: Either[Error, Json]
    Annotations
    @Benchmark()
  43. def parseBiggerDecimal: Either[Error, Json]
    Annotations
    @Benchmark()
  44. def parseDouble: Either[Error, Json]
    Annotations
    @Benchmark()
  45. def parseLong: Either[Error, Json]
    Annotations
    @Benchmark()
  46. def parseManyBigDecimals: Either[Error, Json]
    Annotations
    @Benchmark()
  47. def parseManyBigInts: Either[Error, Json]
    Annotations
    @Benchmark()
  48. def parseManyBiggerDecimals: Either[Error, Json]
    Annotations
    @Benchmark()
  49. def parseManyDoubles: Either[Error, Json]
    Annotations
    @Benchmark()
  50. def parseManyLongs: Either[Error, Json]
    Annotations
    @Benchmark()
  51. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  52. def toString(): String
    Definition Classes
    AnyRef → Any
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def [B](y: B): (NumberParsingBenchmark, B)
    Implicit
    This member is added by an implicit conversion from NumberParsingBenchmark toArrowAssoc[NumberParsingBenchmark] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromNumberParsingBenchmark to any2stringadd[NumberParsingBenchmark]

Inherited by implicit conversion StringFormat fromNumberParsingBenchmark to StringFormat[NumberParsingBenchmark]

Inherited by implicit conversion Ensuring fromNumberParsingBenchmark to Ensuring[NumberParsingBenchmark]

Inherited by implicit conversion ArrowAssoc fromNumberParsingBenchmark to ArrowAssoc[NumberParsingBenchmark]

Ungrouped