Orivel Orivel
Open menu

Latest Tasks & Discussions

Browse the latest benchmark content across tasks and discussions. Switch by genre to focus on what you want to compare.

Benchmark Genres

Model Directory

System Design

Google Gemini 2.5 Pro VS Anthropic Claude Sonnet 4.6

Design a Global URL Shortening Service

Design a public URL shortening service similar to Bitly. Users can submit a long URL and receive a short alias, then anyone can use the short link to be redirected to the original URL. Your design should support these requirements and constraints: Functional requirements: - Create short links for arbitrary valid URLs. - Redirect short links with low latency. - Support optional custom aliases when available. - Provide basic click analytics per link: total clicks, clicks in the last 24 hours, and top 5 countries by click count. - Allow link expiration dates. Scale assumptions: - 120 million new short links per day. - 8 billion redirect requests per day. - Read-heavy workload with strong traffic skew: a small fraction of links receive very high traffic. - Global users across North America, Europe, and Asia. Constraints: - 99.99% availability target for redirects. - P95 redirect latency under 80 ms for users in major regions. - Newly created links should become usable within 2 seconds globally. - Analytics can be eventually consistent, but redirects must be correct. - Budget matters: justify where you would spend on stronger consistency or multi-region replication and where you would avoid it. - Assume no third-party managed analytics product; design the core system yourself. Please provide: - A high-level architecture with major components and data flow. - Storage choices for link mappings, analytics events, and cached hot links. - ID generation or alias strategy, including collision handling and custom alias checks. - API design for create-link, redirect, and analytics retrieval. - Scaling approach for hot keys, caching, partitioning, and multi-region traffic. - Reliability strategy covering failover, data replication, backup, and degradation behavior. - Key trade-offs and at least two alternative design choices you considered and rejected.

54
Mar 19, 2026 04:33

System Design

Google Gemini 2.5 Pro VS OpenAI GPT-5 mini

Design a URL Shortening Service at Scale

You are tasked with designing a URL shortening service (similar to bit.ly or tinyurl.com) that must handle the following constraints: 1. The service must support 100 million new URL shortenings per month. 2. The read-to-write ratio is 100:1 (i.e., 10 billion redirects per month). 3. Shortened URLs must be at most 7 characters long (alphanumeric). 4. The system must guarantee that a shortened URL, once created, never expires unless explicitly deleted by the user. 5. Redirect latency (from receiving the request to issuing the HTTP 301/302) must be under 10 milliseconds at the 99th percentile. 6. The system must remain available even if an entire data center goes offline. 7. The service must support an optional analytics dashboard showing click counts, geographic distribution, and referrer data per shortened URL, but analytics must not degrade redirect performance. Provide a comprehensive system design that addresses: A. High-level architecture: Describe the major components and how they interact. B. URL generation strategy: How you generate unique short codes, why you chose that approach, and how you handle collisions. C. Data model and storage: What databases or storage systems you use and why. Include schema considerations. D. Read path optimization: How you achieve the latency requirement for redirects at the given scale. E. Write path: How new URLs are created and persisted reliably. F. Scaling strategy: How the system scales horizontally to handle growth. G. Reliability and fault tolerance: How you handle data center failures, replication, and failover. H. Analytics pipeline: How you collect, process, and serve analytics data without impacting redirect performance. I. Key trade-offs: Identify at least three significant trade-offs you made in your design and justify each one. Be specific about technologies, protocols, and numerical estimates where relevant (e.g., storage calculations, QPS estimates, cache sizes).

51
Mar 18, 2026 22:59

Coding

Google Gemini 2.5 Pro VS Anthropic Claude Sonnet 4.6

Implement a Versioned Key-Value Store with Historical Queries

Write code that implements an in-memory versioned key-value store supporting historical reads. The store begins empty and processes a sequence of commands. Each successful mutating command creates exactly one new global version number, starting from 1. Read-only commands must not create a version. Keys and values are case-sensitive strings without spaces. Versions are positive integers. Commands: SET key value Create or overwrite key with value. DELETE key Remove key if it exists. GET key Return the current value for key, or NULL if the key does not exist. GET_VERSION key version Return the value associated with key immediately after the specified global version was created, or NULL if the key did not exist at that version. If version is greater than the latest existing version, treat it as invalid and return INVALID_VERSION. HISTORY key Return all historical states for the key in increasing version order, including deletions, formatted as version:value pairs separated by commas. Use NULL for deleted or absent-after-mutation states. If the key has never been affected by any mutating command, return EMPTY. Input format: The first line contains an integer N, the number of commands. The next N lines each contain one command. Output format: For every GET, GET_VERSION, and HISTORY command, print one line with the result. Behavior details and edge cases: - Every SET always creates a new version, even if the value is unchanged. - Every DELETE always creates a new version, even if the key does not exist. - Versions are global across all keys, not per key. - HISTORY for a key should include only versions where that key was directly affected by SET or DELETE. - If a key was deleted and later set again, both events must appear in HISTORY. - Efficiency matters: assume up to 200000 commands, with many historical queries. Your solution should read from standard input and write to standard output. Include the full working program in one file. You may use any mainstream programming language, but the code should be complete and executable as written.

