β™ŠοΈ GemiNews πŸ—žοΈ (dev)

Demo 1: Embeddings + Recommendation Demo 2: Bella RAGa Demo 3: NewRetriever Demo 4: Assistant function calling

πŸ—žοΈMicro benchmarking value objects in Ruby: Data.define vs Struct vs OpenStruct

πŸ—ΏSemantically Similar Articles (by :title_embedding)

Micro benchmarking value objects in Ruby: Data.define vs Struct vs OpenStruct

2024-03-27 - (from Ruby Flow)

I did a series of benchmarks between Data class, Struct, and OpenStruct testing, creating new objects and accessing attributes. The tests consider keyword arguments and not positional arguments.

empty

[Technology] 🌎 https://rubyflow.com/p/qxn9yf-micro-benchmarking-value-objects-in-ruby-datadefine-vs-struct-vs-openstruct [🧠] [v2] article_embedding_description: {:llm_project_id=>"Unavailable", :llm_dimensions=>nil, :article_size=>578, :llm_embeddings_model_name=>"textembedding-gecko"}
[🧠] [v1/3] title_embedding_description: {:ricc_notes=>"[embed-v3] Fixed on 9oct24. Only seems incompatible at first glance with embed v1.", :llm_project_id=>"unavailable possibly not using Vertex", :llm_dimensions=>nil, :article_size=>578, :poly_field=>"title", :llm_embeddings_model_name=>"textembedding-gecko"}
[🧠] [v1/3] summary_embedding_description: {:ricc_notes=>"[embed-v3] Fixed on 9oct24. Only seems incompatible at first glance with embed v1.", :llm_project_id=>"unavailable possibly not using Vertex", :llm_dimensions=>nil, :article_size=>578, :poly_field=>"summary", :llm_embeddings_model_name=>"textembedding-gecko"}
[🧠] As per bug https://github.com/palladius/gemini-news-crawler/issues/4 we can state this article belongs to titile/summary version: v3 (very few articles updated on 9oct24)

πŸ—Ώarticle.to_s

------------------------------
Title: Micro benchmarking value objects in Ruby: Data.define vs Struct vs OpenStruct
Summary: I did a series of benchmarks between Data class, Struct, and OpenStruct testing, creating new objects and accessing attributes. The tests consider keyword arguments and not positional arguments.

[content]
empty
[/content]

PublishedDate: 2024-03-27
Category: Technology
NewsPaper: Ruby Flow
{"id"=>4255,
"title"=>"Micro benchmarking value objects in Ruby: Data.define vs Struct vs OpenStruct",
"summary"=>" I did a series of benchmarks between Data class, Struct, and OpenStruct testing, creating new objects and accessing attributes. The tests consider keyword arguments and not positional arguments. ",
"content"=>"",
"author"=>nil,
"link"=>"https://rubyflow.com/p/qxn9yf-micro-benchmarking-value-objects-in-ruby-datadefine-vs-struct-vs-openstruct",
"published_date"=>Wed, 27 Mar 2024 15:57:41.000000000 UTC +00:00,
"image_url"=>nil,
"feed_url"=>"https://rubyflow.com/p/qxn9yf-micro-benchmarking-value-objects-in-ruby-datadefine-vs-struct-vs-openstruct",
"language"=>nil,
"active"=>true,
"ricc_source"=>"feedjira::v1",
"created_at"=>Mon, 01 Apr 2024 20:13:43.929620000 UTC +00:00,
"updated_at"=>Mon, 21 Oct 2024 18:03:44.508461000 UTC +00:00,
"newspaper"=>"Ruby Flow",
"macro_region"=>"Technology"}
Edit this article
Back to articles