Skip to content

Avoid hashing and redundant assignments on execution-cache hits - #116

Draft
15r10nk wants to merge 1 commit into
alexmojaki:masterfrom
15r10nk:optimize-execution-cache-hits
Draft

15r10nk wants to merge 1 commit into
alexmojaki:masterfrom
15r10nk:optimize-execution-cache-hits

Conversation

@15r10nk

@15r10nk 15r10nk commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Source.executing() currently hashes the code object and rewrites a class-local cache attribute on every cache hit. Use (id(code), instruction_offset) as the lookup key and initialize class-local cache attributes only when absent. Retain the code object in the cached value to prevent its identity from being reused while the entry exists.

Local Python 3.14 ASV measurements with the suite from #114 show cached large-function node lookups improving from 604 ms to 208 ms per 1,000 lookups (2.9×). Simple-call node lookups improve from 559 µs to 490 µs per 1,000 lookups (12% less time).

@15r10nk
15r10nk force-pushed the optimize-execution-cache-hits branch from 3fc01b3 to 77d232c Compare November 26, 2026 05:58
Key execution results by code identity and avoid rewriting existing class-local cache attributes. Retain regression coverage for distinct equal code objects and their lifetime.
@15r10nk
15r10nk force-pushed the optimize-execution-cache-hits branch from 77d232c to fdfa61b Compare November 26, 2026 16:53
@github-actions

Copy link
Copy Markdown

Benchmark Results

Tip

26 benchmark(s) improved

Count
🟢 Improved 26
⚪ Unchanged 95

Improvements

Benchmark Before After Ratio
🟢 executing.Cached.time_1000_lookups('attribute-access', 'code_qualname') 1.47±0.01ms 1.25±0.01ms 0.85x
🟢 executing.Cached.time_1000_lookups('attribute-access', 'node') 1.01±0ms 880±9μs 0.87x
🟢 executing.Cached.time_1000_lookups('attribute-access', 'node_and_statements') 1.03±0.01ms 899±6μs 0.87x
🟢 executing.Cached.time_1000_lookups('attribute-access', 'statements') 1.02±0ms 860±4μs 0.85x
🟢 executing.Cached.time_1000_lookups('bin-op', 'code_qualname') 1.44±0.01ms 1.21±0.01ms 0.84x
🟢 executing.Cached.time_1000_lookups('bin-op', 'node') 1.00±0.01ms 860±4μs 0.86x
🟢 executing.Cached.time_1000_lookups('bin-op', 'node_and_statements') 1.02±0.01ms 906±20μs 0.88x
🟢 executing.Cached.time_1000_lookups('bin-op', 'statements') 1.01±0ms 869±7μs 0.86x
🟢 executing.Cached.time_1000_lookups('call', 'code_qualname') 1.45±0.01ms 1.24±0.04ms 0.86x
🟢 executing.Cached.time_1000_lookups('call', 'node') 1.02±0.02ms 868±4μs 0.85x
🟢 executing.Cached.time_1000_lookups('call', 'node_and_statements') 1.04±0.02ms 895±10μs 0.86x
🟢 executing.Cached.time_1000_lookups('call', 'statements') 1000±7μs 869±9μs 0.87x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'code_qualname') 3.26±0.01ms 1.27±0.05ms 0.39x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'node') 2.78±0.01ms 871±10μs 0.31x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'node_and_statements') 2.80±0.01ms 906±6μs 0.32x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'statements') 2.77±0.02ms 873±5μs 0.32x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'text') 8.08±0.03ms 5.99±0.09ms 0.74x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'text_range') 7.86±0.05ms 5.86±0.03ms 0.75x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'code_qualname') 5.98±0ms 1.21±0.02ms 0.2x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'node') 5.52±0.01ms 865±6μs 0.16x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'node_and_statements') 5.52±0.01ms 884±3μs 0.16x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'statements') 5.52±0.01ms 859±3μs 0.16x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'code_qualname') 1.47±0.01ms 1.24±0.03ms 0.85x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'node') 1.02±0.01ms 873±10μs 0.86x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'node_and_statements') 1.04±0.01ms 884±7μs 0.85x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'statements') 1.01±0.01ms 879±5μs 0.87x
95 unchanged benchmark(s)
Benchmark Before After Ratio
executing.Cached.time_1000_lookups('attribute-access', 'text') 6.19±0.04ms 5.98±0.08ms ~0.97x
executing.Cached.time_1000_lookups('attribute-access', 'text_range') 6.01±0.01ms 5.81±0.02ms ~0.97x
executing.Cached.time_1000_lookups('bin-op', 'text') 6.35±0.01ms 5.99±0.04ms ~0.94x
executing.Cached.time_1000_lookups('bin-op', 'text_range') 6.15±0.04ms 5.83±0.03ms ~0.95x
executing.Cached.time_1000_lookups('call', 'text') 6.09±0.02ms 5.85±0.04ms ~0.96x
executing.Cached.time_1000_lookups('call', 'text_range') 5.97±0.02ms 5.83±0.07ms ~0.98x
executing.Cached.time_1000_lookups('call-multiline', 'text') 615±0.4ms 608±8ms ~0.99x
executing.Cached.time_1000_lookups('call-multiline', 'text_range') 621±7ms 608±10ms ~0.98x
executing.Cached.time_1000_lookups('function-in-large-file', 'text') 6.27±0.01ms 5.96±0.07ms ~0.95x
executing.Cached.time_1000_lookups('function-in-large-file', 'text_range') 6.12±0.01ms 5.91±0.1ms ~0.97x
executing.ColdLookup.time_lookup('attribute-access', 'code_qualname') 267±10μs 271±10μs ~1.01x
executing.ColdLookup.time_lookup('attribute-access', 'node') 266±10μs 266±10μs ~1x
executing.ColdLookup.time_lookup('attribute-access', 'node_and_statements') 268±10μs 269±10μs ~1x
executing.ColdLookup.time_lookup('attribute-access', 'statements') 265±10μs 270±10μs ~1.02x
executing.ColdLookup.time_lookup('attribute-access', 'text') 305±10μs 311±10μs ~1.02x
executing.ColdLookup.time_lookup('attribute-access', 'text_range') 309±10μs 305±10μs ~0.99x
executing.ColdLookup.time_lookup('bin-op', 'code_qualname') 261±10μs 262±10μs ~1x
executing.ColdLookup.time_lookup('bin-op', 'node') 259±10μs 263±20μs ~1.02x
executing.ColdLookup.time_lookup('bin-op', 'node_and_statements') 261±10μs 260±10μs ~1x
executing.ColdLookup.time_lookup('bin-op', 'statements') 256±10μs 261±10μs ~1.02x
executing.ColdLookup.time_lookup('bin-op', 'text') 305±10μs 301±20μs ~0.99x
executing.ColdLookup.time_lookup('bin-op', 'text_range') 305±10μs 302±20μs ~0.99x
executing.ColdLookup.time_lookup('call', 'code_qualname') 246±10μs 243±10μs ~0.99x
executing.ColdLookup.time_lookup('call', 'node') 246±10μs 246±10μs ~1x
executing.ColdLookup.time_lookup('call', 'node_and_statements') 246±10μs 247±10μs ~1x
executing.ColdLookup.time_lookup('call', 'statements') 245±10μs 245±10μs ~1x
executing.ColdLookup.time_lookup('call', 'text') 292±20μs 282±10μs ~0.96x
executing.ColdLookup.time_lookup('call', 'text_range') 289±20μs 289±10μs ~1x
executing.ColdLookup.time_lookup('call-large-function', 'code_qualname') 1.71±0.01s 1.76±0s ~1.03x
executing.ColdLookup.time_lookup('call-large-function', 'node') 1.71±0s 1.75±0.01s ~1.03x
executing.ColdLookup.time_lookup('call-large-function', 'node_and_statements') 1.70±0s 1.75±0.01s ~1.03x
executing.ColdLookup.time_lookup('call-large-function', 'statements') 1.70±0s 1.74±0.01s ~1.02x
executing.ColdLookup.time_lookup('call-large-function', 'text') 1.83±0.01s 1.86±0.02s ~1.02x
executing.ColdLookup.time_lookup('call-large-function', 'text_range') 1.82±0.01s 1.86±0.01s ~1.02x
executing.ColdLookup.time_lookup('call-multiline', 'code_qualname') 21.2±0.09ms 21.5±0.2ms ~1.01x
executing.ColdLookup.time_lookup('call-multiline', 'node') 21.4±0.07ms 21.5±0.2ms ~1.01x
executing.ColdLookup.time_lookup('call-multiline', 'node_and_statements') 21.4±0.09ms 21.6±0.1ms ~1.01x
executing.ColdLookup.time_lookup('call-multiline', 'statements') 21.4±0.07ms 21.5±0.2ms ~1x
executing.ColdLookup.time_lookup('call-multiline', 'text') 25.9±0.1ms 26.0±0.2ms ~1x
executing.ColdLookup.time_lookup('call-multiline', 'text_range') 25.7±0.07ms 26.1±0.3ms ~1.01x
executing.ColdLookup.time_lookup('function-in-large-file', 'code_qualname') 2.58±0s 2.64±0s ~1.02x
executing.ColdLookup.time_lookup('function-in-large-file', 'node') 2.58±0s 2.66±0.02s ~1.03x
executing.ColdLookup.time_lookup('function-in-large-file', 'node_and_statements') 2.59±0.01s 2.64±0.03s ~1.02x
executing.ColdLookup.time_lookup('function-in-large-file', 'statements') 2.58±0.01s 2.66±0.02s ~1.03x
executing.ColdLookup.time_lookup('function-in-large-file', 'text') 2.78±0.01s 2.84±0.01s ~1.02x
executing.ColdLookup.time_lookup('function-in-large-file', 'text_range') 2.79±0.01s 2.82±0.01s ~1.01x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'code_qualname') 145±9μs 145±8μs ~1x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node') 146±8μs 146±7μs ~1x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node_and_statements') 146±6μs 147±6μs ~1.01x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'statements') 145±6μs 146±5μs ~1x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text') 187±9μs 190±10μs ~1.02x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text_range') 188±9μs 187±10μs ~1x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'code_qualname') 142±6μs 140±7μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'node') 141±6μs 138±4μs ~0.98x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'node_and_statements') 141±7μs 140±9μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'statements') 141±6μs 140±9μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'text') 183±8μs 183±8μs ~1x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'text_range') 180±9μs 182±9μs ~1.01x
executing.ExecutionCacheMiss.time_lookup('call', 'code_qualname') 132±7μs 133±9μs ~1x
executing.ExecutionCacheMiss.time_lookup('call', 'node') 132±5μs 130±5μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('call', 'node_and_statements') 132±6μs 133±5μs ~1x
executing.ExecutionCacheMiss.time_lookup('call', 'statements') 132±7μs 132±5μs ~1x
executing.ExecutionCacheMiss.time_lookup('call', 'text') 174±9μs 177±9μs ~1.02x
executing.ExecutionCacheMiss.time_lookup('call', 'text_range') 173±9μs 175±10μs ~1.01x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'code_qualname') 1.19±0s 1.21±0.01s ~1.01x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node') 1.18±0.01s 1.22±0s ~1.03x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node_and_statements') 1.17±0.01s 1.21±0.01s ~1.04x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'statements') 1.18±0s 1.21±0.01s ~1.03x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text') 1.30±0s 1.32±0.01s ~1.01x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text_range') 1.31±0.01s 1.32±0.01s ~1.01x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'code_qualname') 7.95±0.03ms 7.93±0.03ms ~1x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node') 7.94±0.02ms 7.97±0.04ms ~1x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node_and_statements') 7.93±0.02ms 8.01±0.07ms ~1.01x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'statements') 7.92±0.02ms 7.96±0.02ms ~1.01x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text') 12.4±0.06ms 12.4±0.03ms ~1x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text_range') 12.3±0.03ms 12.4±0.05ms ~1.01x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'code_qualname') 1.82±0.02s 1.75±0.01s ~0.96x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node') 1.80±0.02s 1.78±0.01s ~0.99x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node_and_statements') 1.79±0.02s 1.76±0s ~0.98x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'statements') 1.80±0.02s 1.76±0.01s ~0.98x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text') 1.98±0.01s 2.01±0.01s ~1.01x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text_range') 1.98±0.01s 1.99±0.01s ~1.01x
memory.FunctionInLargeFileMemory.track_retained_after_lookup 70.6M 70.6M ~1x
memory.SourceAllocationMemory.track_peak('lines') 5.18M 5.18M ~1x
memory.SourceAllocationMemory.track_peak('parsed') 5.18M 5.18M ~1x
memory.SourceAllocationMemory.track_peak('qualnames') 5.18M 5.18M ~1x
memory.SourceAllocationMemory.track_peak('statements') 5.18M 5.18M ~1x
memory.SourceAllocationMemory.track_retained('lines') 2.66M 2.66M ~1x
memory.SourceAllocationMemory.track_retained('parsed') 2.66M 2.66M ~1x
memory.SourceAllocationMemory.track_retained('qualnames') 2.66M 2.66M ~1x
memory.SourceAllocationMemory.track_retained('statements') 2.66M 2.66M ~1x
memory.SourcePeakMemory.peakmem_first_use('lines') 38.9M 38.9M ~1x
memory.SourcePeakMemory.peakmem_first_use('parsed') 38.9M 38.9M ~1x
memory.SourcePeakMemory.peakmem_first_use('qualnames') 38.9M 38.9M ~1x
memory.SourcePeakMemory.peakmem_first_use('statements') 38.9M 38.9M ~1x
Details
  • Base: 43955749
  • Head: fdfa61ba
  • Runner: ubuntu-24.04 / Python 3.10