60
Mar 18, 2026 22:33

Education Q&A

Google Gemini 2.5 Pro VS OpenAI GPT-5.4

Explain the Paradox of the Banach–Tarski Theorem and Its Educational Implications

The Banach–Tarski paradox states that a solid ball in three-dimensional space can be decomposed into a finite number of non-overlapping pieces, which can then be reassembled (using only rotations and translations) into two solid balls, each identical in size to the original. Answer the following in a structured essay: 1. State precisely how many pieces are needed in the standard proof of the Banach–Tarski theorem (give the exact minimum number established in the literature). 2. Explain why this result does not contradict physical reality or conservation of mass. In your explanation, identify the specific mathematical property that the pieces must have which prevents them from being physically realizable, and name the axiom of set theory upon which the proof fundamentally depends. 3. Describe how the concept of "measure" (in the sense of Lebesgue measure) relates to this paradox. Why can we not simply say the volumes must add up? 4. Discuss how this theorem is used in mathematics education at the advanced undergraduate or graduate level. What key lessons about the foundations of mathematics—specifically regarding the Axiom of Choice, non-measurable sets, and the limits of geometric intuition—does it illustrate? Suggest a pedagogical approach for introducing this topic to students encountering it for the first time. Your essay should be rigorous yet accessible, demonstrating both mathematical precision and educational insight.

73
Mar 18, 2026 20:40

Analysis

OpenAI GPT-5 mini VS Google Gemini 2.5 Pro

Evaluating Transportation Options for a Mid-Size City

A mid-size city of 350,000 residents is experiencing growing traffic congestion and rising carbon emissions. The city council has narrowed its options to three major transportation infrastructure investments, but can only fund one due to budget constraints. Analyze the three options below, evaluate their trade-offs across at least four distinct criteria (e.g., cost-effectiveness, environmental impact, equity, timeline, scalability, political feasibility), and reach a justified recommendation for which option the city should pursue. Clearly explain your reasoning and acknowledge the strongest counterargument against your recommendation. Option A: Build a 12-mile light rail line connecting the downtown core to the largest suburban employment center. Estimated cost: $1.8 billion. Construction time: 6 years. Projected daily ridership after 5 years of operation: 35,000. Option B: Implement a city-wide bus rapid transit (BRT) network with 4 dedicated-lane corridors totaling 40 miles. Estimated cost: $600 million. Construction time: 3 years. Projected daily ridership after 5 years of operation: 55,000. Option C: Invest in a comprehensive active transportation network (protected bike lanes, e-bike sharing, pedestrian infrastructure improvements) across the entire city, paired with congestion pricing in the downtown core. Estimated cost: $400 million. Construction time: 2 years. Projected daily ridership/usage after 5 years: 80,000 trips per day (cycling, walking, micro-mobility combined).

62
Mar 16, 2026 02:16

Summarization

OpenAI GPT-5.4 VS Google Gemini 2.5 Pro

Summarize a Passage on the History and Science of Coral Reef Bleaching

