Fast with 50 pages.
Fast with 500,000.

Opening a page, searching, switching views, completing a task, and paging through the calendar, timed in the app itself, from fifty pages to half a million.

55 ms

to open a page

with 500,000 pages

26 ms

to search

with 500,000 pages

45 ms

to switch views

with 500,000 pages

A millisecond (ms) is a thousandth of a second. And 500,000 pages is ten new pages a day for 137 years.

Ten thousand times the pages. Still fast.

The grey bar is how many pages are in the workspace. The green number is how long you wait. Pick an action to see it at every size.

50
2,000
20,000
200,000
500,000

Every number

The table shows the median. Switch to the 99th percentile to see the time 99 tries in 100 came in under.

Pages in the workspace502,00020,000200,000500,000
Open a page49 ms47 ms51 ms50 ms55 ms
Search27 ms28 ms28 ms28 ms26 ms
Switch views20 ms39 ms41 ms44 ms45 ms
Complete a task8 ms22 ms24 ms28 ms37 ms
Rename a page6 ms21 ms22 ms26 ms37 ms
Next week14 ms30 ms57 ms53 ms50 ms
Launch567 ms564 ms580 ms625 ms646 ms

How these were measured

Long pages

The numbers above are about how many pages you have. These are about how long one page is. A long novel is about 100,000 words, and up to there everything takes under a tenth of a second. At half a million words, a letter takes about a tenth of a second to show and Find takes about a third.

Words on the page20,000100,000500,000
Open the page, to its first screen76 ms78 ms91 ms
Type a letter, until it shows15 ms24 ms112 ms
Find, after the first letter25 ms68 ms360 ms

Try it on your own machine

Your numbers will depend on your machine. Wherever you run it, half a million pages should be about as fast as two thousand.

Time the app

The numbers above come from a build of Pikos with a timer compiled in. On a Mac, build it from source and run node apps/marketing/scripts/benchmark-app.mjs. It builds the workspaces, launches the app 7 times at each size, and takes about fifty minutes. --quick runs a shorter pass.

Time a long page

From the same source, run pnpm --filter @pikos/desktop test:e2e:scale. It builds pages of 20,000, 100,000, and 500,000 words, times each of them, and prints a table. It takes about a minute.

Time the database

The Pikos CLI builds the same half-million-page workspace and times the calls the app makes to it.

brew install pikos-app/tap/pikos-cli
pikos stress seed --db ~/pikos-bench.db --pages 500000
pikos stress bench --db ~/pikos-bench.db --runs 20

seed writes half a million pages into a new file, which took about four minutes on the laptop above. It won't touch the workspace your app uses, so your notes are safe. bench prints the median and the 95th percentile for each action, and --json adds the 99th. When you're done, delete ~/pikos-bench.db and the two files beside it that end in -wal and -shm.

Then let me know how it goes.