Raw asv-spyglass output
All benchmarks:

| Change   | Before      | After       |   Ratio | Benchmark (Parameter)                                                                     |
|----------|-------------|-------------|---------|-------------------------------------------------------------------------------------------|
| -        | 1.47±0.01ms | 1.25±0.01ms |    0.85 | executing.Cached.time_1000_lookups('attribute-access', 'code_qualname')                   |
| -        | 1.01±0ms    | 880±9μs     |    0.87 | executing.Cached.time_1000_lookups('attribute-access', 'node')                            |
| -        | 1.03±0.01ms | 899±6μs     |    0.87 | executing.Cached.time_1000_lookups('attribute-access', 'node_and_statements')             |
| -        | 1.02±0ms    | 860±4μs     |    0.85 | executing.Cached.time_1000_lookups('attribute-access', 'statements')                      |
|          | 6.19±0.04ms | 5.98±0.08ms |    0.97 | executing.Cached.time_1000_lookups('attribute-access', 'text')                            |
|          | 6.01±0.01ms | 5.81±0.02ms |    0.97 | executing.Cached.time_1000_lookups('attribute-access', 'text_range')                      |
| -        | 1.44±0.01ms | 1.21±0.01ms |    0.84 | executing.Cached.time_1000_lookups('bin-op', 'code_qualname')                             |
| -        | 1.00±0.01ms | 860±4μs     |    0.86 | executing.Cached.time_1000_lookups('bin-op', 'node')                                      |
| -        | 1.02±0.01ms | 906±20μs    |    0.88 | executing.Cached.time_1000_lookups('bin-op', 'node_and_statements')                       |
| -        | 1.01±0ms    | 869±7μs     |    0.86 | executing.Cached.time_1000_lookups('bin-op', 'statements')                                |
|          | 6.35±0.01ms | 5.99±0.04ms |    0.94 | executing.Cached.time_1000_lookups('bin-op', 'text')                                      |
|          | 6.15±0.04ms | 5.83±0.03ms |    0.95 | executing.Cached.time_1000_lookups('bin-op', 'text_range')                                |
| -        | 1.45±0.01ms | 1.24±0.04ms |    0.86 | executing.Cached.time_1000_lookups('call', 'code_qualname')                               |
| -        | 1.02±0.02ms | 868±4μs     |    0.85 | executing.Cached.time_1000_lookups('call', 'node')                                        |
| -        | 1.04±0.02ms | 895±10μs    |    0.86 | executing.Cached.time_1000_lookups('call', 'node_and_statements')                         |
| -        | 1000±7μs    | 869±9μs     |    0.87 | executing.Cached.time_1000_lookups('call', 'statements')                                  |
|          | 6.09±0.02ms | 5.85±0.04ms |    0.96 | executing.Cached.time_1000_lookups('call', 'text')                                        |
|          | 5.97±0.02ms | 5.83±0.07ms |    0.98 | executing.Cached.time_1000_lookups('call', 'text_range')                                  |
| -        | 3.26±0.01ms | 1.27±0.05ms |    0.39 | executing.Cached.time_1000_lookups('call-large-function', 'code_qualname')                |
| -        | 2.78±0.01ms | 871±10μs    |    0.31 | executing.Cached.time_1000_lookups('call-large-function', 'node')                         |
| -        | 2.80±0.01ms | 906±6μs     |    0.32 | executing.Cached.time_1000_lookups('call-large-function', 'node_and_statements')          |
| -        | 2.77±0.02ms | 873±5μs     |    0.32 | executing.Cached.time_1000_lookups('call-large-function', 'statements')                   |
| -        | 8.08±0.03ms | 5.99±0.09ms |    0.74 | executing.Cached.time_1000_lookups('call-large-function', 'text')                         |
| -        | 7.86±0.05ms | 5.86±0.03ms |    0.75 | executing.Cached.time_1000_lookups('call-large-function', 'text_range')                   |
| -        | 5.98±0ms    | 1.21±0.02ms |    0.2  | executing.Cached.time_1000_lookups('call-multiline', 'code_qualname')                     |
| -        | 5.52±0.01ms | 865±6μs     |    0.16 | executing.Cached.time_1000_lookups('call-multiline', 'node')                              |
| -        | 5.52±0.01ms | 884±3μs     |    0.16 | executing.Cached.time_1000_lookups('call-multiline', 'node_and_statements')               |
| -        | 5.52±0.01ms | 859±3μs     |    0.16 | executing.Cached.time_1000_lookups('call-multiline', 'statements')                        |
|          | 615±0.4ms   | 608±8ms     |    0.99 | executing.Cached.time_1000_lookups('call-multiline', 'text')                              |
|          | 621±7ms     | 608±10ms    |    0.98 | executing.Cached.time_1000_lookups('call-multiline', 'text_range')                        |
| -        | 1.47±0.01ms | 1.24±0.03ms |    0.85 | executing.Cached.time_1000_lookups('function-in-large-file', 'code_qualname')             |
| -        | 1.02±0.01ms | 873±10μs    |    0.86 | executing.Cached.time_1000_lookups('function-in-large-file', 'node')                      |
| -        | 1.04±0.01ms | 884±7μs     |    0.85 | executing.Cached.time_1000_lookups('function-in-large-file', 'node_and_statements')       |
| -        | 1.01±0.01ms | 879±5μs     |    0.87 | executing.Cached.time_1000_lookups('function-in-large-file', 'statements')                |
|          | 6.27±0.01ms | 5.96±0.07ms |    0.95 | executing.Cached.time_1000_lookups('function-in-large-file', 'text')                      |
|          | 6.12±0.01ms | 5.91±0.1ms  |    0.97 | executing.Cached.time_1000_lookups('function-in-large-file', 'text_range')                |
|          | 267±10μs    | 271±10μs    |    1.01 | executing.ColdLookup.time_lookup('attribute-access', 'code_qualname')                     |
|          | 266±10μs    | 266±10μs    |    1    | executing.ColdLookup.time_lookup('attribute-access', 'node')                              |
|          | 268±10μs    | 269±10μs    |    1    | executing.ColdLookup.time_lookup('attribute-access', 'node_and_statements')               |
|          | 265±10μs    | 270±10μs    |    1.02 | executing.ColdLookup.time_lookup('attribute-access', 'statements')                        |
|          | 305±10μs    | 311±10μs    |    1.02 | executing.ColdLookup.time_lookup('attribute-access', 'text')                              |
|          | 309±10μs    | 305±10μs    |    0.99 | executing.ColdLookup.time_lookup('attribute-access', 'text_range')                        |
|          | 261±10μs    | 262±10μs    |    1    | executing.ColdLookup.time_lookup('bin-op', 'code_qualname')                               |
|          | 259±10μs    | 263±20μs    |    1.02 | executing.ColdLookup.time_lookup('bin-op', 'node')                                        |
|          | 261±10μs    | 260±10μs    |    1    | executing.ColdLookup.time_lookup('bin-op', 'node_and_statements')                         |
|          | 256±10μs    | 261±10μs    |    1.02 | executing.ColdLookup.time_lookup('bin-op', 'statements')                                  |
|          | 305±10μs    | 301±20μs    |    0.99 | executing.ColdLookup.time_lookup('bin-op', 'text')                                        |
|          | 305±10μs    | 302±20μs    |    0.99 | executing.ColdLookup.time_lookup('bin-op', 'text_range')                                  |
|          | 246±10μs    | 243±10μs    |    0.99 | executing.ColdLookup.time_lookup('call', 'code_qualname')                                 |
|          | 246±10μs    | 246±10μs    |    1    | executing.ColdLookup.time_lookup('call', 'node')                                          |
|          | 246±10μs    | 247±10μs    |    1    | executing.ColdLookup.time_lookup('call', 'node_and_statements')                           |
|          | 245±10μs    | 245±10μs    |    1    | executing.ColdLookup.time_lookup('call', 'statements')                                    |
|          | 292±20μs    | 282±10μs    |    0.96 | executing.ColdLookup.time_lookup('call', 'text')                                          |
|          | 289±20μs    | 289±10μs    |    1    | executing.ColdLookup.time_lookup('call', 'text_range')                                    |
|          | 1.71±0.01s  | 1.76±0s     |    1.03 | executing.ColdLookup.time_lookup('call-large-function', 'code_qualname')                  |
|          | 1.71±0s     | 1.75±0.01s  |    1.03 | executing.ColdLookup.time_lookup('call-large-function', 'node')                           |
|          | 1.70±0s     | 1.75±0.01s  |    1.03 | executing.ColdLookup.time_lookup('call-large-function', 'node_and_statements')            |
|          | 1.70±0s     | 1.74±0.01s  |    1.02 | executing.ColdLookup.time_lookup('call-large-function', 'statements')                     |
|          | 1.83±0.01s  | 1.86±0.02s  |    1.02 | executing.ColdLookup.time_lookup('call-large-function', 'text')                           |
|          | 1.82±0.01s  | 1.86±0.01s  |    1.02 | executing.ColdLookup.time_lookup('call-large-function', 'text_range')                     |
|          | 21.2±0.09ms | 21.5±0.2ms  |    1.01 | executing.ColdLookup.time_lookup('call-multiline', 'code_qualname')                       |
|          | 21.4±0.07ms | 21.5±0.2ms  |    1.01 | executing.ColdLookup.time_lookup('call-multiline', 'node')                                |
|          | 21.4±0.09ms | 21.6±0.1ms  |    1.01 | executing.ColdLookup.time_lookup('call-multiline', 'node_and_statements')                 |
|          | 21.4±0.07ms | 21.5±0.2ms  |    1    | executing.ColdLookup.time_lookup('call-multiline', 'statements')                          |
|          | 25.9±0.1ms  | 26.0±0.2ms  |    1    | executing.ColdLookup.time_lookup('call-multiline', 'text')                                |
|          | 25.7±0.07ms | 26.1±0.3ms  |    1.01 | executing.ColdLookup.time_lookup('call-multiline', 'text_range')                          |
|          | 2.58±0s     | 2.64±0s     |    1.02 | executing.ColdLookup.time_lookup('function-in-large-file', 'code_qualname')               |
|          | 2.58±0s     | 2.66±0.02s  |    1.03 | executing.ColdLookup.time_lookup('function-in-large-file', 'node')                        |
|          | 2.59±0.01s  | 2.64±0.03s  |    1.02 | executing.ColdLookup.time_lookup('function-in-large-file', 'node_and_statements')         |
|          | 2.58±0.01s  | 2.66±0.02s  |    1.03 | executing.ColdLookup.time_lookup('function-in-large-file', 'statements')                  |
|          | 2.78±0.01s  | 2.84±0.01s  |    1.02 | executing.ColdLookup.time_lookup('function-in-large-file', 'text')                        |
|          | 2.79±0.01s  | 2.82±0.01s  |    1.01 | executing.ColdLookup.time_lookup('function-in-large-file', 'text_range')                  |
|          | 145±9μs     | 145±8μs     |    1    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'code_qualname')             |
|          | 146±8μs     | 146±7μs     |    1    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node')                      |
|          | 146±6μs     | 147±6μs     |    1.01 | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node_and_statements')       |
|          | 145±6μs     | 146±5μs     |    1    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'statements')                |
|          | 187±9μs     | 190±10μs    |    1.02 | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text')                      |
|          | 188±9μs     | 187±10μs    |    1    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text_range')                |
|          | 142±6μs     | 140±7μs     |    0.99 | executing.ExecutionCacheMiss.time_lookup('bin-op', 'code_qualname')                       |
|          | 141±6μs     | 138±4μs     |    0.98 | executing.ExecutionCacheMiss.time_lookup('bin-op', 'node')                                |
|          | 141±7μs     | 140±9μs     |    0.99 | executing.ExecutionCacheMiss.time_lookup('bin-op', 'node_and_statements')                 |
|          | 141±6μs     | 140±9μs     |    0.99 | executing.ExecutionCacheMiss.time_lookup('bin-op', 'statements')                          |
|          | 183±8μs     | 183±8μs     |    1    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'text')                                |
|          | 180±9μs     | 182±9μs     |    1.01 | executing.ExecutionCacheMiss.time_lookup('bin-op', 'text_range')                          |
|          | 132±7μs     | 133±9μs     |    1    | executing.ExecutionCacheMiss.time_lookup('call', 'code_qualname')                         |
|          | 132±5μs     | 130±5μs     |    0.99 | executing.ExecutionCacheMiss.time_lookup('call', 'node')                                  |
|          | 132±6μs     | 133±5μs     |    1    | executing.ExecutionCacheMiss.time_lookup('call', 'node_and_statements')                   |
|          | 132±7μs     | 132±5μs     |    1    | executing.ExecutionCacheMiss.time_lookup('call', 'statements')                            |
|          | 174±9μs     | 177±9μs     |    1.02 | executing.ExecutionCacheMiss.time_lookup('call', 'text')                                  |
|          | 173±9μs     | 175±10μs    |    1.01 | executing.ExecutionCacheMiss.time_lookup('call', 'text_range')                            |
|          | 1.19±0s     | 1.21±0.01s  |    1.01 | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'code_qualname')          |
|          | 1.18±0.01s  | 1.22±0s     |    1.03 | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node')                   |
|          | 1.17±0.01s  | 1.21±0.01s  |    1.04 | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node_and_statements')    |
|          | 1.18±0s     | 1.21±0.01s  |    1.03 | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'statements')             |
|          | 1.30±0s     | 1.32±0.01s  |    1.01 | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text')                   |
|          | 1.31±0.01s  | 1.32±0.01s  |    1.01 | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text_range')             |
|          | 7.95±0.03ms | 7.93±0.03ms |    1    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'code_qualname')               |
|          | 7.94±0.02ms | 7.97±0.04ms |    1    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node')                        |
|          | 7.93±0.02ms | 8.01±0.07ms |    1.01 | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node_and_statements')         |
|          | 7.92±0.02ms | 7.96±0.02ms |    1.01 | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'statements')                  |
|          | 12.4±0.06ms | 12.4±0.03ms |    1    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text')                        |
|          | 12.3±0.03ms | 12.4±0.05ms |    1.01 | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text_range')                  |
|          | 1.82±0.02s  | 1.75±0.01s  |    0.96 | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'code_qualname')       |
|          | 1.80±0.02s  | 1.78±0.01s  |    0.99 | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node')                |
|          | 1.79±0.02s  | 1.76±0s     |    0.98 | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node_and_statements') |
|          | 1.80±0.02s  | 1.76±0.01s  |    0.98 | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'statements')          |
|          | 1.98±0.01s  | 2.01±0.01s  |    1.01 | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text')                |
|          | 1.98±0.01s  | 1.99±0.01s  |    1.01 | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text_range')          |
|          | 70.6M       | 70.6M       |    1    | memory.FunctionInLargeFileMemory.track_retained_after_lookup                              |
|          | 5.18M       | 5.18M       |    1    | memory.SourceAllocationMemory.track_peak('lines')                                         |
|          | 5.18M       | 5.18M       |    1    | memory.SourceAllocationMemory.track_peak('parsed')                                        |
|          | 5.18M       | 5.18M       |    1    | memory.SourceAllocationMemory.track_peak('qualnames')                                     |
|          | 5.18M       | 5.18M       |    1    | memory.SourceAllocationMemory.track_peak('statements')                                    |
|          | 2.66M       | 2.66M       |    1    | memory.SourceAllocationMemory.track_retained('lines')                                     |
|          | 2.66M       | 2.66M       |    1    | memory.SourceAllocationMemory.track_retained('parsed')                                    |
|          | 2.66M       | 2.66M       |    1    | memory.SourceAllocationMemory.track_retained('qualnames')                                 |
|          | 2.66M       | 2.66M       |    1    | memory.SourceAllocationMemory.track_retained('statements')                                |
|          | 38.9M       | 38.9M       |    1    | memory.SourcePeakMemory.peakmem_first_use('lines')                                        |
|          | 38.9M       | 38.9M       |    1    | memory.SourcePeakMemory.peakmem_first_use('parsed')                                       |
|          | 38.9M       | 38.9M       |    1    | memory.SourcePeakMemory.peakmem_first_use('qualnames')                                    |
|          | 38.9M       | 38.9M       |    1    | memory.SourcePeakMemory.peakmem_first_use('statements')                                   |