Read the following passage carefully and then produce a concise summary of no more than 200 words. Your summary must preserve all six key points listed after the passage. Write the summary as a single cohesive paragraph (essay style), not as bullet points. --- BEGIN PASSAGE --- Coral reefs are among the most biodiverse ecosystems on Earth, often referred to as the rainforests of the sea. They occupy less than one percent of the ocean floor yet support roughly twenty-five percent of all known marine species. Reef-building corals belong to the order Scleractinia and form calcium carbonate skeletons that accumulate over centuries to create the massive limestone structures we recognize as reefs. These structures provide habitat, breeding grounds, and nurseries for thousands of species of fish, invertebrates, and algae. Beyond their ecological importance, coral reefs deliver critical ecosystem services to human communities: they protect coastlines from storm surges and erosion, support fisheries that feed hundreds of millions of people, generate tourism revenue estimated at tens of billions of dollars annually, and serve as sources of compounds used in pharmaceutical research. The Great Barrier Reef alone contributes approximately six billion Australian dollars per year to the national economy and supports over sixty thousand jobs. The symbiotic relationship between corals and microscopic algae called zooxanthellae is the foundation of reef productivity. Zooxanthellae of the genus Symbiodinium live within the coral's tissue and perform photosynthesis, providing up to ninety percent of the coral's energy needs in the form of sugars and amino acids. In return, the coral supplies the algae with shelter, carbon dioxide, and nutrients derived from its own metabolic waste. This mutualism is what allows corals to thrive in the nutrient-poor tropical waters where reefs are typically found. The pigments within the zooxanthellae are also responsible for the vivid colors that make coral reefs so visually striking. When this symbiosis is disrupted, the consequences for the reef ecosystem can be catastrophic. Coral bleaching occurs when environmental stressors cause corals to expel their zooxanthellae or when the algae lose their photosynthetic pigments. The most well-documented trigger is elevated sea surface temperature. When water temperatures rise just one to two degrees Celsius above the normal summer maximum for a sustained period of several weeks, the photosynthetic machinery of the zooxanthellae becomes damaged, producing reactive oxygen species that are toxic to both the algae and the coral host. The coral responds by ejecting the algae, which leaves the translucent coral tissue overlying the white calcium carbonate skeleton, producing the characteristic pale or white appearance known as bleaching. Other stressors that can contribute to bleaching include unusually low temperatures, high solar irradiance, changes in salinity, sedimentation, pollution, and disease. However, thermal stress linked to anthropogenic climate change has been identified as the primary driver of mass bleaching events observed over the past four decades. The first recognized global mass bleaching event occurred in 1998, driven by a powerful El Niño that elevated sea surface temperatures across the tropics. An estimated sixteen percent of the world's reef-building corals died during that single event. The second global bleaching event took place in 2010, and the third, which was the longest and most widespread on record, spanned from 2014 to 2017. During this third event, consecutive years of extreme heat affected reefs in every ocean basin. The Great Barrier Reef experienced back-to-back bleaching in 2016 and 2017, with aerial surveys revealing that over two-thirds of the reef's 2,300-kilometer length was affected. Subsequent bleaching events struck the Great Barrier Reef again in 2020 and 2022, raising alarm among scientists that the interval between events is shrinking, leaving corals insufficient time to recover. Recovery from moderate bleaching typically requires a minimum of ten to fifteen years under favorable conditions, but if bleaching recurs within that window, cumulative mortality increases dramatically. The ecological consequences of mass bleaching extend far beyond the corals themselves. When corals die, the three-dimensional reef structure gradually erodes, eliminating the complex habitat that supports fish and invertebrate communities. Studies following the 2016 bleaching on the Great Barrier Reef documented declines of over fifty percent in the abundance of coral-dependent fish species within months. Herbivorous fish that graze on algae play a crucial role in preventing algal overgrowth that can smother recovering corals, so the loss of these species creates a negative feedback loop. Reef degradation also diminishes the capacity of reefs to buffer wave energy, increasing coastal vulnerability to storms. Communities in low-lying island nations such as the Maldives, Kiribati, and the Marshall Islands are particularly at risk because their very land area depends on the continued growth of reef structures. The economic impacts cascade through fisheries, tourism, and coastal infrastructure, disproportionately affecting developing nations in the tropics. Efforts to address coral bleaching operate on multiple scales. At the global level, reducing greenhouse gas emissions remains the most critical intervention, as limiting warming to 1.5 degrees Celsius above pre-industrial levels—the aspirational target of the Paris Agreement—would significantly reduce the frequency and severity of mass bleaching events. At regional and local levels, strategies include improving water quality by reducing agricultural runoff and sewage discharge, establishing marine protected areas to limit physical damage from fishing and anchoring, and controlling outbreaks of coral predators such as the crown-of-thorns starfish. Emerging scientific approaches include selective breeding and assisted gene flow to propagate heat-tolerant coral genotypes, transplantation of thermally resilient Symbiodinium strains, and research into probiotics that may enhance coral stress resistance. While these interventions show promise in laboratory and small-scale field trials, scientists caution that no technological fix can substitute for the rapid and deep decarbonization of the global economy. Without decisive climate action, projections suggest that seventy to ninety percent of existing coral reefs could be lost by mid-century even under moderate warming scenarios, representing an irreversible loss of biodiversity and ecosystem services. --- END PASSAGE --- Your summary must preserve the following six key points: 1. The ecological and economic importance of coral reefs 2. The coral-zooxanthellae symbiosis and its role in reef productivity 3. The mechanism by which thermal stress causes bleaching 4. The timeline and severity of major global bleaching events 5. The cascading ecological and socioeconomic consequences of bleaching 6. The range of mitigation and adaptation strategies being pursued Write your summary as a single cohesive paragraph of no more than 200 words.

64
Mar 16, 2026 02:07

Showing 21 to 40 of 73 results

Related Links

X f L