count string size

Benchmark created on


Description

count string size

Setup

var string = '{"name":"Kimi","type":"AI Assistant","isActive":true,"details":{"version":"1.0","languages":["Chinese","English"],"features":[{"name":"Text Processing","description":"Capable of processing large amounts of text."},{"name":"File Handling","description":"Able to read and analyze various file formats."},{"name":"Search Assistance","description":"Provide search results and integrate them into responses."}],"availability":{"timezone":"UTC+8","uptime":"24/7"}},"statistics":{"totalUsers":100000,"activeUsers":25000,"userGrowth":{"lastMonth":10,"thisMonth":15},"userSessions":[{"userId":"user123","sessionLength":3600,"interactions":50},{"userId":"user456","sessionLength":1800,"interactions":30}]},"feedback":[{"userId":"user789","rating":5,"comment":"Kimi is very helpful and responsive."},{"userId":"user012","rating":4,"comment":"Kimi could be more proactive in offering assistance."}],"settings":{"theme":"Light","notifications":true,"language":"English"}}';

Test runner

Ready to run.

Testing in
TestOps/sec
use string.length
var len = string.length;
console.log(len);
ready
use blob
var len = new Blob([string]).size;
console.log(len);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.