@github-actions

Copy link
Copy Markdown

Benchmark Results

Tip

34 benchmark(s) improved

Count
🟢 Improved 34
⚪ Unchanged 87

Improvements

Benchmark Before After Ratio
🟢 executing.Cached.time_1000_lookups('attribute-access', 'code_qualname') 1.18±0.01ms 909±10μs 0.77x
🟢 executing.Cached.time_1000_lookups('attribute-access', 'node') 875±3μs 720±10μs 0.82x
🟢 executing.Cached.time_1000_lookups('attribute-access', 'node_and_statements') 908±6μs 733±10μs 0.81x
🟢 executing.Cached.time_1000_lookups('attribute-access', 'statements') 915±50μs 702±4μs 0.77x
🟢 executing.Cached.time_1000_lookups('attribute-access', 'text') 4.35±0.05ms 3.94±0.01ms 0.91x
🟢 executing.Cached.time_1000_lookups('bin-op', 'code_qualname') 1.19±0.01ms 897±2μs 0.75x
🟢 executing.Cached.time_1000_lookups('bin-op', 'node') 903±9μs 726±10μs 0.80x
🟢 executing.Cached.time_1000_lookups('bin-op', 'node_and_statements') 908±7μs 732±2μs 0.81x
🟢 executing.Cached.time_1000_lookups('bin-op', 'statements') 883±8μs 699±5μs 0.79x
🟢 executing.Cached.time_1000_lookups('call', 'code_qualname') 1.18±0.01ms 902±6μs 0.76x
🟢 executing.Cached.time_1000_lookups('call', 'node') 884±10μs 709±5μs 0.80x
🟢 executing.Cached.time_1000_lookups('call', 'node_and_statements') 900±6μs 727±6μs 0.81x
🟢 executing.Cached.time_1000_lookups('call', 'statements') 871±7μs 701±6μs 0.80x
🟢 executing.Cached.time_1000_lookups('call', 'text') 4.37±0.05ms 3.97±0.01ms 0.91x
🟢 executing.Cached.time_1000_lookups('call', 'text_range') 4.30±0.05ms 3.83±0.03ms 0.89x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'code_qualname') 1.06±0s 383±0.6ms 0.36x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'node') 1.06±0s 382±1ms 0.36x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'node_and_statements') 1.06±0s 382±2ms 0.36x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'statements') 1.06±0s 383±0.5ms 0.36x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'text') 1.06±0s 386±0.8ms 0.36x
🟢 executing.Cached.time_1000_lookups('call-large-function', 'text_range') 1.07±0s 386±0.6ms 0.36x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'code_qualname') 1.22±0.03ms 899±4μs 0.74x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'node') 897±4μs 708±6μs 0.79x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'node_and_statements') 925±10μs 730±6μs 0.79x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'statements') 891±10μs 704±4μs 0.79x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'code_qualname') 1.22±0ms 930±7μs 0.76x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'node') 892±7μs 725±4μs 0.81x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'node_and_statements') 914±7μs 750±8μs 0.82x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'statements') 883±6μs 716±6μs 0.81x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'text_range') 4.44±0.05ms 4.02±0.04ms 0.90x
🟢 executing.ExecutionCacheMiss.time_lookup('call-large-function', 'code_qualname') 2.46±0.01ms 1.79±0.01ms 0.73x
🟢 executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node') 2.47±0.02ms 1.79±0.01ms 0.73x
🟢 executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node_and_statements') 2.47±0.01ms 1.79±0.01ms 0.73x
🟢 executing.ExecutionCacheMiss.time_lookup('call-large-function', 'statements') 2.46±0.01ms 1.79±0.03ms 0.73x
87 unchanged benchmark(s)
Benchmark Before After Ratio
executing.Cached.time_1000_lookups('attribute-access', 'text_range') 4.19±0.02ms 3.84±0.02ms ~0.92x
executing.Cached.time_1000_lookups('bin-op', 'text') 4.38±0.01ms 4.03±0.01ms ~0.92x
executing.Cached.time_1000_lookups('bin-op', 'text_range') 4.40±0.02ms 4.06±0.01ms ~0.92x
executing.Cached.time_1000_lookups('call-multiline', 'text') 403±1ms 406±3ms ~1.01x
executing.Cached.time_1000_lookups('call-multiline', 'text_range') 405±0.5ms 407±3ms ~1.01x
executing.Cached.time_1000_lookups('function-in-large-file', 'text') 4.39±0ms 4.08±0.01ms ~0.93x
executing.ColdLookup.time_lookup('attribute-access', 'code_qualname') 159±10μs 157±10μs ~0.99x
executing.ColdLookup.time_lookup('attribute-access', 'node') 158±9μs 154±10μs ~0.97x
executing.ColdLookup.time_lookup('attribute-access', 'node_and_statements') 158±10μs 157±10μs ~1.00x
executing.ColdLookup.time_lookup('attribute-access', 'statements') 157±10μs 155±10μs ~0.99x
executing.ColdLookup.time_lookup('attribute-access', 'text') 182±10μs 177±10μs ~0.97x
executing.ColdLookup.time_lookup('attribute-access', 'text_range') 181±20μs 170±10μs ~0.94x
executing.ColdLookup.time_lookup('bin-op', 'code_qualname') 157±10μs 149±7μs ~0.95x
executing.ColdLookup.time_lookup('bin-op', 'node') 151±10μs 148±7μs ~0.98x
executing.ColdLookup.time_lookup('bin-op', 'node_and_statements') 152±10μs 149±8μs ~0.98x
executing.ColdLookup.time_lookup('bin-op', 'statements') 151±10μs 147±10μs ~0.97x
executing.ColdLookup.time_lookup('bin-op', 'text') 176±10μs 165±10μs ~0.94x
executing.ColdLookup.time_lookup('bin-op', 'text_range') 173±10μs 165±10μs ~0.95x
executing.ColdLookup.time_lookup('call', 'code_qualname') 140±9μs 140±9μs ~1.00x
executing.ColdLookup.time_lookup('call', 'node') 140±10μs 135±8μs ~0.97x
executing.ColdLookup.time_lookup('call', 'node_and_statements') 140±9μs 136±10μs ~0.98x
executing.ColdLookup.time_lookup('call', 'statements') 139±10μs 137±9μs ~0.99x
executing.ColdLookup.time_lookup('call', 'text') 161±10μs 156±10μs ~0.97x
executing.ColdLookup.time_lookup('call', 'text_range') 157±10μs 153±10μs ~0.97x
executing.ColdLookup.time_lookup('call-large-function', 'code_qualname') 933±0.8ms 931±4ms ~1.00x
executing.ColdLookup.time_lookup('call-large-function', 'node') 928±5ms 929±3ms ~1.00x
executing.ColdLookup.time_lookup('call-large-function', 'node_and_statements') 930±2ms 929±4ms ~1.00x
executing.ColdLookup.time_lookup('call-large-function', 'statements') 931±3ms 928±4ms ~1.00x
executing.ColdLookup.time_lookup('call-large-function', 'text') 935±2ms 933±2ms ~1.00x
executing.ColdLookup.time_lookup('call-large-function', 'text_range') 933±4ms 932±6ms ~1.00x
executing.ColdLookup.time_lookup('call-multiline', 'code_qualname') 11.0±0.1ms 11.0±0.2ms ~1.00x
executing.ColdLookup.time_lookup('call-multiline', 'node') 11.1±0.2ms 11.0±0.1ms ~1.00x
executing.ColdLookup.time_lookup('call-multiline', 'node_and_statements') 11.0±0.1ms 11.0±0.2ms ~1.00x
executing.ColdLookup.time_lookup('call-multiline', 'statements') 11.0±0.2ms 10.9±0.2ms ~0.99x
executing.ColdLookup.time_lookup('call-multiline', 'text') 12.0±0.1ms 11.9±0.1ms ~0.99x
executing.ColdLookup.time_lookup('call-multiline', 'text_range') 12.0±0.2ms 12.0±0.2ms ~1.00x
executing.ColdLookup.time_lookup('function-in-large-file', 'code_qualname') 784±7ms 761±10ms ~0.97x
executing.ColdLookup.time_lookup('function-in-large-file', 'node') 774±1ms 776±10ms ~1.00x
executing.ColdLookup.time_lookup('function-in-large-file', 'node_and_statements') 770±6ms 772±10ms ~1.00x
executing.ColdLookup.time_lookup('function-in-large-file', 'statements') 775±6ms 770±20ms ~0.99x
executing.ColdLookup.time_lookup('function-in-large-file', 'text') 786±6ms 775±10ms ~0.99x
executing.ColdLookup.time_lookup('function-in-large-file', 'text_range') 782±2ms 776±10ms ~0.99x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'code_qualname') 27.2±1μs 26.4±1μs ~0.97x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node') 26.8±0.9μs 25.5±0.9μs ~0.95x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node_and_statements') 26.4±1μs 26.1±1μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'statements') 26.4±2μs 25.5±1μs ~0.97x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text') 41.8±2μs 39.8±1μs ~0.95x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text_range') 41.7±2μs 39.9±2μs ~0.96x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'code_qualname') 26.9±0.9μs 25.6±1μs ~0.95x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'node') 26.3±0.8μs 24.8±1μs ~0.94x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'node_and_statements') 26.0±0.8μs 25.2±0.8μs ~0.97x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'statements') 25.6±0.8μs 25.1±0.6μs ~0.98x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'text') 41.0±2μs 39.4±2μs ~0.96x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'text_range') 41.0±2μs 38.9±2μs ~0.95x
executing.ExecutionCacheMiss.time_lookup('call', 'code_qualname') 18.9±1μs 17.7±1μs ~0.94x
executing.ExecutionCacheMiss.time_lookup('call', 'node') 18.4±1μs 16.9±0.9μs ~0.92x
executing.ExecutionCacheMiss.time_lookup('call', 'node_and_statements') 17.7±1μs 16.7±1μs ~0.94x
executing.ExecutionCacheMiss.time_lookup('call', 'statements') 18.0±0.8μs 17.1±0.8μs ~0.95x
executing.ExecutionCacheMiss.time_lookup('call', 'text') 33.2±3μs 31.4±2μs ~0.94x
executing.ExecutionCacheMiss.time_lookup('call', 'text_range') 32.7±2μs 31.3±1μs ~0.96x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text') 3.58±0.05ms 2.91±0.04ms ~~0.81x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text_range') 3.58±0.05ms 2.92±0.05ms ~~0.81x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'code_qualname') 34.2±1μs 32.3±1μs ~0.95x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node') 33.1±1μs 32.1±1μs ~0.97x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node_and_statements') 33.4±1μs 32.1±1μs ~0.96x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'statements') 33.1±1μs 31.7±2μs ~0.96x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text') 982±20μs 983±10μs ~1.00x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text_range') 982±10μs 984±10μs ~1.00x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'code_qualname') 117±9μs 111±10μs ~0.95x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node') 113±6μs 112±6μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node_and_statements') 113±10μs 111±5μs ~0.98x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'statements') 112±5μs 113±8μs ~1.01x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text') 4.35±0.02ms 4.33±0.01ms ~1.00x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text_range') 4.36±0.01ms 4.34±0.01ms ~1.00x
memory.FunctionInLargeFileMemory.track_retained_after_lookup 89.9M 89.9M ~1.00x
memory.SourceAllocationMemory.track_peak('lines') 6.11M 6.11M ~1.00x
memory.SourceAllocationMemory.track_peak('parsed') 6.11M 6.11M ~1.00x
memory.SourceAllocationMemory.track_peak('qualnames') 6.11M 6.11M ~1.00x
memory.SourceAllocationMemory.track_peak('statements') 6.11M 6.11M ~1.00x
memory.SourceAllocationMemory.track_retained('lines') 3.11M 3.1M ~1.00x
memory.SourceAllocationMemory.track_retained('parsed') 3.1M 3.1M ~1.00x
memory.SourceAllocationMemory.track_retained('qualnames') 3.1M 3.1M ~1.00x
memory.SourceAllocationMemory.track_retained('statements') 3.11M 3.11M ~1.00x
memory.SourcePeakMemory.peakmem_first_use('lines') 38.9M 38.9M ~1.00x
memory.SourcePeakMemory.peakmem_first_use('parsed') 38.9M 38.9M ~1.00x
memory.SourcePeakMemory.peakmem_first_use('qualnames') 38.9M 38.9M ~1.00x
memory.SourcePeakMemory.peakmem_first_use('statements') 38.9M 38.9M ~1.00x
Details
  • Base: 43955749
  • Head: fdfa61ba
  • Runner: ubuntu-24.04 / Python 3.15
