• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 17486564123
88%

Build:
DEFAULT BRANCH: master
Ran 05 Sep 2025 07:37AM UTC
Jobs 1
Files 513
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Sep 2025 07:20AM UTC coverage: 87.597% (-0.01%) from 87.611%
17486564123

push

github

locker
memtx: support allocation of arbitrary memory blocks

Memtx allocator implements memory management for tuples, where the main
part is the support of read views - a tuple is freed only when all read
views that can access the tuple are closed. We will need this functionality
not only for tuples, but for arbitrary blocks of memory.

This patch reworks alloc_tuple() to alloc(), which now returns a handle
for the memory block. The pointer to a tuple can be obtained by calling
memtx_block_to_tuple(), and to the data by calling memtx_block_data(). The
difference is due to the fact that we don't want to expose tuple's header
to the user when non-tuple block is allocated.

Also the new method in_read_view() is introduced, it allows to determine
whether a block can be modified directly, or should be copied beforehand.
This wasn't needed for tuples, because they are immutable.

NO_WRAP
$ taskset 0x2 ~/benchmark/tools/compare.py benchmarks \
  ./tuple.perftest.old ./tuple.perftest.new \
  --benchmark_min_warmup_time=10 \
  --benchmark_repetitions=30 \
  --benchmark_report_aggregates_only=true \
  --benchmark_filter=tuple_new
[...]
Comparing ./tuple.perftest.old to ./tuple.perftest.new
Benchmark                                               Time             CPU      Time Old      Time New       CPU Old       CPU New
------------------------------------------------------------------------------------------------------------------------------------
bench_tuple_new<FORMAT_BASIC>_mean                   -0.0473         -0.0474           129           123           129           123
bench_tuple_new<FORMAT_BASIC>_median                 -0.0307         -0.0309           126           122           126           122
bench_tuple_new<FORMAT_BASIC>_stddev                 -0.5286         -0.5295            10             5            10             5
bench_tuple_new<FORMAT_BASIC>_cv                     -0.5052         -0.5061             0             0             0          ... (continued)

71224 of 125007 branches covered (56.98%)

98 of 99 new or added lines in 4 files covered. (98.99%)

63 existing lines in 20 files now uncovered.

104702 of 119527 relevant lines covered (87.6%)

1370996.87 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
91.27
0.03% src/box/memtx_engine.cc

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.96
-0.18% src/box/relay.cc
1
88.01
0.21% src/box/vy_run.c
1
84.75
-0.02% src/box/xlog.c
1
96.55
-1.15% src/lib/core/histogram.c
1
90.38
-1.92% src/lib/core/trigger.cc
1
97.26
-0.1% src/lib/msgpuck/msgpuck.h
1
22.64
-0.02% src/lib/uri/uri_parser.c
1
97.41
-0.85% src/lib/vclock/vclock.c
2
85.61
-0.72% src/lib/core/coio.c
2
92.92
-0.21% src/lib/core/fiber.c
2
85.71
-9.52% src/lib/core/tt_sigaction.c
3
94.15
0.53% src/box/vy_range.c
3
90.9
-0.31% src/box/vy_scheduler.c
3
93.61
0.21% src/box/xrow_update_field.c
4
93.31
-1.27% src/lib/swim/swim_io.c
4
81.82
-12.12% src/lua/minifio.c
6
97.28
-0.4% src/box/lua/net_box.c
8
60.84
-3.61% src/lib/core/fio.c
9
92.32
-0.4% src/box/vinyl.c
9
88.14
-7.63% src/box/vy_regulator.c
Jobs
ID Job ID Ran Files Coverage
1 17486564123.1 05 Sep 2025 07:37AM UTC 513
87.6
GitHub Action Run
Source Files on build 17486564123
  • Tree
  • List 513
  • Changed 34
  • Source Changed 0
  • Coverage Changed 34
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 61b744cb on github
  • Prev Build on master (#17462732978)
  • Next Build on master (#17586756979)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc