# Python big integer vs. Julia big integer arithmetic

**URL:** <https://discourse.julialang.org/t/python-big-integer-vs-julia-big-integer-arithmetic/115777>\
**Category:** Performance\
**Tags:** python\
**Created:** [June 17, 2024, 9:39pm UTC](https://discourse.julialang.org/t/python-big-integer-vs-julia-big-integer-arithmetic/115777 "2024-06-17T21:39:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![sgaure](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sgaure/32/14779_2.png) [@sgaure](https://discourse.julialang.org/u/sgaure)\
**Post date:** [June 17, 2024, 10:02pm UTC](https://discourse.julialang.org/t/python-big-integer-vs-julia-big-integer-arithmetic/115777/6 "2024-06-17T22:02:33Z")

</div>

You’re not measuring the integer arithmetic. Most of the time is startup of julia.

To measure the integer arithmetic, use e.g. the package `BenchmarkTools`.

```julia
julia> using BenchmarkTools
julia> @btime powermod(3, 100000000000, 102)

```

I get 184 nanoseconds. How to do such a timing in python, I don’t know.

---

_[View the full topic](https://discourse.julialang.org/t/python-big-integer-vs-julia-big-integer-arithmetic/115777)._