Raw asv-spyglass output
All benchmarks:

| Change   | Before      | After       | Ratio   | Benchmark (Parameter)                                                                     |
|----------|-------------|-------------|---------|-------------------------------------------------------------------------------------------|
| -        | 1.18±0.01ms | 909±10μs    | 0.77    | executing.Cached.time_1000_lookups('attribute-access', 'code_qualname')                   |
| -        | 875±3μs     | 720±10μs    | 0.82    | executing.Cached.time_1000_lookups('attribute-access', 'node')                            |
| -        | 908±6μs     | 733±10μs    | 0.81    | executing.Cached.time_1000_lookups('attribute-access', 'node_and_statements')             |
| -        | 915±50μs    | 702±4μs     | 0.77    | executing.Cached.time_1000_lookups('attribute-access', 'statements')                      |
| -        | 4.35±0.05ms | 3.94±0.01ms | 0.91    | executing.Cached.time_1000_lookups('attribute-access', 'text')                            |
|          | 4.19±0.02ms | 3.84±0.02ms | 0.92    | executing.Cached.time_1000_lookups('attribute-access', 'text_range')                      |
| -        | 1.19±0.01ms | 897±2μs     | 0.75    | executing.Cached.time_1000_lookups('bin-op', 'code_qualname')                             |
| -        | 903±9μs     | 726±10μs    | 0.80    | executing.Cached.time_1000_lookups('bin-op', 'node')                                      |
| -        | 908±7μs     | 732±2μs     | 0.81    | executing.Cached.time_1000_lookups('bin-op', 'node_and_statements')                       |
| -        | 883±8μs     | 699±5μs     | 0.79    | executing.Cached.time_1000_lookups('bin-op', 'statements')                                |
|          | 4.38±0.01ms | 4.03±0.01ms | 0.92    | executing.Cached.time_1000_lookups('bin-op', 'text')                                      |
|          | 4.40±0.02ms | 4.06±0.01ms | 0.92    | executing.Cached.time_1000_lookups('bin-op', 'text_range')                                |
| -        | 1.18±0.01ms | 902±6μs     | 0.76    | executing.Cached.time_1000_lookups('call', 'code_qualname')                               |
| -        | 884±10μs    | 709±5μs     | 0.80    | executing.Cached.time_1000_lookups('call', 'node')                                        |
| -        | 900±6μs     | 727±6μs     | 0.81    | executing.Cached.time_1000_lookups('call', 'node_and_statements')                         |
| -        | 871±7μs     | 701±6μs     | 0.80    | executing.Cached.time_1000_lookups('call', 'statements')                                  |
| -        | 4.37±0.05ms | 3.97±0.01ms | 0.91    | executing.Cached.time_1000_lookups('call', 'text')                                        |
| -        | 4.30±0.05ms | 3.83±0.03ms | 0.89    | executing.Cached.time_1000_lookups('call', 'text_range')                                  |
| -        | 1.06±0s     | 383±0.6ms   | 0.36    | executing.Cached.time_1000_lookups('call-large-function', 'code_qualname')                |
| -        | 1.06±0s     | 382±1ms     | 0.36    | executing.Cached.time_1000_lookups('call-large-function', 'node')                         |
| -        | 1.06±0s     | 382±2ms     | 0.36    | executing.Cached.time_1000_lookups('call-large-function', 'node_and_statements')          |
| -        | 1.06±0s     | 383±0.5ms   | 0.36    | executing.Cached.time_1000_lookups('call-large-function', 'statements')                   |
| -        | 1.06±0s     | 386±0.8ms   | 0.36    | executing.Cached.time_1000_lookups('call-large-function', 'text')                         |
| -        | 1.07±0s     | 386±0.6ms   | 0.36    | executing.Cached.time_1000_lookups('call-large-function', 'text_range')                   |
| -        | 1.22±0.03ms | 899±4μs     | 0.74    | executing.Cached.time_1000_lookups('call-multiline', 'code_qualname')                     |
| -        | 897±4μs     | 708±6μs     | 0.79    | executing.Cached.time_1000_lookups('call-multiline', 'node')                              |
| -        | 925±10μs    | 730±6μs     | 0.79    | executing.Cached.time_1000_lookups('call-multiline', 'node_and_statements')               |
| -        | 891±10μs    | 704±4μs     | 0.79    | executing.Cached.time_1000_lookups('call-multiline', 'statements')                        |
|          | 403±1ms     | 406±3ms     | 1.01    | executing.Cached.time_1000_lookups('call-multiline', 'text')                              |
|          | 405±0.5ms   | 407±3ms     | 1.01    | executing.Cached.time_1000_lookups('call-multiline', 'text_range')                        |
| -        | 1.22±0ms    | 930±7μs     | 0.76    | executing.Cached.time_1000_lookups('function-in-large-file', 'code_qualname')             |
| -        | 892±7μs     | 725±4μs     | 0.81    | executing.Cached.time_1000_lookups('function-in-large-file', 'node')                      |
| -        | 914±7μs     | 750±8μs     | 0.82    | executing.Cached.time_1000_lookups('function-in-large-file', 'node_and_statements')       |
| -        | 883±6μs     | 716±6μs     | 0.81    | executing.Cached.time_1000_lookups('function-in-large-file', 'statements')                |
|          | 4.39±0ms    | 4.08±0.01ms | 0.93    | executing.Cached.time_1000_lookups('function-in-large-file', 'text')                      |
| -        | 4.44±0.05ms | 4.02±0.04ms | 0.90    | executing.Cached.time_1000_lookups('function-in-large-file', 'text_range')                |
|          | 159±10μs    | 157±10μs    | 0.99    | executing.ColdLookup.time_lookup('attribute-access', 'code_qualname')                     |
|          | 158±9μs     | 154±10μs    | 0.97    | executing.ColdLookup.time_lookup('attribute-access', 'node')                              |
|          | 158±10μs    | 157±10μs    | 1.00    | executing.ColdLookup.time_lookup('attribute-access', 'node_and_statements')               |
|          | 157±10μs    | 155±10μs    | 0.99    | executing.ColdLookup.time_lookup('attribute-access', 'statements')                        |
|          | 182±10μs    | 177±10μs    | 0.97    | executing.ColdLookup.time_lookup('attribute-access', 'text')                              |
|          | 181±20μs    | 170±10μs    | 0.94    | executing.ColdLookup.time_lookup('attribute-access', 'text_range')                        |
|          | 157±10μs    | 149±7μs     | 0.95    | executing.ColdLookup.time_lookup('bin-op', 'code_qualname')                               |
|          | 151±10μs    | 148±7μs     | 0.98    | executing.ColdLookup.time_lookup('bin-op', 'node')                                        |
|          | 152±10μs    | 149±8μs     | 0.98    | executing.ColdLookup.time_lookup('bin-op', 'node_and_statements')                         |
|          | 151±10μs    | 147±10μs    | 0.97    | executing.ColdLookup.time_lookup('bin-op', 'statements')                                  |
|          | 176±10μs    | 165±10μs    | 0.94    | executing.ColdLookup.time_lookup('bin-op', 'text')                                        |
|          | 173±10μs    | 165±10μs    | 0.95    | executing.ColdLookup.time_lookup('bin-op', 'text_range')                                  |
|          | 140±9μs     | 140±9μs     | 1.00    | executing.ColdLookup.time_lookup('call', 'code_qualname')                                 |
|          | 140±10μs    | 135±8μs     | 0.97    | executing.ColdLookup.time_lookup('call', 'node')                                          |
|          | 140±9μs     | 136±10μs    | 0.98    | executing.ColdLookup.time_lookup('call', 'node_and_statements')                           |
|          | 139±10μs    | 137±9μs     | 0.99    | executing.ColdLookup.time_lookup('call', 'statements')                                    |
|          | 161±10μs    | 156±10μs    | 0.97    | executing.ColdLookup.time_lookup('call', 'text')                                          |
|          | 157±10μs    | 153±10μs    | 0.97    | executing.ColdLookup.time_lookup('call', 'text_range')                                    |
|          | 933±0.8ms   | 931±4ms     | 1.00    | executing.ColdLookup.time_lookup('call-large-function', 'code_qualname')                  |
|          | 928±5ms     | 929±3ms     | 1.00    | executing.ColdLookup.time_lookup('call-large-function', 'node')                           |
|          | 930±2ms     | 929±4ms     | 1.00    | executing.ColdLookup.time_lookup('call-large-function', 'node_and_statements')            |
|          | 931±3ms     | 928±4ms     | 1.00    | executing.ColdLookup.time_lookup('call-large-function', 'statements')                     |
|          | 935±2ms     | 933±2ms     | 1.00    | executing.ColdLookup.time_lookup('call-large-function', 'text')                           |
|          | 933±4ms     | 932±6ms     | 1.00    | executing.ColdLookup.time_lookup('call-large-function', 'text_range')                     |
|          | 11.0±0.1ms  | 11.0±0.2ms  | 1.00    | executing.ColdLookup.time_lookup('call-multiline', 'code_qualname')                       |
|          | 11.1±0.2ms  | 11.0±0.1ms  | 1.00    | executing.ColdLookup.time_lookup('call-multiline', 'node')                                |
|          | 11.0±0.1ms  | 11.0±0.2ms  | 1.00    | executing.ColdLookup.time_lookup('call-multiline', 'node_and_statements')                 |
|          | 11.0±0.2ms  | 10.9±0.2ms  | 0.99    | executing.ColdLookup.time_lookup('call-multiline', 'statements')                          |
|          | 12.0±0.1ms  | 11.9±0.1ms  | 0.99    | executing.ColdLookup.time_lookup('call-multiline', 'text')                                |
|          | 12.0±0.2ms  | 12.0±0.2ms  | 1.00    | executing.ColdLookup.time_lookup('call-multiline', 'text_range')                          |
|          | 784±7ms     | 761±10ms    | 0.97    | executing.ColdLookup.time_lookup('function-in-large-file', 'code_qualname')               |
|          | 774±1ms     | 776±10ms    | 1.00    | executing.ColdLookup.time_lookup('function-in-large-file', 'node')                        |
|          | 770±6ms     | 772±10ms    | 1.00    | executing.ColdLookup.time_lookup('function-in-large-file', 'node_and_statements')         |
|          | 775±6ms     | 770±20ms    | 0.99    | executing.ColdLookup.time_lookup('function-in-large-file', 'statements')                  |
|          | 786±6ms     | 775±10ms    | 0.99    | executing.ColdLookup.time_lookup('function-in-large-file', 'text')                        |
|          | 782±2ms     | 776±10ms    | 0.99    | executing.ColdLookup.time_lookup('function-in-large-file', 'text_range')                  |
|          | 27.2±1μs    | 26.4±1μs    | 0.97    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'code_qualname')             |
|          | 26.8±0.9μs  | 25.5±0.9μs  | 0.95    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node')                      |
|          | 26.4±1μs    | 26.1±1μs    | 0.99    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node_and_statements')       |
|          | 26.4±2μs    | 25.5±1μs    | 0.97    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'statements')                |
|          | 41.8±2μs    | 39.8±1μs    | 0.95    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text')                      |
|          | 41.7±2μs    | 39.9±2μs    | 0.96    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text_range')                |
|          | 26.9±0.9μs  | 25.6±1μs    | 0.95    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'code_qualname')                       |
|          | 26.3±0.8μs  | 24.8±1μs    | 0.94    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'node')                                |
|          | 26.0±0.8μs  | 25.2±0.8μs  | 0.97    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'node_and_statements')                 |
|          | 25.6±0.8μs  | 25.1±0.6μs  | 0.98    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'statements')                          |
|          | 41.0±2μs    | 39.4±2μs    | 0.96    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'text')                                |
|          | 41.0±2μs    | 38.9±2μs    | 0.95    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'text_range')                          |
|          | 18.9±1μs    | 17.7±1μs    | 0.94    | executing.ExecutionCacheMiss.time_lookup('call', 'code_qualname')                         |
|          | 18.4±1μs    | 16.9±0.9μs  | 0.92    | executing.ExecutionCacheMiss.time_lookup('call', 'node')                                  |
|          | 17.7±1μs    | 16.7±1μs    | 0.94    | executing.ExecutionCacheMiss.time_lookup('call', 'node_and_statements')                   |
|          | 18.0±0.8μs  | 17.1±0.8μs  | 0.95    | executing.ExecutionCacheMiss.time_lookup('call', 'statements')                            |
|          | 33.2±3μs    | 31.4±2μs    | 0.94    | executing.ExecutionCacheMiss.time_lookup('call', 'text')                                  |
|          | 32.7±2μs    | 31.3±1μs    | 0.96    | executing.ExecutionCacheMiss.time_lookup('call', 'text_range')                            |
| -        | 2.46±0.01ms | 1.79±0.01ms | 0.73    | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'code_qualname')          |
| -        | 2.47±0.02ms | 1.79±0.01ms | 0.73    | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node')                   |
| -        | 2.47±0.01ms | 1.79±0.01ms | 0.73    | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node_and_statements')    |
| -        | 2.46±0.01ms | 1.79±0.03ms | 0.73    | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'statements')             |
|          | 3.58±0.05ms | 2.91±0.04ms | ~0.81   | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text')                   |
|          | 3.58±0.05ms | 2.92±0.05ms | ~0.81   | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text_range')             |
|          | 34.2±1μs    | 32.3±1μs    | 0.95    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'code_qualname')               |
|          | 33.1±1μs    | 32.1±1μs    | 0.97    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node')                        |
|          | 33.4±1μs    | 32.1±1μs    | 0.96    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node_and_statements')         |
|          | 33.1±1μs    | 31.7±2μs    | 0.96    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'statements')                  |
|          | 982±20μs    | 983±10μs    | 1.00    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text')                        |
|          | 982±10μs    | 984±10μs    | 1.00    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text_range')                  |
|          | 117±9μs     | 111±10μs    | 0.95    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'code_qualname')       |
|          | 113±6μs     | 112±6μs     | 0.99    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node')                |
|          | 113±10μs    | 111±5μs     | 0.98    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node_and_statements') |
|          | 112±5μs     | 113±8μs     | 1.01    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'statements')          |
|          | 4.35±0.02ms | 4.33±0.01ms | 1.00    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text')                |
|          | 4.36±0.01ms | 4.34±0.01ms | 1.00    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text_range')          |
|          | 89.9M       | 89.9M       | 1.00    | memory.FunctionInLargeFileMemory.track_retained_after_lookup                              |
|          | 6.11M       | 6.11M       | 1.00    | memory.SourceAllocationMemory.track_peak('lines')                                         |
|          | 6.11M       | 6.11M       | 1.00    | memory.SourceAllocationMemory.track_peak('parsed')                                        |
|          | 6.11M       | 6.11M       | 1.00    | memory.SourceAllocationMemory.track_peak('qualnames')                                     |
|          | 6.11M       | 6.11M       | 1.00    | memory.SourceAllocationMemory.track_peak('statements')                                    |
|          | 3.11M       | 3.1M        | 1.00    | memory.SourceAllocationMemory.track_retained('lines')                                     |
|          | 3.1M        | 3.1M        | 1.00    | memory.SourceAllocationMemory.track_retained('parsed')                                    |
|          | 3.1M        | 3.1M        | 1.00    | memory.SourceAllocationMemory.track_retained('qualnames')                                 |
|          | 3.11M       | 3.11M       | 1.00    | memory.SourceAllocationMemory.track_retained('statements')                                |
|          | 38.9M       | 38.9M       | 1.00    | memory.SourcePeakMemory.peakmem_first_use('lines')                                        |
|          | 38.9M       | 38.9M       | 1.00    | memory.SourcePeakMemory.peakmem_first_use('parsed')                                       |
|          | 38.9M       | 38.9M       | 1.00    | memory.SourcePeakMemory.peakmem_first_use('qualnames')                                    |
|          | 38.9M       | 38.9M       | 1.00    | memory.SourcePeakMemory.peakmem_first_use('statements')                                   |

