gh-90699: Remove usage of _Py_IDENTIFIER from math module by corona10 · Pull Request #93739 · python/cpython

Benchmark hidden because not significant (3): bench_ceil, bench_floor, bench_trunc

import pyperf
import time
import math

class CustomFloat(float):
    pass


val = CustomFloat(3.14159)

def bench_ceil():
    _ = math.ceil(val)

def bench_floor():
    _ = math.floor(val)

def bench_trunc():
    _ = math.trunc(val)

runner = pyperf.Runner()
runner.bench_func('bench_ceil', bench_ceil)
runner.bench_func('bench_floor', bench_floor)
runner.bench_func('bench_trunc', bench_trunc)

Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 7.23 Run tests sequentially
0:00:00 load avg: 7.23 [1/1] test_math
beginning 6 repetitions
123456
......

== Tests result: SUCCESS ==

1 test OK.

Total duration: 14.6 sec
Tests result: SUCCESS