@github-actions

Copy link
Copy Markdown

Benchmark Results

Tip

25 benchmark(s) improved

Count
🟢 Improved 25
⚪ Unchanged 96

Improvements

Benchmark Before After Ratio
🟢 executing.Cached.time_1000_lookups('attribute-access', 'code_qualname') 1.74±0.02ms 1.33±0ms 0.76x
🟢 executing.Cached.time_1000_lookups('attribute-access', 'node') 1.24±0.01ms 988±20μs 0.80x
🟢 executing.Cached.time_1000_lookups('attribute-access', 'node_and_statements') 1.27±0.01ms 1.02±0.01ms 0.80x
🟢 executing.Cached.time_1000_lookups('attribute-access', 'statements') 1.23±0.01ms 981±2μs 0.80x
🟢 executing.Cached.time_1000_lookups('bin-op', 'code_qualname') 1.71±0.01ms 1.31±0.01ms 0.76x
🟢 executing.Cached.time_1000_lookups('bin-op', 'node') 1.24±0ms 986±7μs 0.80x
🟢 executing.Cached.time_1000_lookups('bin-op', 'node_and_statements') 1.27±0.02ms 1.04±0.01ms 0.82x
🟢 executing.Cached.time_1000_lookups('bin-op', 'statements') 1.23±0ms 963±2μs 0.79x
🟢 executing.Cached.time_1000_lookups('call', 'code_qualname') 1.72±0ms 1.32±0.01ms 0.77x
🟢 executing.Cached.time_1000_lookups('call', 'node') 1.26±0ms 995±10μs 0.79x
🟢 executing.Cached.time_1000_lookups('call', 'node_and_statements') 1.27±0.01ms 1.02±0ms 0.81x
🟢 executing.Cached.time_1000_lookups('call', 'statements') 1.22±0ms 969±10μs 0.79x
🟢 executing.Cached.time_1000_lookups('call', 'text') 7.18±0.1ms 6.51±0.03ms 0.91x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'code_qualname') 12.9±1ms 1.32±0ms 0.10x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'node') 12.4±1ms 982±9μs 0.08x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'node_and_statements') 12.3±2ms 1.03±0.01ms 0.08x
🟢 executing.Cached.time_1000_lookups('call-multiline', 'statements') 12.2±1ms 994±10μs 0.08x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'code_qualname') 1.74±0.01ms 1.36±0ms 0.78x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'node') 1.24±0ms 993±0.9μs 0.80x
🟢 executing.Cached.time_1000_lookups('function-in-large-file', 'node_and_statements') 1.27±0ms 1.04±0.02ms 0.81x
🟢 executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node') 75.3±20μs 41.7±5μs 0.55x
🟢 executing.ExecutionCacheMiss.time_lookup('call-multiline', 'code_qualname') 106±7μs 74.5±7μs 0.70x
🟢 executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node') 103±8μs 74.7±4μs 0.72x
🟢 executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node_and_statements') 105±10μs 74.0±6μs 0.70x
🟢 executing.ExecutionCacheMiss.time_lookup('call-multiline', 'statements') 103±8μs 76.6±5μs 0.75x
96 unchanged benchmark(s)
Benchmark Before After Ratio
executing.Cached.time_1000_lookups('attribute-access', 'text') 7.01±0.06ms 6.46±0.01ms ~0.92x
executing.Cached.time_1000_lookups('attribute-access', 'text_range') 6.80±0.02ms 6.28±0.01ms ~0.92x
executing.Cached.time_1000_lookups('bin-op', 'text') 7.13±0.03ms 6.78±0.1ms ~0.95x
executing.Cached.time_1000_lookups('bin-op', 'text_range') 6.91±0.03ms 6.54±0.05ms ~0.95x
executing.Cached.time_1000_lookups('call', 'text_range') 6.84±0.02ms 6.48±0.1ms ~0.95x
executing.Cached.time_1000_lookups('call-large-function', 'code_qualname') 575±2ms 567±0.4ms ~0.98x
executing.Cached.time_1000_lookups('call-large-function', 'node') 571±0.7ms 567±1ms ~0.99x
executing.Cached.time_1000_lookups('call-large-function', 'node_and_statements') 574±2ms 566±0.6ms ~0.99x
executing.Cached.time_1000_lookups('call-large-function', 'statements') 570±0.8ms 567±0.8ms ~0.99x
executing.Cached.time_1000_lookups('call-large-function', 'text') 581±1ms 575±1ms ~0.99x
executing.Cached.time_1000_lookups('call-large-function', 'text_range') 580±0.5ms 573±0.3ms ~0.99x
executing.Cached.time_1000_lookups('call-multiline', 'text') 692±10ms 679±10ms ~0.98x
executing.Cached.time_1000_lookups('call-multiline', 'text_range') 677±2ms 665±10ms ~0.98x
executing.Cached.time_1000_lookups('function-in-large-file', 'statements') 1.23±0ms 1.02±0.2ms ~~0.83x
executing.Cached.time_1000_lookups('function-in-large-file', 'text') 7.23±0.06ms 6.68±0.03ms ~0.92x
executing.Cached.time_1000_lookups('function-in-large-file', 'text_range') 6.98±0.07ms 6.47±0.03ms ~0.93x
executing.ColdLookup.time_lookup('attribute-access', 'code_qualname') 254±20μs 253±10μs ~1.00x
executing.ColdLookup.time_lookup('attribute-access', 'node') 253±20μs 247±10μs ~0.98x
executing.ColdLookup.time_lookup('attribute-access', 'node_and_statements') 249±20μs 249±20μs ~1.00x
executing.ColdLookup.time_lookup('attribute-access', 'statements') 252±10μs 248±20μs ~0.98x
executing.ColdLookup.time_lookup('attribute-access', 'text') 317±20μs 313±20μs ~0.99x
executing.ColdLookup.time_lookup('attribute-access', 'text_range') 314±20μs 299±20μs ~0.95x
executing.ColdLookup.time_lookup('bin-op', 'code_qualname') 239±20μs 237±20μs ~0.99x
executing.ColdLookup.time_lookup('bin-op', 'node') 244±20μs 246±20μs ~1.01x
executing.ColdLookup.time_lookup('bin-op', 'node_and_statements') 241±20μs 238±10μs ~0.98x
executing.ColdLookup.time_lookup('bin-op', 'statements') 244±10μs 242±10μs ~0.99x
executing.ColdLookup.time_lookup('bin-op', 'text') 299±20μs 300±20μs ~1.00x
executing.ColdLookup.time_lookup('bin-op', 'text_range') 303±20μs 301±20μs ~0.99x
executing.ColdLookup.time_lookup('call', 'code_qualname') 235±10μs 230±20μs ~0.98x
executing.ColdLookup.time_lookup('call', 'node') 242±10μs 225±10μs ~0.93x
executing.ColdLookup.time_lookup('call', 'node_and_statements') 234±20μs 228±20μs ~0.98x
executing.ColdLookup.time_lookup('call', 'statements') 238±20μs 226±10μs ~0.95x
executing.ColdLookup.time_lookup('call', 'text') 289±20μs 291±20μs ~1.01x
executing.ColdLookup.time_lookup('call', 'text_range') 298±20μs 288±20μs ~0.97x
executing.ColdLookup.time_lookup('call-large-function', 'code_qualname') 1.14±0.01s 1.15±0.02s ~1.01x
executing.ColdLookup.time_lookup('call-large-function', 'node') 1.14±0.01s 1.15±0s ~1.01x
executing.ColdLookup.time_lookup('call-large-function', 'node_and_statements') 1.15±0.01s 1.14±0.01s ~0.99x
executing.ColdLookup.time_lookup('call-large-function', 'statements') 1.15±0.01s 1.14±0s ~0.99x
executing.ColdLookup.time_lookup('call-large-function', 'text') 1.28±0s 1.28±0s ~1.00x
executing.ColdLookup.time_lookup('call-large-function', 'text_range') 1.28±0s 1.28±0.01s ~1.00x
executing.ColdLookup.time_lookup('call-multiline', 'code_qualname') 18.5±0.2ms 18.1±0.1ms ~0.98x
executing.ColdLookup.time_lookup('call-multiline', 'node') 18.3±0.2ms 18.1±0.08ms ~0.99x
executing.ColdLookup.time_lookup('call-multiline', 'node_and_statements') 18.2±0.1ms 18.1±0.09ms ~0.99x
executing.ColdLookup.time_lookup('call-multiline', 'statements') 18.4±0.2ms 18.0±0.1ms ~0.98x
executing.ColdLookup.time_lookup('call-multiline', 'text') 23.7±0.09ms 23.6±0.2ms ~0.99x
executing.ColdLookup.time_lookup('call-multiline', 'text_range') 23.6±0.1ms 23.6±0.1ms ~1.00x
executing.ColdLookup.time_lookup('function-in-large-file', 'code_qualname') 1.17±0.01s 1.16±0s ~1.00x
executing.ColdLookup.time_lookup('function-in-large-file', 'node') 1.16±0.01s 1.17±0.01s ~1.00x
executing.ColdLookup.time_lookup('function-in-large-file', 'node_and_statements') 1.17±0.01s 1.17±0.01s ~1.00x
executing.ColdLookup.time_lookup('function-in-large-file', 'statements') 1.17±0.01s 1.18±0.02s ~1.01x
executing.ColdLookup.time_lookup('function-in-large-file', 'text') 1.43±0.01s 1.41±0.01s ~0.99x
executing.ColdLookup.time_lookup('function-in-large-file', 'text_range') 1.41±0.01s 1.41±0.01s ~1.00x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'code_qualname') 44.8±4μs 42.6±5μs ~0.95x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node_and_statements') 43.9±4μs 41.8±4μs ~0.95x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'statements') 42.7±4μs 42.0±4μs ~0.98x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text') 97.0±10μs 95.4±10μs ~0.98x
executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text_range') 97.4±10μs 96.0±10μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'code_qualname') 44.0±5μs 40.9±5μs ~0.93x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'node') 42.0±5μs 39.9±4μs ~0.95x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'node_and_statements') 42.1±4μs 40.2±5μs ~0.96x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'statements') 42.5±6μs 40.7±6μs ~0.96x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'text') 96.1±10μs 93.2±10μs ~0.97x
executing.ExecutionCacheMiss.time_lookup('bin-op', 'text_range') 93.1±10μs 92.5±10μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('call', 'code_qualname') 36.2±5μs 35.6±5μs ~0.98x
executing.ExecutionCacheMiss.time_lookup('call', 'node') 36.0±5μs 33.2±5μs ~0.92x
executing.ExecutionCacheMiss.time_lookup('call', 'node_and_statements') 35.7±4μs 33.8±5μs ~0.94x
executing.ExecutionCacheMiss.time_lookup('call', 'statements') 36.3±4μs 34.2±4μs ~0.94x
executing.ExecutionCacheMiss.time_lookup('call', 'text') 87.0±10μs 86.8±10μs ~1.00x
executing.ExecutionCacheMiss.time_lookup('call', 'text_range') 87.2±10μs 83.6±10μs ~0.96x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'code_qualname') 657±10μs 650±10μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node') 649±20μs 645±20μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node_and_statements') 659±10μs 648±20μs ~0.98x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'statements') 666±30μs 646±10μs ~0.97x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text') 143±1ms 145±1ms ~1.01x
executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text_range') 145±1ms 146±0.7ms ~1.01x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text') 5.69±0.2ms 5.55±0.06ms ~0.98x
executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text_range') 5.67±0.09ms 5.58±0.06ms ~0.98x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'code_qualname') 201±10μs 196±10μs ~0.98x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node') 203±10μs 191±10μs ~0.94x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node_and_statements') 199±10μs 194±10μs ~0.98x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'statements') 199±10μs 198±10μs ~0.99x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text') 254±3ms 252±3ms ~0.99x
executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text_range') 251±0.7ms 249±0.8ms ~0.99x
memory.FunctionInLargeFileMemory.track_retained_after_lookup 89.6M 89.6M ~1.00x
memory.SourceAllocationMemory.track_peak('lines') 5.98M 5.98M ~1.00x
memory.SourceAllocationMemory.track_peak('parsed') 5.98M 5.98M ~1.00x
memory.SourceAllocationMemory.track_peak('qualnames') 5.98M 5.98M ~1.00x
memory.SourceAllocationMemory.track_peak('statements') 5.98M 5.98M ~1.00x
memory.SourceAllocationMemory.track_retained('lines') 3.21M 3.21M ~1.00x
memory.SourceAllocationMemory.track_retained('parsed') 3.21M 3.21M ~1.00x
memory.SourceAllocationMemory.track_retained('qualnames') 3.21M 3.21M ~1.00x
memory.SourceAllocationMemory.track_retained('statements') 3.21M 3.21M ~1.00x
memory.SourcePeakMemory.peakmem_first_use('lines') 38.8M 38.8M ~1.00x
memory.SourcePeakMemory.peakmem_first_use('parsed') 38.8M 38.8M ~1.00x
memory.SourcePeakMemory.peakmem_first_use('qualnames') 38.8M 38.8M ~1.00x
memory.SourcePeakMemory.peakmem_first_use('statements') 38.8M 38.8M ~1.00x
Details
  • Base: 43955749
  • Head: fdfa61ba
  • Runner: ubuntu-24.04 / Python 3.11
Raw asv-spyglass output
All benchmarks:

| Change   | Before      | After       | Ratio   | Benchmark (Parameter)                                                                     |
|----------|-------------|-------------|---------|-------------------------------------------------------------------------------------------|
| -        | 1.74±0.02ms | 1.33±0ms    | 0.76    | executing.Cached.time_1000_lookups('attribute-access', 'code_qualname')                   |
| -        | 1.24±0.01ms | 988±20μs    | 0.80    | executing.Cached.time_1000_lookups('attribute-access', 'node')                            |
| -        | 1.27±0.01ms | 1.02±0.01ms | 0.80    | executing.Cached.time_1000_lookups('attribute-access', 'node_and_statements')             |
| -        | 1.23±0.01ms | 981±2μs     | 0.80    | executing.Cached.time_1000_lookups('attribute-access', 'statements')                      |
|          | 7.01±0.06ms | 6.46±0.01ms | 0.92    | executing.Cached.time_1000_lookups('attribute-access', 'text')                            |
|          | 6.80±0.02ms | 6.28±0.01ms | 0.92    | executing.Cached.time_1000_lookups('attribute-access', 'text_range')                      |
| -        | 1.71±0.01ms | 1.31±0.01ms | 0.76    | executing.Cached.time_1000_lookups('bin-op', 'code_qualname')                             |
| -        | 1.24±0ms    | 986±7μs     | 0.80    | executing.Cached.time_1000_lookups('bin-op', 'node')                                      |
| -        | 1.27±0.02ms | 1.04±0.01ms | 0.82    | executing.Cached.time_1000_lookups('bin-op', 'node_and_statements')                       |
| -        | 1.23±0ms    | 963±2μs     | 0.79    | executing.Cached.time_1000_lookups('bin-op', 'statements')                                |
|          | 7.13±0.03ms | 6.78±0.1ms  | 0.95    | executing.Cached.time_1000_lookups('bin-op', 'text')                                      |
|          | 6.91±0.03ms | 6.54±0.05ms | 0.95    | executing.Cached.time_1000_lookups('bin-op', 'text_range')                                |
| -        | 1.72±0ms    | 1.32±0.01ms | 0.77    | executing.Cached.time_1000_lookups('call', 'code_qualname')                               |
| -        | 1.26±0ms    | 995±10μs    | 0.79    | executing.Cached.time_1000_lookups('call', 'node')                                        |
| -        | 1.27±0.01ms | 1.02±0ms    | 0.81    | executing.Cached.time_1000_lookups('call', 'node_and_statements')                         |
| -        | 1.22±0ms    | 969±10μs    | 0.79    | executing.Cached.time_1000_lookups('call', 'statements')                                  |
| -        | 7.18±0.1ms  | 6.51±0.03ms | 0.91    | executing.Cached.time_1000_lookups('call', 'text')                                        |
|          | 6.84±0.02ms | 6.48±0.1ms  | 0.95    | executing.Cached.time_1000_lookups('call', 'text_range')                                  |
|          | 575±2ms     | 567±0.4ms   | 0.98    | executing.Cached.time_1000_lookups('call-large-function', 'code_qualname')                |
|          | 571±0.7ms   | 567±1ms     | 0.99    | executing.Cached.time_1000_lookups('call-large-function', 'node')                         |
|          | 574±2ms     | 566±0.6ms   | 0.99    | executing.Cached.time_1000_lookups('call-large-function', 'node_and_statements')          |
|          | 570±0.8ms   | 567±0.8ms   | 0.99    | executing.Cached.time_1000_lookups('call-large-function', 'statements')                   |
|          | 581±1ms     | 575±1ms     | 0.99    | executing.Cached.time_1000_lookups('call-large-function', 'text')                         |
|          | 580±0.5ms   | 573±0.3ms   | 0.99    | executing.Cached.time_1000_lookups('call-large-function', 'text_range')                   |
| -        | 12.9±1ms    | 1.32±0ms    | 0.10    | executing.Cached.time_1000_lookups('call-multiline', 'code_qualname')                     |
| -        | 12.4±1ms    | 982±9μs     | 0.08    | executing.Cached.time_1000_lookups('call-multiline', 'node')                              |
| -        | 12.3±2ms    | 1.03±0.01ms | 0.08    | executing.Cached.time_1000_lookups('call-multiline', 'node_and_statements')               |
| -        | 12.2±1ms    | 994±10μs    | 0.08    | executing.Cached.time_1000_lookups('call-multiline', 'statements')                        |
|          | 692±10ms    | 679±10ms    | 0.98    | executing.Cached.time_1000_lookups('call-multiline', 'text')                              |
|          | 677±2ms     | 665±10ms    | 0.98    | executing.Cached.time_1000_lookups('call-multiline', 'text_range')                        |
| -        | 1.74±0.01ms | 1.36±0ms    | 0.78    | executing.Cached.time_1000_lookups('function-in-large-file', 'code_qualname')             |
| -        | 1.24±0ms    | 993±0.9μs   | 0.80    | executing.Cached.time_1000_lookups('function-in-large-file', 'node')                      |
| -        | 1.27±0ms    | 1.04±0.02ms | 0.81    | executing.Cached.time_1000_lookups('function-in-large-file', 'node_and_statements')       |
|          | 1.23±0ms    | 1.02±0.2ms  | ~0.83   | executing.Cached.time_1000_lookups('function-in-large-file', 'statements')                |
|          | 7.23±0.06ms | 6.68±0.03ms | 0.92    | executing.Cached.time_1000_lookups('function-in-large-file', 'text')                      |
|          | 6.98±0.07ms | 6.47±0.03ms | 0.93    | executing.Cached.time_1000_lookups('function-in-large-file', 'text_range')                |
|          | 254±20μs    | 253±10μs    | 1.00    | executing.ColdLookup.time_lookup('attribute-access', 'code_qualname')                     |
|          | 253±20μs    | 247±10μs    | 0.98    | executing.ColdLookup.time_lookup('attribute-access', 'node')                              |
|          | 249±20μs    | 249±20μs    | 1.00    | executing.ColdLookup.time_lookup('attribute-access', 'node_and_statements')               |
|          | 252±10μs    | 248±20μs    | 0.98    | executing.ColdLookup.time_lookup('attribute-access', 'statements')                        |
|          | 317±20μs    | 313±20μs    | 0.99    | executing.ColdLookup.time_lookup('attribute-access', 'text')                              |
|          | 314±20μs    | 299±20μs    | 0.95    | executing.ColdLookup.time_lookup('attribute-access', 'text_range')                        |
|          | 239±20μs    | 237±20μs    | 0.99    | executing.ColdLookup.time_lookup('bin-op', 'code_qualname')                               |
|          | 244±20μs    | 246±20μs    | 1.01    | executing.ColdLookup.time_lookup('bin-op', 'node')                                        |
|          | 241±20μs    | 238±10μs    | 0.98    | executing.ColdLookup.time_lookup('bin-op', 'node_and_statements')                         |
|          | 244±10μs    | 242±10μs    | 0.99    | executing.ColdLookup.time_lookup('bin-op', 'statements')                                  |
|          | 299±20μs    | 300±20μs    | 1.00    | executing.ColdLookup.time_lookup('bin-op', 'text')                                        |
|          | 303±20μs    | 301±20μs    | 0.99    | executing.ColdLookup.time_lookup('bin-op', 'text_range')                                  |
|          | 235±10μs    | 230±20μs    | 0.98    | executing.ColdLookup.time_lookup('call', 'code_qualname')                                 |
|          | 242±10μs    | 225±10μs    | 0.93    | executing.ColdLookup.time_lookup('call', 'node')                                          |
|          | 234±20μs    | 228±20μs    | 0.98    | executing.ColdLookup.time_lookup('call', 'node_and_statements')                           |
|          | 238±20μs    | 226±10μs    | 0.95    | executing.ColdLookup.time_lookup('call', 'statements')                                    |
|          | 289±20μs    | 291±20μs    | 1.01    | executing.ColdLookup.time_lookup('call', 'text')                                          |
|          | 298±20μs    | 288±20μs    | 0.97    | executing.ColdLookup.time_lookup('call', 'text_range')                                    |
|          | 1.14±0.01s  | 1.15±0.02s  | 1.01    | executing.ColdLookup.time_lookup('call-large-function', 'code_qualname')                  |
|          | 1.14±0.01s  | 1.15±0s     | 1.01    | executing.ColdLookup.time_lookup('call-large-function', 'node')                           |
|          | 1.15±0.01s  | 1.14±0.01s  | 0.99    | executing.ColdLookup.time_lookup('call-large-function', 'node_and_statements')            |
|          | 1.15±0.01s  | 1.14±0s     | 0.99    | executing.ColdLookup.time_lookup('call-large-function', 'statements')                     |
|          | 1.28±0s     | 1.28±0s     | 1.00    | executing.ColdLookup.time_lookup('call-large-function', 'text')                           |
|          | 1.28±0s     | 1.28±0.01s  | 1.00    | executing.ColdLookup.time_lookup('call-large-function', 'text_range')                     |
|          | 18.5±0.2ms  | 18.1±0.1ms  | 0.98    | executing.ColdLookup.time_lookup('call-multiline', 'code_qualname')                       |
|          | 18.3±0.2ms  | 18.1±0.08ms | 0.99    | executing.ColdLookup.time_lookup('call-multiline', 'node')                                |
|          | 18.2±0.1ms  | 18.1±0.09ms | 0.99    | executing.ColdLookup.time_lookup('call-multiline', 'node_and_statements')                 |
|          | 18.4±0.2ms  | 18.0±0.1ms  | 0.98    | executing.ColdLookup.time_lookup('call-multiline', 'statements')                          |
|          | 23.7±0.09ms | 23.6±0.2ms  | 0.99    | executing.ColdLookup.time_lookup('call-multiline', 'text')                                |
|          | 23.6±0.1ms  | 23.6±0.1ms  | 1.00    | executing.ColdLookup.time_lookup('call-multiline', 'text_range')                          |
|          | 1.17±0.01s  | 1.16±0s     | 1.00    | executing.ColdLookup.time_lookup('function-in-large-file', 'code_qualname')               |
|          | 1.16±0.01s  | 1.17±0.01s  | 1.00    | executing.ColdLookup.time_lookup('function-in-large-file', 'node')                        |
|          | 1.17±0.01s  | 1.17±0.01s  | 1.00    | executing.ColdLookup.time_lookup('function-in-large-file', 'node_and_statements')         |
|          | 1.17±0.01s  | 1.18±0.02s  | 1.01    | executing.ColdLookup.time_lookup('function-in-large-file', 'statements')                  |
|          | 1.43±0.01s  | 1.41±0.01s  | 0.99    | executing.ColdLookup.time_lookup('function-in-large-file', 'text')                        |
|          | 1.41±0.01s  | 1.41±0.01s  | 1.00    | executing.ColdLookup.time_lookup('function-in-large-file', 'text_range')                  |
|          | 44.8±4μs    | 42.6±5μs    | 0.95    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'code_qualname')             |
| -        | 75.3±20μs   | 41.7±5μs    | 0.55    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node')                      |
|          | 43.9±4μs    | 41.8±4μs    | 0.95    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'node_and_statements')       |
|          | 42.7±4μs    | 42.0±4μs    | 0.98    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'statements')                |
|          | 97.0±10μs   | 95.4±10μs   | 0.98    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text')                      |
|          | 97.4±10μs   | 96.0±10μs   | 0.99    | executing.ExecutionCacheMiss.time_lookup('attribute-access', 'text_range')                |
|          | 44.0±5μs    | 40.9±5μs    | 0.93    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'code_qualname')                       |
|          | 42.0±5μs    | 39.9±4μs    | 0.95    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'node')                                |
|          | 42.1±4μs    | 40.2±5μs    | 0.96    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'node_and_statements')                 |
|          | 42.5±6μs    | 40.7±6μs    | 0.96    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'statements')                          |
|          | 96.1±10μs   | 93.2±10μs   | 0.97    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'text')                                |
|          | 93.1±10μs   | 92.5±10μs   | 0.99    | executing.ExecutionCacheMiss.time_lookup('bin-op', 'text_range')                          |
|          | 36.2±5μs    | 35.6±5μs    | 0.98    | executing.ExecutionCacheMiss.time_lookup('call', 'code_qualname')                         |
|          | 36.0±5μs    | 33.2±5μs    | 0.92    | executing.ExecutionCacheMiss.time_lookup('call', 'node')                                  |
|          | 35.7±4μs    | 33.8±5μs    | 0.94    | executing.ExecutionCacheMiss.time_lookup('call', 'node_and_statements')                   |
|          | 36.3±4μs    | 34.2±4μs    | 0.94    | executing.ExecutionCacheMiss.time_lookup('call', 'statements')                            |
|          | 87.0±10μs   | 86.8±10μs   | 1.00    | executing.ExecutionCacheMiss.time_lookup('call', 'text')                                  |
|          | 87.2±10μs   | 83.6±10μs   | 0.96    | executing.ExecutionCacheMiss.time_lookup('call', 'text_range')                            |
|          | 657±10μs    | 650±10μs    | 0.99    | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'code_qualname')          |
|          | 649±20μs    | 645±20μs    | 0.99    | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node')                   |
|          | 659±10μs    | 648±20μs    | 0.98    | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'node_and_statements')    |
|          | 666±30μs    | 646±10μs    | 0.97    | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'statements')             |
|          | 143±1ms     | 145±1ms     | 1.01    | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text')                   |
|          | 145±1ms     | 146±0.7ms   | 1.01    | executing.ExecutionCacheMiss.time_lookup('call-large-function', 'text_range')             |
| -        | 106±7μs     | 74.5±7μs    | 0.70    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'code_qualname')               |
| -        | 103±8μs     | 74.7±4μs    | 0.72    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node')                        |
| -        | 105±10μs    | 74.0±6μs    | 0.70    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'node_and_statements')         |
| -        | 103±8μs     | 76.6±5μs    | 0.75    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'statements')                  |
|          | 5.69±0.2ms  | 5.55±0.06ms | 0.98    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text')                        |
|          | 5.67±0.09ms | 5.58±0.06ms | 0.98    | executing.ExecutionCacheMiss.time_lookup('call-multiline', 'text_range')                  |
|          | 201±10μs    | 196±10μs    | 0.98    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'code_qualname')       |
|          | 203±10μs    | 191±10μs    | 0.94    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node')                |
|          | 199±10μs    | 194±10μs    | 0.98    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'node_and_statements') |
|          | 199±10μs    | 198±10μs    | 0.99    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'statements')          |
|          | 254±3ms     | 252±3ms     | 0.99    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text')                |
|          | 251±0.7ms   | 249±0.8ms   | 0.99    | executing.ExecutionCacheMiss.time_lookup('function-in-large-file', 'text_range')          |
|          | 89.6M       | 89.6M       | 1.00    | memory.FunctionInLargeFileMemory.track_retained_after_lookup                              |
|          | 5.98M       | 5.98M       | 1.00    | memory.SourceAllocationMemory.track_peak('lines')                                         |
|          | 5.98M       | 5.98M       | 1.00    | memory.SourceAllocationMemory.track_peak('parsed')                                        |
|          | 5.98M       | 5.98M       | 1.00    | memory.SourceAllocationMemory.track_peak('qualnames')                                     |
|          | 5.98M       | 5.98M       | 1.00    | memory.SourceAllocationMemory.track_peak('statements')                                    |
|          | 3.21M       | 3.21M       | 1.00    | memory.SourceAllocationMemory.track_retained('lines')                                     |
|          | 3.21M       | 3.21M       | 1.00    | memory.SourceAllocationMemory.track_retained('parsed')                                    |
|          | 3.21M       | 3.21M       | 1.00    | memory.SourceAllocationMemory.track_retained('qualnames')                                 |
|          | 3.21M       | 3.21M       | 1.00    | memory.SourceAllocationMemory.track_retained('statements')                                |
|          | 38.8M       | 38.8M       | 1.00    | memory.SourcePeakMemory.peakmem_first_use('lines')                                        |
|          | 38.8M       | 38.8M       | 1.00    | memory.SourcePeakMemory.peakmem_first_use('parsed')                                       |
|          | 38.8M       | 38.8M       | 1.00    | memory.SourcePeakMemory.peakmem_first_use('qualnames')                                    |
|          | 38.8M       | 38.8M       | 1.00    | memory.SourcePeakMemory.peakmem_first_use('statements')                                   |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant